/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* ===== Property Hive results grid ===== */
.propertyhive ul.properties,
.propertyhive ul.search-results,
.propertyhive ul.property-list,
.propertyhive ul.search_results,
.propertyhive ul#search-results {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  padding: 0 !important;
  margin: 0 !important;
}



@media (max-width: 1024px){
  .propertyhive ul.properties,
  .propertyhive ul.search-results,
  .propertyhive ul.property-list,
  .propertyhive ul.search_results,
  .propertyhive ul#search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px){
  .propertyhive ul.properties,
  .propertyhive ul.search-results,
  .propertyhive ul.property-list,
  .propertyhive ul.search_results,
  .propertyhive ul#search-results {
    grid-template-columns: 1fr;
  }
}

/* Reset PH float layout */
.propertyhive ul.properties > li,
.propertyhive ul.search-results > li,
.propertyhive ul.property-list > li,
.propertyhive ul.search_results > li,
.propertyhive ul#search-results > li {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* ===== Card ===== */
.ph-card__link{
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  text-decoration: none;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ph-card__link:hover{
  transform: translateY(-2px);
  
  border-color: rgba(0,0,0,.30);
}

.ph-card__media {
  position: relative;
  width: 100%;
  background: rgba(0,0,0,.04);
  overflow: visible; /* allows badge to hang outside image */
}

.ph-card__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden; /* crops image only */
  background: rgba(0,0,0,.04);
}

.ph-card__image-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center;
  display: block;
}

/* Safety for PropertyHive fallback thumbnail wrappers */
.ph-card__image-wrap a,
.ph-card__image-wrap picture,
.ph-card__image-wrap .thumbnail,
.ph-card__image-wrap .wp-post-image {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.ph-card__image-wrap .thumbnail img,
.ph-card__image-wrap a img,
.ph-card__image-wrap picture img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center;
}

/* Badge bottom-left like your reference */
.ph-card__badge {
  position: absolute;
  left: 20px;
  bottom: 0;
  transform: translateY(50%);
  z-index: 2;

  background: #A6263B;
  color: #fff;
  padding: 6px 14px;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
}

/* Body */
.ph-card__body{
  padding: 28px 20px 16px;
  display: grid;
  gap: 8px;
}

.ph-card__title{
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Summary line output by PH can contain p/div/spans – flatten it */
.ph-card__sub{
  font-size: 13px;
  line-height: 1.45;
  color: rgba(0,0,0,.62);
}
.ph-card__sub *{
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

/* ===== Bottom Row Layout ===== */
.ph-card__bottom{
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== Button ===== */
.ph-card__cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 20px;

  font-size: 14px;
  font-weight: 400;

  color: #630816;
  border: 1px solid #630816;
  background-color: transparent;

  transition: all 0.2s ease;
}



/* ===== Price ===== */
.ph-card__price{
  font-size: 26px;
  line-height: 1.1;
  font-weight: 700;
  color: rgba(0,0,0,.88);
  white-space: nowrap;
}

/* Price */
.ph-card__price{
  font-size: 26px;
  line-height: 1.1;
  font-weight: 700;
  color: rgba(0,0,0,.88);
  white-space: nowrap;
  text-align: right;
}

/* ---------------------------------
   Global page padding (tablet + mobile)
--------------------------------- */

@media (max-width: 1024px) {
  #content {
    padding-left: 30px;
    padding-right: 30px;
  }
}

/* =========================================
   Property Hive Search Hero
   Tom Select version (final clean block)
   Field height: 53px
   Gap: 12px
========================================= */

.ph-search-hero {
  width: 100%;
}

/* ---------------------------------
   Header
--------------------------------- */

.ph-search-hero__header {
  text-align: center;
  margin: 90px auto 24px;
  max-width: 900px;
  padding: 0 16px;
}

.ph-search-hero__title {
  margin: 0 0 16px;
  font-weight: 400;
}

.ph-search-hero__subheading {
  margin: 0 0 26px;
  font-weight: 300;
}

/* CTA Button */

.ph-search-hero__cta {
  display: flex;
  justify-content: center;
  margin: 0 0 90px;
}

.ph-search-hero__mode-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid #630816;
  color: #630816;
  padding: 10px 25px;
  font-size: 18px;
  gap: 8px;
  transition: 0.2s ease;
}



.ph-search-hero__mode-btn i {
  transition: transform 0.2s ease;
}

.ph-search-hero__mode-btn:hover i {
  transform: translateX(4px);
}

/* ---------------------------------
   Filters Layout (centered row + true 12px gap)
--------------------------------- */

.ph-search-hero__filters {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 12px !important;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
}

/* Field sizing (fixed widths = cleaner centering) */
.ph-search-hero__field {
  display: flex;
  align-items: center;
  flex: 0 0 190px;
  min-width: 190px;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
}

.ph-search-hero__field--location {
  flex: 0 0 320px;
  min-width: 320px;
}

.ph-search-hero__field--submit {
  flex: 0 0 160px;
  min-width: 160px;
}

/* Remove PH default margins/labels that can break spacing */
.ph-search-hero__field,
.ph-search-hero__field * {
  margin: 0 !important;
}

.ph-search-hero__field label {
  display: none !important;
}

/* ---------------------------------
   Location Input
--------------------------------- */

.ph-search-hero__input {
  width: 100%;
  height: 53px;
  padding: 0 12px;
  border: 1px solid rgba(0,0,0,0.18);
  background: #fff;
  box-sizing: border-box;
  font-size: 16px;
  font-weight: 400;
  color: #676767;
  outline: none;
}

.ph-search-hero__input::placeholder {
  font-size: 16px;
  font-weight: 400;
  color: #676767;
  opacity: 1;
}

/* ---------------------------------
   Search Button
--------------------------------- */

.ph-search-hero__submit {
  width: 100%;
  height: 53px;
  padding: 0 12px;
  border: 1px solid #630816;
  background: #630816;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: 0.2s ease;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  box-sizing: border-box;
}



/* ---------------------------------
   Checkbox Row
--------------------------------- */

.ph-search-hero__available {
  display: flex;
  justify-content: center;
  margin: 14px 0 0;
  padding: 0 16px;
}

.ph-search-hero__checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  user-select: none;
}

.ph-search-hero__checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* ---------------------------------
   Tom Select Styling (make it fill field width)
--------------------------------- */

.ph-search-hero .ts-wrapper {
  width: 100% !important;
  display: block !important;
  box-sizing: border-box !important;
}

/* Control (closed state) */
.ph-search-hero .ts-control {
  width: 100% !important;
  height: 53px !important;
  border: 1px solid rgba(0,0,0,0.18) !important;
  background: #fff !important;
  padding: 0 12px !important;

  display: flex !important;
  align-items: center !important;

  box-shadow: none !important;
  box-sizing: border-box !important;
}

/* Text inside control */
.ph-search-hero .ts-control input,
.ph-search-hero .ts-control .item {
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #676767 !important;
}

/* Caret arrow: align + colour */
.ph-search-hero .ts-wrapper.single .ts-control:after {
  top: 50% !important;
  transform: translateY(-50%) !important;
  right: 12px !important;
  border-color: #676767 transparent transparent !important;
}

