/*
 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;
  aspect-ratio: 16 / 10;
  background: rgba(0,0,0,.04);
  overflow: visible;          /* allow badge to hang out */
}

.ph-card__media img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

/* Badge bottom-left like your reference */
.ph-card__badge{
  position: absolute;
  left: 20px;
  bottom: 0px;
  transform: translateY(50%);
  background: #A6263B;
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1;
  font-weight: 400;
}

/* 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;
  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;
  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);
}

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

/* Generic reveal sections (other sections only) */
.reveal-section {
  opacity: 0;
  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);
}

@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;
}