/*
Theme Name: Swell
Theme URI: https://demo.thatid.com/showcase-swell/
Author: the Agentpoint Team
Author URI: https://www.agentpoint.com.au/
Description: Swell block theme for Agentpoint+
Requires at least: 6.4
Tested up to: 6.8.1
Requires PHP: 7.4
Version: 1.0.13
Text Domain: apt-swell
Tags: full-site-editing, block-patterns
Theme Type: block-theme
*/

/* Styles intended only for the front.*/
html {
  scroll-behavior: smooth;
}

@media screen and (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}
/* Main structure */
body .wp-site-blocks {
  display: flex;
  flex-direction: column;
  min-height: calc( 100dvh - var( --wp-admin--admin-bar--height, 0px ) ) !important;
}

body .wp-site-blocks main {
  flex-grow: 1;
}

@media screen and (max-width: 600px) {
  body.logged-in #wpadminbar {
    position: fixed;
  }
}

body > .mfp-bg.mfp-ready {
  background: rgba(255, 255, 255, 0.99);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  opacity: 1;
}

body .mfp-wrap {
  overflow: hidden auto!important;
  position: fixed !important;
  top: 0 !important;
  height: 100% !important;
}

body .mfp-wrap .mfp-container {
  text-align: center;
  position: absolute;
  width: 100%;
  height: 100% !important;
  left: 0;
  top: 0 !important;
  padding: min(2rem, 4vw);
  box-sizing: border-box;
}

body .mfp-wrap .mfp-container .mfp-content {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin: 0 auto;
  text-align: left;
  z-index: 1045;
}

body .mfp-wrap .mfp-container .mfp-content .popup-email-form {
  max-width: 750px;
  margin: 0 auto;
  position: relative;
  padding: var(--wp--preset--spacing--30);
  background-color: var(--wp--preset--color--white);
  color: var(--wp--preset--color--black);
  border-radius: 24px;
}

body .mfp-wrap .mfp-container .mfp-content .popup-email-form button.mfp-close {
  background-color: transparent;
  padding: 0;
  border: 0;
  outline: 0;
  transition-duration: 0.1s;
  font-size: 3rem;
  margin: 0.5ch;
}

@media (max-width: 767.98px) {
  body .mfp-wrap .mfp-container .mfp-content .popup-email-form button.mfp-close {
    margin: 0;
  }
}

body .mfp-wrap .mfp-container .mfp-content .popup-email-form .title {
  font-size: var(--wp--preset--font-size--x-large);
  font-family: var(--wp--preset--font-family--heading);
  margin: 0 0 3rem;
  color: inherit;
  text-align: center;
}

@media (max-width: 768.98px) {
  body .mfp-wrap .mfp-container .mfp-content .popup-email-form .title {
    margin: 3rem 0 3rem;
  }
}

body .mfp-wrap .mfp-container .mfp-content .popup-email-form form ul.listforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 768.98px) {
  body .mfp-wrap .mfp-container .mfp-content .popup-email-form form ul.listforms {
    grid-template-columns: 1fr;
  }
}