/* Dropdown panel */
.ph-search-hero .ts-dropdown {
  border: 1px solid rgba(0,0,0,0.18) !important;
  background: #fff !important;
  box-shadow: none !important;
  margin-top: 6px !important;
  box-sizing: border-box !important;
}

/* Dropdown options */
.ph-search-hero .ts-dropdown .option {
  padding: 10px 12px !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #676767 !important;
}

/* Hover/active state */
.ph-search-hero .ts-dropdown .option:hover,
.ph-search-hero .ts-dropdown .active {
  background: rgba(0,0,0,0.04) !important;
  color: #676767 !important;
}
/* ---------------------------------
   PH wrapper interference (table-cell)
   Force inner control to fill width
--------------------------------- */

/* The PH "control" wrapper inside your select container */
.ph-search-hero__control--select .control {
  display: block !important;
  width: 100% !important;
  padding:0 !important;
}

/* Tom Select wrapper must fill available width */
.ph-search-hero__control--select .ts-wrapper {
  width: 100% !important;
  display: block !important;
}

/* Tom Select control fills wrapper */
.ph-search-hero__control--select .ts-control {
  width: 100% !important;
  box-sizing: border-box !important;
}
.ph-search-hero__control {
  width: 100% !important;
}

.ph-search-hero .ts-wrapper.focus .ts-control,
.ph-search-hero .ts-control:focus-within {
  outline: none !important;
  
  border-color: #484848 !important;
}

/* Remove all Tom Select corner radius */
.ph-search-hero .ts-wrapper,
.ph-search-hero .ts-control,
.ph-search-hero .ts-dropdown {
  border-radius: 0 !important;
}

/* ---------------------------------
   Premium SVG Checkbox (16x16)
--------------------------------- */

.ph-search-hero__checkbox{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  color: #676767;
  line-height: 16px;   /* critical */
  margin: 10px;
}

/* Hide native checkbox */
.ph-search-hero__checkbox input[type="checkbox"]{
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* Unchecked box */
.ph-search-hero__checkbox .ph-check{
  width: 16px;
  height: 16px;
  border: 1px solid #979797;
  background: #fff;
  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: center;

   /* optical alignment tweak */
}

/* Hide SVG by default */
.ph-search-hero__checkbox .ph-check__svg{
  width: 16px;
  height: 16px;
  display: none;
}

.ph-search-hero__checkbox .ph-check__svg svg{
  width: 100%;
  height: 100%;
  display: block;
}

/* Checked: show SVG, remove border box */
.ph-search-hero__checkbox input:checked + .ph-check{
  border: none;
  background: transparent;
}

.ph-search-hero__checkbox input:checked + .ph-check .ph-check__svg{
  display: block;
}

/* Keyboard focus */
.ph-search-hero__checkbox input:focus-visible + .ph-check{
  outline: none;
  box-shadow: 0 0 0 2px rgba(99, 8, 22, 0.18);
}

/* ---------------------------------
   Checkbox micro-animations (premium)
--------------------------------- */

/* Base transition on the box */
.ph-search-hero__checkbox .ph-check{
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

/* Prepare SVG for animation */
.ph-search-hero__checkbox .ph-check__svg{
  display: block;                 /* keep it in flow */
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 140ms ease, transform 160ms ease;
}

/* Hide the SVG visually when unchecked */
.ph-search-hero__checkbox input:not(:checked) + .ph-check .ph-check__svg{
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
}

/* Checked: SVG fades/scales in */
.ph-search-hero__checkbox input:checked + .ph-check .ph-check__svg{
  opacity: 1;
  transform: scale(1);
}

/* Subtle "press" feedback */
.ph-search-hero__checkbox:active .ph-check{
  transform: translateY(-1px) scale(0.97); /* keeps your optical -1px + adds press */
}

/* ---------------------------------
   Property Results Count
--------------------------------- */

.propertyhive-result-count{
  text-align: left;
  margin: 36px 0 32px;
  padding-bottom: 18px;
  font-size: 14px;
  font-weight: 400;
  color: #676767;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
/* Hard reset: remove any radius inside the search hero (mobile included) */
.ph-search-hero__input,
.ph-search-hero button,
.ph-search-hero .ts-wrapper,
.ph-search-hero .ts-control,
.ph-search-hero .ts-dropdown,
.ph-search-hero .ph-check  {
  border-radius: 0 !important;
}

/* ---------------------------------
   Mobile
--------------------------------- */

@media (max-width: 640px) {
  .ph-search-hero__filters {
    flex-wrap: wrap;
  }

  .ph-search-hero__field,
  .ph-search-hero__field--submit,
  .ph-search-hero__field--location {
    flex: 1 1 100%;
    min-width: 100%;
    
  }
}


/* =========================================
   Property Search Loader (Below Header)
========================================= */

/* Loader below header */
.ph-page-loader {
  position: fixed;
  top: 90px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 1;
  visibility: visible;

  /* IMPORTANT: no transition on initial paint */
  transition: none;
}

/* Only animate the fade-out */
.ph-page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 420ms ease, visibility 420ms ease;
}

/* UI */
.ph-page-loader__inner {
  text-align: center;
  padding: 32px;
}

.ph-page-loader__spinner {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(0,0,0,0.08);
  border-top-color: #630816;
  border-radius: 50%;
  animation: phSpin 0.9s linear infinite;
  margin: 0 auto 14px;
}

@keyframes phSpin {
  to { transform: rotate(360deg); }
}

.ph-page-loader__text {
  font-size: 14px;
  font-weight: 400;
  color: #676767;
  letter-spacing: 0.3px;
}

/* =========================================
   SAB Property Gallery (Single Property)
   Desktop: 590x392
========================================= */

.sab-gallery{
  position: relative;
  width: 590px;
  height: 392px;
  background: #f6f6f6;
  overflow: hidden;
}

/* Images fill container */
.sab-gallery__swiper,
.sab-gallery .swiper-wrapper,
.sab-gallery .swiper-slide{
  width: 100%;
  height: 100%;
}

.sab-gallery__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Availability badge */
.sab-gallery__badge{
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  background: #A6263B;
  color: #fff;
  font-size: 14px !important;
  font-weight: 400;
  padding: 4px 14px;
}

/* Nav arrows */
.sab-gallery__nav{
  position: absolute;
  bottom: 14px;
  z-index: 10;

  width: 34px;
  height: 34px;
  
  background: rgba(255,255,255,0.92);
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition: 0.18s ease;
}

.sab-gallery__nav--prev{ left: 14px; }
.sab-gallery__nav--next{ right: 14px; }

.sab-gallery__nav span{
  font-size: 28px;
  line-height: 1;
  color: #111;
  transform: translateY(-1px);
}

.sab-gallery__nav:hover{
  background: #fff;
  border-color: rgba(0,0,0,0.32);
}

/* Counter pill (bottom center) */
.sab-gallery__counter{
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 10;

  height: 36px;
  padding: 4px 12px;
  background: rgba(255,255,255,0.96);
  

  display: inline-flex;
  align-items: center;
  gap: 10px;

  font-size: 16px;
  font-weight: 400;
  color: #111;
}

.sab-gallery__counter-icon svg{
  width: 20px;
  height: 20px;
  display: block;
}

/* Responsive: fluid on smaller screens */
@media (max-width: 900px){
  .sab-gallery{
    width: 100%;
    height: auto;
    aspect-ratio: 590 / 392;
  }
}


/* Lightbox counter */

.sab-lightbox-counter{
  position:absolute;
  bottom:20px;
  left:50%;
  transform:translateX(-50%);
  
  background:rgba(0,0,0,0.65);
  color:#fff;

  padding:6px 12px;
  font-size:14px;
  font-weight:400;

  letter-spacing:0.02em;
}

/* Button icon slide animation */

.bricks-button i {
  transition: transform 0.2s ease;
}

.bricks-button:hover i {
  transform: translateX(4px);
}

/* =====================================
   Button fill animation (left → right)
===================================== */

/* 1) Define each button’s sweep colour */
.primary-btn,
.secondary-btn{
  --sab-fill: #A6263B; /* your burgundy hover fill */
}

.light-btn{
  --sab-fill: #FFD074; /* your light hover fill */
}

.bricks-button {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: border-color 0.25s ease;
}

/* animated fill layer */
.bricks-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sab-fill);
  
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease-in-out;
  
  z-index: -1;
}