body .mfp-wrap .mfp-container .mfp-content .popup-email-form form ul.listforms li {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

body .mfp-wrap .mfp-container .mfp-content .popup-email-form form ul.listforms li:not(:first-of-type):not(:nth-of-type(2)) {
  grid-column: 1/-1;
}

body .mfp-wrap .mfp-container .mfp-content .popup-email-form form ul.listforms li[class*="end"] {
  margin-top: var(--wp--preset--spacing--10);
  margin-bottom: var(--wp--preset--spacing--10);
  text-align: center;
}

body .mfp-wrap .mfp-container .mfp-content .popup-email-form form ul.listforms li label {
  font-size: var(--wp--preset--font-size--medium);
}

body .mfp-wrap .mfp-container .mfp-content .popup-email-form form ul.listforms li label span.red {
  color: var(--wp--preset--color--vivid-red);
  font-weight: 700;
}

body .mfp-wrap .mfp-container .mfp-content .popup-email-form form ul.listforms li input:not([type="radio"]):not([type="checkbox"]):not([type="file"]) {
  box-sizing: border-box;
  height: 48px;
  font-size: var(--wp--preset--font-size--medium);
  font-family: var(--wp--preset--font-family--body);
  padding: 0 16px;
  border-radius: 30px;
  border: 0;
  color: var(--wp--preset--color--black);
  background-color: #ebebeb;
}

body .mfp-wrap .mfp-container .mfp-content .popup-email-form form ul.listforms li textarea {
  min-height: 150px;
  font-size: var(--wp--preset--font-size--medium);
  font-family: var(--wp--preset--font-family--body, inherit);
  border-radius: 16px;
  border: 0;
  padding: 16px;
  box-sizing: border-box;
  color: var(--wp--preset--color--black);
  background-color: #e8e8e8;
}

body .mfp-wrap .mfp-container .mfp-content .popup-email-form form ul.listforms li button[type="submit"] {
  display: inline-flex;
  align-items: center;
  position: relative;
  outline: 0;
  border: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-size: var(--wp--preset--font-size--medium);
  font-family: var(--wp--preset--font-family--body);
  font-weight: 600;
  background-color: var(--wp--preset--color--additional-base-primary, #fff);
  border-radius: 30px;
  border-color: var(--wp--preset--color--additional-base-primary, #fff);
  color: var(--wp--preset--color--additional-text-primary, #000);
  padding: 0.725rem 1.5rem 0.8rem;
  cursor: pointer;
}

body .mfp-wrap .mfp-container .mfp-content .popup-email-form form .form-message {
  margin-bottom: 2.5rem;
}

body .mfp-wrap .mfp-container .mfp-content .popup-email-form form .form-message .alert {
  border-radius: 12px;
  padding: 1.5rem;
}

body .mfp-wrap .mfp-container .mfp-content .popup-email-form form .form-message .alert.alert-danger {
  color: #842029;
  background-color: #f8d7da;
  border: 1px solid #f5c2c7;
}

body .mfp-wrap .mfp-container .mfp-content .popup-email-form form .form-message .alert.alert-success {
  color: #0f5132;
  background-color: #d1e7dd;
  border: 1px solid #badbcc;
}

body .mfp-wrap .mfp-container .mfp-content .popup-email-form form .form-message .alert > ul {
  padding: 0;
  margin: 0 var(--wp--preset--spacing--10);
}

body.logged-in #ap-property-popup-slider .mfp-close,
body.logged-in #ap-floorplan-popup-slider .mfp-close {
  margin-top: 46px;
}

#ap-property-popup-slider .mfp-close,
#ap-floorplan-popup-slider .mfp-close {
  position: fixed;
  right: 0;
  top: 0;
  padding: 1.5ch;
  font-size: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wp--preset--color--base-secondary);
}

#ap-property-popup-slider .single-slideshow[data-slide] .tns-outer .ap-property-popup-slider__item,
#ap-floorplan-popup-slider .single-slideshow[data-slide] .tns-outer .ap-floorplan-popup-slider__item {
  position: relative;
  display: block;
  width: 100%;
  height: 0;
  padding: 0;
  overflow: hidden;
  padding-bottom: calc(100vh - 100px);
}

#ap-property-popup-slider .single-slideshow[data-slide] .tns-controls,
#ap-floorplan-popup-slider .single-slideshow[data-slide] .tns-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  z-index: 3;
}

#ap-property-popup-slider .single-slideshow[data-slide] .tns-controls > button,
#ap-floorplan-popup-slider .single-slideshow[data-slide] .tns-controls > button {
  position: relative;
  appearance: none;
  aspect-ratio: 1/1;
  width: 3.5rem;
  border: 0;
  box-shadow: none;
  background: 0 0;
  font-size: 0;
}

#ap-property-popup-slider .single-slideshow[data-slide] .tns-controls > button::before,
#ap-floorplan-popup-slider .single-slideshow[data-slide] .tns-controls > button::before {
  content: "";
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  background: var(--wp--preset--color--base-secondary);
  mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
}