/* trigger animation */
.bricks-button:hover::before {
  transform: scaleX(1);
}
/* text colour on hover */

.primary-btn:hover,
.secondary-btn:hover {
  color: #fff !important;
  transition: 0.35s ease;
}

.light-btn:hover {
  color: #121212 !important;
  transition: 0.35s ease;
}

no your bricks version doesnt work, this works for bricks /* =====================================
   Button fill animation (left → right)
===================================== */

/* 1) Define each button’s sweep colour */
.primary-btn,
.secondary-btn{
  --sab-fill: #A6263B; /* your burgundy hover fill */
}

.light-btn{
  --sab-fill: #FFD074; /* your light hover fill */
}

.bricks-button {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: border-color 0.25s ease;
}

/* animated fill layer */
.bricks-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sab-fill);
  
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease-in-out;
  
  z-index: -1;
}

/* trigger animation */
.bricks-button:hover::before {
  transform: scaleX(1);
}
/* text colour on hover */

.primary-btn:hover,
.secondary-btn:hover {
  color: #fff !important;
  transition: 0.35s ease;
}

.light-btn:hover {
  color: #121212 !important;
  transition: 0.35s ease;
}


/* =====================================
   PH buttons sweep (hero/search/card)
   ===================================== */

/* Assign default fills (or add primary-btn/light-btn classes in markup instead) */
.ph-search-hero__mode-btn,
.ph-search-hero__submit,
.ph-card__cta{
  --sab-fill: #A6263B; /* default burgundy */
  position: relative;
  overflow: hidden;
  z-index: 0;          /* IMPORTANT: don’t create weird stacking */
}

/* sweep layer for PH buttons */
.ph-search-hero__mode-btn::before,
.ph-search-hero__submit::before,
.ph-card__cta::before{
  content:"";
  position:absolute;
  inset:0;
  background: var(--sab-fill);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease-in-out;
  z-index: -1;         /* sits behind the text */
  pointer-events: none;
}

/* animate */
.ph-search-hero__mode-btn:hover::before,
.ph-search-hero__submit:hover::before,
.ph-card__cta:hover::before{
  transform: scaleX(1);
}

/* text colours on hover */
.ph-search-hero__mode-btn:hover,
.ph-search-hero__submit:hover,
.ph-card__cta:hover{
  color:#fff !important;
}

/* Optional: if you want the card CTA to use the light fill + dark text */
.ph-card__cta.light-btn{ --sab-fill:#FFD074; }
.ph-card__cta.light-btn:hover{ color:#121212 !important; }

.reveal-section {
  opacity: 0;                    /* change to zero on launch */
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  
  will-change: opacity, transform;
}

.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
  animation-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-section {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Generic reveal sections (other sections only) */

.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
  animation-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-section,
  .reviews-reveal,
  .review-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.review-section {
  overflow: hidden;
}

.review-section .reviews-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  perspective: 1400px;
  overflow: visible;
}

.review-section .review-card {
  position: relative;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  transition:
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* consistent final layering */
.review-section .review-card:nth-child(1) {
  z-index: 1;
}

.review-section .review-card:nth-child(2) {
  z-index: 3;
}

.review-section .review-card:nth-child(3) {
  z-index: 1;
}

/* hidden premium start state */
.review-section.reviews-reveal:not(.is-visible) .review-card:nth-child(1) {
  transform: translate3d(110px, 16px, 0) scale(0.9) rotate(-4deg);
  opacity: 0;
}

.review-section.reviews-reveal:not(.is-visible) .review-card:nth-child(2) {
  transform: translate3d(0, -10px, 0) scale(0.94) rotate(0deg);
  opacity: 0;
}

.review-section.reviews-reveal:not(.is-visible) .review-card:nth-child(3) {
  transform: translate3d(-110px, 16px, 0) scale(0.9) rotate(4deg);
  opacity: 0;
}

/* final state */
.review-section.reviews-reveal.is-visible .review-card {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
}

/* subtle stagger */
.review-section.reviews-reveal.is-visible .review-card:nth-child(1) {
  transition-delay: 0.03s;
}

.review-section.reviews-reveal.is-visible .review-card:nth-child(2) {
  transition-delay: 0.1s;
}

.review-section.reviews-reveal.is-visible .review-card:nth-child(3) {
  transition-delay: 0.17s;
}

/* ---------------------------------
   Property Results Pagination
--------------------------------- */

.sab-property-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 48px 0 0;
}

/* Reset WP pagination list */
.sab-property-pagination ul.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.sab-property-pagination ul.page-numbers li {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

/* Base page numbers */
.sab-property-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: auto;
  height: auto;
  padding: 0;

  font-family: "Urbanist", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;

  color: #676767;
  text-decoration: none;

  background: transparent;
  border: none;
  box-shadow: none;

  transition: color 0.2s ease;
}

/* Current page */
.sab-property-pagination .page-numbers.current {
  color: #630816;
  font-weight: 500;
}

/* Number hover */
.sab-property-pagination a.page-numbers:hover {
  color: #630816;
}

/* Chevron links - icon only, no button styling */
.sab-property-pagination .prev,
.sab-property-pagination .next {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: auto;
  height: auto;
  min-width: auto;
  padding: 0;

  border: none !important;
  background: transparent !important;
  box-shadow: none !important;

  color: #676767;
  font-size: 18px;
  line-height: 1;

  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

/* Chevron spacing:
   16px default gap + 32px margin = 48px total */
.sab-property-pagination .prev {
  margin-right: 32px;
}

.sab-property-pagination .next {
  margin-left: 32px;
}

/* Chevron icon alignment */
.sab-property-pagination .prev i,
.sab-property-pagination .next i {
  display: block;
  line-height: 1;
}

/* Chevron hover */
.sab-property-pagination .prev:hover,
.sab-property-pagination .next:hover {
  color: #630816;
}

/* Optional subtle movement */
.sab-property-pagination .prev:hover i {
  transform: translateX(-3px);
}

.sab-property-pagination .next:hover i {
  transform: translateX(3px);
}

.sab-property-pagination .prev i,
.sab-property-pagination .next i {
  transition: transform 0.2s ease;
}

.sab-property-pagination {
  margin: 20px 0 80px 0;
}

/* ===== Card Features: bedrooms / bathrooms ===== */

.ph-card__features {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;

  margin-top: 20px !important;
}

.ph-card__feature {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: #121212;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.ph-card__feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 26px;
  height: 26px;
  flex: 0 0 26px;

  color: #ab273c;
}

.ph-card__feature-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.ph-card__feature-icon svg path,
.ph-card__feature-icon svg rect,
.ph-card__feature-icon svg circle,
.ph-card__feature-icon svg line,
.ph-card__feature-icon svg polyline,
.ph-card__feature-icon svg polygon {
  fill: currentColor;
  stroke: currentColor;
}

.ph-card__feature-number {
  color: #121212;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

/* ===== Bottom Row Layout ===== */

.ph-card__bottom {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* =====================================
   SAB Register Form - Step / Loading / Success
===================================== */

/* -------------------------------
   Headers / step visibility
------------------------------- */

.sab-register-form.is-step-1 .sab-register-header-2,
.sab-register-form.is-step-2 .sab-register-header-1 {
  display: none !important;
}

/* Hide split marker */
.sab-register-form [data-sab-step-split] {
  display: none !important;
}

.sab-register-form .form-group:has([data-sab-step-split]) {
  display: none !important;
}

/* Hide native Bricks submit on step 1 */
.sab-register-form.is-step-1 .submit-button-wrapper {
  display: none !important;
}

/* Hide custom next button on step 2 */
.sab-register-form.is-step-2 .sab-register-next {
  display: none !important;
}

/* Back / next clickable behaviour */
.sab-register-next,
.sab-register-back {
  cursor: pointer;
  user-select: none;
}

/* -------------------------------
   Form step animation
------------------------------- */

/* Hidden by default to prevent initial load jitter before JS sets Step 1 */
.sab-register-form {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  will-change: opacity, transform;
}

/* Stable visible state after JS has initialised */
.sab-register-form.is-ready {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Step transition out */
.sab-register-form.is-ready.is-animating-out {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

/* Step transition in */
.sab-register-form.is-ready.is-animating-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 260ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Once loading/submitted begins, hide form completely */
.sab-register-form.is-loading,
.sab-register-form.is-submitted {
  display: none !important;
}

/* Hide Bricks default success message so it never flashes */
.sab-register-form .message.success,
.sab-register-form .alert.success,
.sab-register-form .bricks-form-message.success,
.sab-register-form .form-message.success {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}
/* -------------------------------
   Loading state
   Based on your PropertyHive loader style
------------------------------- */

.sab-register-loading {
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);

  min-height: 260px;
  width: 100%;

  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;

  will-change: opacity, transform;
}

.sab-register-loading.is-visible {
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 260ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sab-register-loading::before {
  content: "";
  width: 32px;
  height: 32px;
  border: 2px solid rgba(0,0,0,0.08);
  border-top-color: #630816;
  border-radius: 50%;
  animation: sabRegisterSpin 0.9s linear infinite;
  margin-bottom: 14px;
}

.sab-register-loading::after {
  content: "Submitting your request…";
  font-size: 14px;
  font-weight: 400;
  color: #676767;
  letter-spacing: 0.3px;
}

@keyframes sabRegisterSpin {
  to {
    transform: rotate(360deg);
  }
}

/* -------------------------------
   Success confirmation
------------------------------- */

.success-registration {
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  will-change: opacity, transform;
}

.success-registration.is-visible {
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 320ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* -------------------------------
   Currency field formatting
------------------------------- */

.sab-register-form input[name="form-field-iajufa"],
.sab-register-form input[name="form-field-icgizv"],
.sab-register-form input[name="form-field-mwxxox"],
.sab-register-form input[name="form-field-taggul"] {
  font-variant-numeric: tabular-nums;
}

/* -------------------------------
   Reduced motion
------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .sab-register-form,
  .sab-register-loading,
  .success-registration {
    transition: none !important;
    transform: none !important;
  }

  .sab-register-loading::before {
    animation: none !important;
  }
}

/* =====================================
   SAB Register Form - Tom Select Styling
   Matches custom Bricks form fields
===================================== */

.sab-register-form .ts-wrapper {
  width: 100% !important;
  display: block !important;
  box-sizing: border-box !important;
  margin-bottom: 0 !important;
}

/* Closed select field */
.sab-register-form .ts-control {
  width: 100% !important;
  min-height: 53px !important;
  height: 53px !important;

  border: none !important;
  background: #F4F4F4 !important;
  padding: 0 16px !important;

  display: flex !important;
  align-items: center !important;

  box-shadow: none !important;
  box-sizing: border-box !important;
  border-radius: 0 !important;
}

/* Selected item / placeholder style */
.sab-register-form .ts-control input,
.sab-register-form .ts-control .item,
.sab-register-form .ts-control .placeholder {
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #838383 !important;
}

/* Actual selected value */
.sab-register-form .ts-wrapper.has-items .ts-control .item {
  color: #121212 !important;
}

/* Caret arrow */
.sab-register-form .ts-wrapper.single .ts-control:after {
  top: 50% !important;
  transform: translateY(-50%) !important;
  right: 16px !important;
  border-color: #838383 transparent transparent !important;
}

/* Soft focus state for Tom Select field */
.sab-register-form .ts-wrapper.focus .ts-control,
.sab-register-form .ts-wrapper.dropdown-active .ts-control {
  outline: none !important;
  border: none !important;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.16) !important;
}

/* Dropdown panel gets the border */
.sab-register-form .ts-dropdown {
  border: 1px solid rgba(0,0,0,0.18) !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
  margin-top: 6px !important;
  box-sizing: border-box !important;
  border-radius: 0 !important;
}

/* Dropdown options */
.sab-register-form .ts-dropdown .option {
  padding: 11px 16px !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #676767 !important;
}

/* Hover / active option */
.sab-register-form .ts-dropdown .option:hover,
.sab-register-form .ts-dropdown .active {
  background: #F4F4F4 !important;
  color: #121212 !important;
}

/* Remove Bricks required asterisk from Tom Select wrapper */
.sab-register-form .ts-wrapper.required::after {
  content: none !important;
  display: none !important;
}

/* =====================================
   SAB Register Form - Input Focus Cleanup
===================================== */

.sab-register-form input,
.sab-register-form textarea,
.sab-register-form select {
  outline: none !important;
  box-shadow: none !important;
}

/* Soft focus state for normal fields */
.sab-register-form input:focus,
.sab-register-form textarea:focus,
.sab-register-form select:focus {
  outline: none !important;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.16) !important;
  border-color: transparent !important;
}

/* Prevent native select focus flash before/while Tom Select initializes */
.sab-register-form select,
.sab-register-form select:focus,
.sab-register-form select:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

/* Remove any browser/Bricks focus ring from Tom Select internals */
.sab-register-form .ts-wrapper,
.sab-register-form .ts-wrapper:focus,
.sab-register-form .ts-wrapper:focus-visible,
.sab-register-form .ts-control,
.sab-register-form .ts-control:focus,
.sab-register-form .ts-control:focus-visible,
.sab-register-form .ts-control input,
.sab-register-form .ts-control input:focus,
.sab-register-form .ts-control input:focus-visible {
  outline: none !important;
}

/* Keep your intended soft focus state */
.sab-register-form .ts-wrapper.focus .ts-control,
.sab-register-form .ts-wrapper.dropdown-active .ts-control,
.sab-register-form .ts-wrapper:focus-within .ts-control {
  border: none !important;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.16) !important;
}

/* =====================================
   SAB Register Form - Checkbox Styling
===================================== */

.sab-register-form input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;

  width: 16px;
  height: 16px;
  border: 1px solid #979797;
  background: #fff;
  border-radius: 0;
  cursor: pointer;

  display: inline-grid;
  place-content: center;

  transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.sab-register-form input[type="checkbox"]::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: transform 140ms ease;
  background: #a3243a;
}

.sab-register-form input[type="checkbox"]:checked {
  border-color: #a3243a;
}

.sab-register-form input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.sab-register-form input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(99, 8, 22, 0.18);
}

/* Disabled property tabs */
.sab-tab-disabled {
  opacity: 0.35;
  cursor: not-allowed !important;
  pointer-events: auto;
}

.sab-tab-disabled,
.sab-tab-disabled * {
  cursor: not-allowed !important;
}

.sab-tab-disabled:hover {
  color: inherit !important;
  background: inherit !important;
}

.sab-viewing-btn--disabled {
  opacity: 0.38 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* Hide available status badges */
.sab-gallery__badge.is-for-sale,
.sab-gallery__badge.is-to-let,
.ph-card__badge.is-for-sale,
.ph-card__badge.is-to-let {
  display: none !important;
}

/* Let unavailable statuses use the original badge colour */
.sab-gallery__badge.is-let,
.sab-gallery__badge.is-let-agreed,
.sab-gallery__badge.is-sold,
.sab-gallery__badge.is-sold-stc,
.sab-gallery__badge.is-under-offer,
.ph-card__badge.is-let,
.ph-card__badge.is-let-agreed,
.ph-card__badge.is-sold,
.ph-card__badge.is-sold-stc,
.ph-card__badge.is-under-offer {
  background-color: #A6263B !important;
  color: #ffffff !important;
}

/* ---------------------------------
   Property Results Toolbar
   Count left, sort right
--------------------------------- */

/* Hide native PH count, but keep our custom count */
.propertyhive-result-count:not(.sab-result-count) {
  display: none !important;
}

.ph-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  margin: 36px 0 32px;
  padding-bottom: 18px;

  border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* Reset count because styling now lives on toolbar */
.ph-results-toolbar .sab-result-count {
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: none !important;

  font-size: 14px;
  font-weight: 400;
  color: #676767;
  text-align: left;
}

.ph-results-sort {
  flex: 0 0 220px;
  width: 220px;
  margin: 0 !important;
  padding: 0 !important;
}

.ph-results-sort__control {
  width: 100%;
}

/* Native select fallback */
.ph-results-sort select {
  width: 100%;
  height: 53px;
  padding: 0 12px;

  border: 1px solid rgba(0,0,0,0.18);
  background: #fff;

  font-size: 16px;
  font-weight: 400;
  color: #676767;

  border-radius: 0 !important;
  outline: none;
  box-sizing: border-box;
}

/* Tom Select styling for sort dropdown */
.ph-results-toolbar .ts-wrapper {
  width: 100% !important;
  display: block !important;
  box-sizing: border-box !important;
}

.ph-results-toolbar .ts-control {
  width: 100% !important;
  height: 53px !important;

  border: 1px solid rgba(0,0,0,0.18) !important;
  background: #fff !important;
  padding: 0 12px !important;

  display: flex !important;
  align-items: center !important;

  box-shadow: none !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
}

.ph-results-toolbar .ts-control input,
.ph-results-toolbar .ts-control .item {
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #676767 !important;
}

.ph-results-toolbar .ts-wrapper.single .ts-control:after {
  top: 50% !important;
  transform: translateY(-50%) !important;
  right: 12px !important;
  border-color: #676767 transparent transparent !important;
}

.ph-results-toolbar .ts-dropdown {
  border: 1px solid rgba(0,0,0,0.18) !important;
  background: #fff !important;
  box-shadow: none !important;
  margin-top: 6px !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
}

.ph-results-toolbar .ts-dropdown .option {
  padding: 10px 12px !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #676767 !important;
}

.ph-results-toolbar .ts-dropdown .option:hover,
.ph-results-toolbar .ts-dropdown .active {
  background: rgba(0,0,0,0.04) !important;
  color: #676767 !important;
}

.ph-results-toolbar .ts-wrapper.focus .ts-control,
.ph-results-toolbar .ts-control:focus-within {
  outline: none !important;
  border-color: #484848 !important;
}

/* Mobile */
@media (max-width: 640px) {
  .ph-results-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .ph-results-toolbar .sab-result-count {
    text-align: left;
  }

  .ph-results-sort {
    flex: 1 1 auto;
    width: 100%;
  }
}

/* =========================================
   FINAL OVERRIDES - Search + Results Sort
   Fix Tom Select caret alignment + consistency
========================================= */

/* Keep all search/sort Tom Select controls visually identical */
.ph-search-hero .ts-control,
.ph-results-toolbar .ts-control {
  min-height: 53px !important;
  height: 53px !important;
  display: flex !important;
  align-items: center !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1 !important;
}

/* Text vertical alignment inside Tom Select */
.ph-search-hero .ts-control .item,
.ph-results-toolbar .ts-control .item,
.ph-search-hero .ts-control input,
.ph-results-toolbar .ts-control input {
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
}

/* Tom Select caret optical centering */
.ph-search-hero .ts-wrapper.single .ts-control:after,
.ph-results-toolbar .ts-wrapper.single .ts-control:after {
  top: calc(50% + 2px) !important;
  right: 12px !important;
  transform: translateY(-50%) !important;
  margin-top: 0 !important;
  border-color: #676767 transparent transparent transparent !important;
}

/* Make sure the sort dropdown does not inherit weird native select styling after Tom Select loads */
.ph-results-toolbar .ts-wrapper + select,
.ph-search-hero .ts-wrapper + select {
  display: none !important;
}

/* Results toolbar sort should match hero dropdown width/feel */
.ph-results-toolbar .ts-wrapper {
  width: 100% !important;
}

.ph-results-toolbar .ts-dropdown,
.ph-search-hero .ts-dropdown {
  border-radius: 0 !important;
}

/* =====================================
   SAB Request Viewing Popup
===================================== */

.sab-viewing-fancybox .fancybox-bg {
  background: #171717 !important;
  opacity: 0.4 !important;
}

.sab-viewing-fancybox .fancybox-content {
  overflow: visible !important;
}

.sab-viewing-popup {
  width: 700px;
  max-width: calc(100vw - 40px);
  height: auto;
  padding: 24px 48px 48px 48px !important;
  background: #fff;
  border: 1px solid #C9C9C9;
  box-shadow: 0 4px 28px rgba(0,0,0,0.12);
  position: relative;
}



.sab-viewing-popup__title {
  margin: 0 0 32px;
  font-family: "HeadlandOne", "Headland One", serif;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 400;
  color: #000;
  text-align: left;
}

/* =====================================
   SAB Request Viewing Form
===================================== */

.sab-viewing-form {
  width: 100%;
}

.sab-viewing-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 30px;
  row-gap: 16px;
}

.sab-viewing-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.sab-viewing-form__field--full,
.sab-viewing-form__field--message {
  margin-top: 16px;
}

.sab-viewing-form label,
.sab-viewing-form .control label {
  font-family: "Urbanist", sans-serif;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 300;
  color: #121212;
  margin: 0 0 4px 0;
}

.sab-viewing-form input[type="text"],
.sab-viewing-form input[type="email"],
.sab-viewing-form input[type="tel"],
.sab-viewing-form select,
.sab-viewing-form textarea {
  width: 100%;
  min-height: 50px;
  border: none;
  border-radius: 0;
  background: #F4F4F4;
  padding: 12px, 4px;
  font-family: "Urbanist", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #121212;
  outline: none;
  box-shadow: none;
}

.sab-viewing-form textarea {
  min-height: 118px;
  resize: vertical;
}

.sab-viewing-form input::placeholder,
.sab-viewing-form textarea::placeholder {
  color: #838383;
  opacity: 1;
}

.sab-viewing-form input:focus,
.sab-viewing-form textarea:focus,
.sab-viewing-form select:focus {
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.16);
}

/* Tom Select */
.sab-viewing-form .ts-wrapper {
  width: 100% !important;
}

.sab-viewing-form .ts-control {
  min-height: 50px !important;
  height: 50px !important;
  border: none !important;
  border-radius: 0 !important;
  background: #F4F4F4 !important;
  padding: 0 12px !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
}

.sab-viewing-form .ts-control input,
.sab-viewing-form .ts-control .item,
.sab-viewing-form .ts-control .placeholder {
  font-family: "Urbanist", sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #838383 !important;
}

.sab-viewing-form .ts-wrapper.has-items .ts-control .item {
  color: #121212 !important;
}

.sab-viewing-form .ts-wrapper.single .ts-control:after {
  top: calc(50% + 1px) !important;
  right: 14px !important;
  transform: translateY(-50%) !important;
  border-color: #838383 transparent transparent transparent !important;
}

.sab-viewing-form .ts-wrapper.focus .ts-control,
.sab-viewing-form .ts-wrapper.dropdown-active .ts-control {
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.16) !important;
}

.sab-viewing-form .ts-dropdown {
  border: 1px solid rgba(0,0,0,0.18) !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
  margin-top: 6px !important;
}

.sab-viewing-form .ts-dropdown .option {
  padding: 11px 16px !important;
  font-family: "Urbanist", sans-serif !important;
  font-size: 16px !important;
  color: #676767 !important;
}

.sab-viewing-form .ts-dropdown .option:hover,
.sab-viewing-form .ts-dropdown .active {
  background: #F4F4F4 !important;
  color: #121212 !important;
}

/* Privacy checkbox */
.sab-viewing-form__privacy {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px !important;
  font-family: "Urbanist", sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #121212;
}

.sab-viewing-form__privacy input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px !important;
  height: 16px !important;
  border: 1px solid #979797;
  background: #fff;
  border-radius: 0;
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  flex: 0 0 16px;
}