#ap-property-popup-slider .single-slideshow[data-slide] .tns-controls > button[data-controls="prev"]::before,
#ap-floorplan-popup-slider .single-slideshow[data-slide] .tns-controls > button[data-controls="prev"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='square' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E");
}

#ap-property-popup-slider .single-slideshow[data-slide] .tns-controls > button[data-controls="next"]::before,
#ap-floorplan-popup-slider .single-slideshow[data-slide] .tns-controls > button[data-controls="next"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='square' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
}

@media (min-width: 992px) {
  #ap-property-popup-slider .single-slideshow[data-slide] .tns-outer .ap-property-popup-slider__item picture,
  #ap-floorplan-popup-slider .single-slideshow[data-slide] .tns-outer .ap-floorplan-popup-slider__item picture {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: block;
  }
}

#ap-property-popup-slider .single-slideshow[data-slide] .tns-outer .ap-property-popup-slider__item picture img,
#ap-floorplan-popup-slider .single-slideshow[data-slide] .tns-outer .ap-floorplan-popup-slider__item picture img {
  min-width: 70%;
  max-width: 70%;
  width: auto;
  height: 100%;
  display: block;
  margin: auto;
  overflow: hidden;
  border-radius: 16px;
}

#ap-property-popup-slider .single-slideshow[data-slide] .tns-outer .ap-property-popup-slider__item picture img {
  object-fit: cover;
}

#ap-floorplan-popup-slider .single-slideshow[data-slide] .tns-outer .ap-floorplan-popup-slider__item picture img {
  object-fit: contain;
}

@media (max-width: 991.98px) {
  #ap-property-popup-slider .single-slideshow[data-slide] .tns-outer .ap-property-popup-slider__item,
  #ap-floorplan-popup-slider .single-slideshow[data-slide] .tns-outer .ap-floorplan-popup-slider__item  {
    height: auto;
    padding-bottom: 0;
  }
  #ap-property-popup-slider .single-slideshow[data-slide] .tns-controls,
  #ap-floorplan-popup-slider .single-slideshow[data-slide] .tns-controls {
    display: none;
  }
  #ap-property-popup-slider .single-slideshow[data-slide] .tns-outer .ap-property-popup-slider__item picture img,
  #ap-floorplan-popup-slider .single-slideshow[data-slide] .tns-outer .ap-floorplan-popup-slider__item picture img {
    min-width: 100%;
    max-width: 100%;
  }
}

body.ap-page-less-ap_property #maps-section #map_canvas {
  height: 650px;
  width: 100%;
  overflow: hidden;
  display: block;
  position: relative;
  z-index: 1;
  border-radius: 16px;
}

@media (max-width: 767.98px) {
  body.ap-page-less-ap_property #maps-section #map_canvas {
    height: 400px;
  }
}

body.ap-page-less-ap_property #maps-section #map_canvas  > div {
  width: 100% !important;
}

/* Agent details, pagination for testimonial */
body.ap-page-less-ap_team #testimonial #bottom_pagination {
  margin-top: var(--wp--preset--spacing--30);
}

body.ap-page-less-ap_team #testimonial #bottom_pagination .page_toolbar .page_numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  color: inherit;
}

body.ap-page-less-ap_team #testimonial #bottom_pagination .page_toolbar .page_numbers .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 2px solid var(--wp--preset--color--additional-base-secondary);
  border-radius: 100px;
  color: var(--wp--preset--color--additional-base-secondary);
  width: 32px;
  height: 32px;
  aspect-ratio: 1 / 1;
}

body.ap-page-less-ap_team #testimonial #bottom_pagination .page_toolbar .page_numbers .page-numbers.inactive {
  opacity: 0.5;
  cursor: not-allowed;
}

body.ap-page-less-ap_team #testimonial #bottom_pagination .page_toolbar .page_numbers .page-numbers svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}