.sab-viewing-form__privacy input[type="checkbox"]::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: transform 140ms ease;
  background: #A6263B;
}

.sab-viewing-form__privacy input[type="checkbox"]:checked {
  border-color: #A6263B;
}

.sab-viewing-form__privacy input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.sab-viewing-form__privacy a {
  color: #630816;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Submit */
.sab-viewing-form__submit {
  width: 100%;
  margin-top: 42px;
  min-height: 54px;
  border: 1px solid #630816;
  background: #630816;
  color: #fff;
  font-family: "Urbanist", sans-serif;
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.sab-viewing-form__submit i {
  font-size: 12px;
  transition: transform 180ms ease;
}

.sab-viewing-form__submit:hover i {
  transform: translateX(3px);
}

/* Loading / success */
.sab-viewing-loading {
  display: none;
  min-height: 260px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.sab-viewing-loading::before {
  content: "";
  width: 32px;
  height: 32px;
  border: 2px solid rgba(0,0,0,0.08);
  border-top-color: #630816;
  border-radius: 50%;
  animation: sabRegisterSpin 0.9s linear infinite;
  margin-bottom: 14px;
}

.sab-viewing-loading::after {
  content: "Submitting your request...";
  font-family: "Urbanist", sans-serif;
  font-size: 14px;
  color: #676767;
}

.sab-viewing-form.is-loading .sab-viewing-form__fields,
.sab-viewing-form.is-loading .sab-viewing-form__submit {
  display: none;
}

.sab-viewing-form.is-loading .sab-viewing-loading {
  display: flex;
}

.sab-viewing-form.is-success .sab-viewing-form__fields,
.sab-viewing-form.is-success .sab-viewing-form__submit,
.sab-viewing-form.is-success .sab-viewing-loading {
  display: none;
}

.sab-viewing-alert {
  font-family: "Urbanist", sans-serif;
  padding: 18px;
  background: #F4F4F4;
  color: #121212;
}

.sab-viewing-alert h3 {
  margin: 0 0 6px;
  font-family: "HeadlandOne", "Headland One", serif;
  font-size: 24px;
  font-weight: 400;
}

.sab-viewing-alert p {
  margin: 0;
  font-size: 16px;
  color: #676767;
}

.sab-viewing-alert--error {
  margin-bottom: 18px;
  border-left: 3px solid #A6263B;
}

.sab-viewing-popup.is-loading .sab-viewing-popup__title,
.sab-viewing-popup.is-success .sab-viewing-popup__title {
  display: none !important;
}

/* Mobile */
@media (max-width: 767px) {
  .sab-viewing-popup {
    width: calc(100vw - 24px);
    padding: 32px 22px !important;
  }

  .sab-viewing-form__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sab-viewing-popup__title {
    font-size: 24px;
    padding-right: 44px;
  }
}

/* =====================================
   Request Viewing Success State
===================================== */

.sab-viewing-form.is-success #enquirySuccess {
  display: flex !important;
  min-height: 320px;
  padding: 24px 20px 10px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;

  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.sab-viewing-form.is-success #enquirySuccess::before {
  content: "";
  width: 58px;
  height: 58px;
  margin-bottom: 22px;

  display: block;
  background-image: url("https://sabestates.janadamus.co.uk/wp-content/uploads/2026/06/successicon.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;

  border: none;
  border-radius: 0;
}

/* Title */
.sab-viewing-form.is-success #enquirySuccess h3 {
  margin: 0 0 10px !important;
  font-family: "HeadlandOne", "Headland One", serif;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 400;
  color: #121212;
}

/* Subheading */
.sab-viewing-form.is-success #enquirySuccess p {
  max-width: 360px;
  margin: 0 auto !important;
  font-family: "Urbanist", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 300;
  color: #676767;
}

/* Gentle reveal */
.sab-viewing-form.is-success #enquirySuccess {
  animation: sabViewingSuccessIn 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes sabViewingSuccessIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sab-viewing-form__privacy input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;

  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;

  flex: 0 0 16px !important;
  display: inline-block !important;

  padding: 0 !important;
  margin: 2px 0 0 0 !important;

  box-sizing: border-box !important;
  border: 1px solid #979797 !important;
  border-radius: 0 !important;
  background: #fff !important;

  vertical-align: top !important;
  transform: none !important;
}

.sab-viewing-form__privacy input[type="checkbox"]::before {
  content: "" !important;
  display: block !important;

  width: 10px !important;
  height: 10px !important;
  margin: 2px !important;

  background: #A6263B !important;
  transform: scale(0) !important;
  transition: transform 140ms ease !important;
}

.sab-viewing-form__privacy input[type="checkbox"]:checked::before {
  transform: scale(1) !important;
}

.sab-viewing-fancybox .fancybox-slide,
.sab-viewing-fancybox .fancybox-content,
.sab-viewing-popup {
  cursor: default !important;
  touch-action: auto !important;
}


@media (max-width: 767px) {
  html.fancybox-active,
  body.fancybox-active {
    overflow: hidden !important;
    height: 100% !important;
  }

  .sab-viewing-fancybox .fancybox-stage,
  .sab-viewing-fancybox .fancybox-slide {
    overflow: hidden !important;
  }

  .sab-viewing-fancybox .fancybox-slide {
    padding: 88px 0 0 !important;
    align-items: flex-end !important;
  }

  .sab-viewing-fancybox .fancybox-content,
  .sab-viewing-popup {
    width: 100vw !important;
    max-width: 100vw !important;
    max-height: calc(100dvh - 88px) !important;
    margin: 0 !important;

    padding: 26px 20px calc(34px + env(safe-area-inset-bottom)) !important;

    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;

    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch;
  }

  .sab-viewing-popup__title {
    font-size: 22px !important;
    line-height: 1.2 !important;
    margin-bottom: 22px !important;
    padding-right: 38px;
  }

  .sab-viewing-form__grid {
    grid-template-columns: 1fr !important;
    gap: 13px !important;
  }

  .sab-viewing-form__field {
    gap: 4px !important;
  }

  .sab-viewing-form label,
  .sab-viewing-form .control label {
    font-size: 14px !important;
  }

  .sab-viewing-form input[type="text"],
  .sab-viewing-form input[type="email"],
  .sab-viewing-form input[type="tel"],
  .sab-viewing-form select,
  .sab-viewing-form textarea,
  .sab-viewing-form .ts-control {
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 12px !important;
    font-size: 16px !important;
  }

  .sab-viewing-form textarea {
    min-height: 92px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  .sab-viewing-form__field--full,
  .sab-viewing-form__field--message {
    margin-top: 13px !important;
  }

  .sab-viewing-form__privacy {
    align-items: flex-start !important;
    gap: 9px !important;
    margin-top: 15px !important;
    font-size: 13.5px !important;
    line-height: 1.35 !important;
  }

  .sab-viewing-form__submit {
    min-height: 48px !important;
    margin-top: 28px !important;
    font-size: 15px !important;
  }

  .sab-viewing-form.is-success #enquirySuccess {
    min-height: 300px !important;
    padding: 20px 12px !important;
  }

  .sab-viewing-form.is-success #enquirySuccess h3 {
    font-size: 24px !important;
  }

  .sab-viewing-form.is-success #enquirySuccess p {
    font-size: 15px !important;
    max-width: 310px !important;
  }
}

/* =====================================
   SAB Valuation Form - Step / Loading / Success
===================================== */
/* -------------------------------
   Headers / step visibility
------------------------------- */

.sab-valuation-form.is-step-1 .sab-valuation-header-2,
.sab-valuation-form.is-step-2 .sab-valuation-header-1 {
  display: none !important;
}

/* Hide split marker */
.sab-valuation-form [data-sab-step-split] {
  display: none !important;
}

.sab-valuation-form .form-group:has([data-sab-step-split]) {
  display: none !important;
}

/* Hide native Bricks submit on step 1 */
.sab-valuation-form.is-step-1 .submit-button-wrapper {
  display: none !important;
}

/* Hide custom next button on step 2 */
.sab-valuation-form.is-step-2 .sab-valuation-next {
  display: none !important;
}

/* Back / next clickable behaviour */
.sab-valuation-next,
.sab-valuation-back {
  cursor: pointer;
  user-select: none;
}

/* -------------------------------
   Form layout
------------------------------- */

.sab-valuation-form {
  column-gap: 32px;
  opacity: 1;
  visibility: visible;
  transform: none;
  will-change: opacity, transform;
}

/* Default: full width */
.sab-valuation-form .form-group {
  width: 100%;
  max-width: 100%;
}

/* Step 1: first six fields, two-column layout */
.sab-valuation-form .form-group:has([name="form-field-affeea"]),
.sab-valuation-form .form-group:has([name="form-field-jiyeux"]),
.sab-valuation-form .form-group:has([name="form-field-rnmmtl"]),
.sab-valuation-form .form-group:has([name="form-field-dijlip"]),
.sab-valuation-form .form-group:has([name="form-field-mciydq"]),
.sab-valuation-form .form-group:has([name="form-field-ivdwig"]) {
  width: calc(50% - 16px);
  max-width: 100%;
}

/* Step 1: address + postcode */
.sab-valuation-form .form-group:has([name="form-field-owwzal"]) {
  width: calc(65% - 16px);
  max-width: 100%;
}

.sab-valuation-form .form-group:has([name="form-field-ooiili"]) {
  width: calc(35% - 16px);
  max-width: 100%;
}

/* Step 1: optional message */
.sab-valuation-form .form-group:has([name="form-field-poxhby"]) {
  width: 100% !important;
  max-width: 100% !important;
}

/* Step 2: contact/date fields, two-column layout */
.sab-valuation-form .form-group:has([name="form-field-bkrkko"]),
.sab-valuation-form .form-group:has([name="form-field-qyeanm"]),
.sab-valuation-form .form-group:has([name="form-field-mwxxox"]),
.sab-valuation-form .form-group:has([name="form-field-taggul"]),
.sab-valuation-form .form-group:has([name="form-field-iajufa"]),
.sab-valuation-form .form-group:has([name="form-field-icgizv"]) {
  width: calc(50% - 16px);
  max-width: 100%;
}

/* Step 2: privacy checkbox full width */
.sab-valuation-form .form-group:has([name="form-field-esynsn"]) {
  width: 100% !important;
  max-width: 100% !important;
}

/* Mobile: all fields full width */
@media (max-width: 767px) {
  .sab-valuation-form {
    column-gap: 0;
  }

  .sab-valuation-form .form-group {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* -------------------------------
   Form step animation
------------------------------- */

.sab-valuation-form.is-ready.is-animating-out {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.sab-valuation-form.is-ready.is-animating-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 260ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Once loading/submitted begins, hide form completely */
.sab-valuation-form.is-loading,
.sab-valuation-form.is-submitted {
  display: none !important;
}

/* Hide Bricks default success message */
.sab-valuation-form .message.success,
.sab-valuation-form .alert.success,
.sab-valuation-form .bricks-form-message.success,
.sab-valuation-form .form-message.success {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* -------------------------------
   Loading state
------------------------------- */

.sab-valuation-loading {
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);

  min-height: 260px;
  width: 100%;

  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;

  will-change: opacity, transform;
}

.sab-valuation-loading.is-visible {
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 260ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sab-valuation-loading::before {
  content: "";
  width: 32px;
  height: 32px;
  border: 2px solid rgba(0,0,0,0.08);
  border-top-color: #630816;
  border-radius: 50%;
  animation: sabValuationSpin 0.9s linear infinite;
  margin-bottom: 14px;
}

.sab-valuation-loading::after {
  content: "Submitting your valuation request…";
  font-size: 14px;
  font-weight: 400;
  color: #676767;
  letter-spacing: 0.3px;
}

@keyframes sabValuationSpin {
  to {
    transform: rotate(360deg);
  }
}
/* -------------------------------
   Success confirmation
------------------------------- */

.success-valuation {
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  will-change: opacity, transform;
}

.success-valuation.is-visible {
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 320ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* -------------------------------
   Tom Select Styling
------------------------------- */

.sab-valuation-form .ts-wrapper {
  width: 100% !important;
  display: block !important;
  box-sizing: border-box !important;
  margin-bottom: 0 !important;
}

.sab-valuation-form .ts-control {
  width: 100% !important;
  min-height: 53px !important;
  height: 53px !important;

  border: none !important;
  background: #F4F4F4 !important;
  padding: 0 16px !important;

  display: flex !important;
  align-items: center !important;

  box-shadow: none !important;
  box-sizing: border-box !important;
  border-radius: 0 !important;
}

.sab-valuation-form .ts-control input,
.sab-valuation-form .ts-control .item,
.sab-valuation-form .ts-control .placeholder {
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #838383 !important;
}

.sab-valuation-form .ts-wrapper.has-items .ts-control .item {
  color: #121212 !important;
}

.sab-valuation-form .ts-wrapper.single .ts-control:after {
  top: 50% !important;
  transform: translateY(-50%) !important;
  right: 16px !important;
  border-color: #838383 transparent transparent !important;
}

.sab-valuation-form .ts-wrapper.focus .ts-control,
.sab-valuation-form .ts-wrapper.dropdown-active .ts-control,
.sab-valuation-form .ts-wrapper:focus-within .ts-control {
  border: none !important;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.16) !important;
}

.sab-valuation-form select,
.sab-valuation-form select:focus,
.sab-valuation-form select:focus-visible,
.sab-valuation-form .ts-wrapper,
.sab-valuation-form .ts-control,
.sab-valuation-form .ts-control input {
  outline: none !important;
}

/* -------------------------------
   Checkbox Styling
------------------------------- */

.sab-valuation-form input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;

  width: 16px;
  height: 16px;
  border: 1px solid #979797;
  background: #fff;
  border-radius: 0;
  cursor: pointer;

  display: inline-grid;
  place-content: center;

  transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.sab-valuation-form input[type="checkbox"]::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: transform 140ms ease;
  background: #a3243a;
}

.sab-valuation-form input[type="checkbox"]:checked {
  border-color: #a3243a;
}

.sab-valuation-form input[type="checkbox"]:checked::before {
  transform: scale(1);
}

/* Mobile */
@media (max-width: 767px) {
  .sab-valuation-form {
    column-gap: 0;
  }

  .sab-valuation-form .form-group {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sab-valuation-form,
  .sab-valuation-loading,
  .success-valuation {
    transition: none !important;
    transform: none !important;
  }

  .sab-valuation-loading::before {
    animation: none !important;
  }
}

/* =====================================
   SAB Valuation Form - Field Styling
===================================== */

.sab-valuation-form input[type="text"],
.sab-valuation-form input[type="email"],
.sab-valuation-form input[type="tel"],
.sab-valuation-form input[type="date"],
.sab-valuation-form select,
.sab-valuation-form textarea {
  width: 100%;
  min-height: 53px;
  border: none;
  border-radius: 0;
  background-color: #F4F4F4;
  padding: 0 16px;
  font-family: "Urbanist", sans-serif;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 400;
  color: #121212;
  outline: none;
  box-shadow: none;
  box-sizing: border-box;
}

.sab-valuation-form textarea {
  min-height: 118px;
  padding: 14px 16px;
  resize: vertical;
}

.sab-valuation-form input::placeholder,
.sab-valuation-form textarea::placeholder {
  color: #838383;
  opacity: 1;
}

.sab-valuation-form input:focus,
.sab-valuation-form textarea:focus,
.sab-valuation-form select:focus {
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.16);
}

/* Native select fallback */
.sab-valuation-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, #838383 50%),
    linear-gradient(135deg, #838383 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* Date input */
.sab-valuation-form input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 16px;
  color: #121212;
}

.sab-valuation-form input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.55;
}

/* Tom Select */
.sab-valuation-form .ts-wrapper {
  width: 100% !important;
  display: block !important;
  box-sizing: border-box !important;
}

.sab-valuation-form .ts-control {
  width: 100% !important;
  min-height: 53px !important;
  height: 53px !important;
  border: none !important;
  border-radius: 0 !important;
  background: #F4F4F4 !important;
  padding: 0 16px !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

.sab-valuation-form .ts-control input,
.sab-valuation-form .ts-control .item,
.sab-valuation-form .ts-control .placeholder {
  font-family: "Urbanist", sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #838383 !important;
}

.sab-valuation-form .ts-wrapper.has-items .ts-control .item {
  color: #121212 !important;
}

.sab-valuation-form .ts-wrapper.single .ts-control:after {
  top: 50% !important;
  right: 16px !important;
  transform: translateY(-50%) !important;
  border-color: #838383 transparent transparent transparent !important;
}

.sab-valuation-form .ts-wrapper.focus .ts-control,
.sab-valuation-form .ts-wrapper.dropdown-active .ts-control,
.sab-valuation-form .ts-wrapper:focus-within .ts-control {
  border: none !important;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.16) !important;
}

.sab-valuation-form .ts-dropdown {
  border: 1px solid rgba(0,0,0,0.16) !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: 0 10px 28px rgba(0,0,0,0.1) !important;
  margin-top: 6px !important;
  z-index: 999999 !important;
}

.sab-valuation-form .ts-dropdown .option {
  padding: 11px 16px !important;
  font-family: "Urbanist", sans-serif !important;
  font-size: 16px !important;
  color: #676767 !important;
}

.sab-valuation-form .ts-dropdown .option:hover,
.sab-valuation-form .ts-dropdown .active {
  background: #F4F4F4 !important;
  color: #121212 !important;
}

/* Remove Bricks required asterisk from Tom Select wrapper */
.sab-valuation-form .ts-wrapper.required::after {
  content: none !important;
  display: none !important;
}

.sab-valuation-form,
.sab-valuation-form * {
  scroll-margin-top: 0 !important;
}

.sab-valuation-form input,
.sab-valuation-form select,
.sab-valuation-form textarea {
  scroll-margin-top: 120px;
}