@import url('https://fonts.googleapis.com/css2?family=Playfair:ital,opsz,wght@0,5..1200,300..900;1,5..1200,300..900&display=swap');

.taxonomy-banner {
  position: relative;
  height: 100vh;
   /* background-image: url('<?php echo esc_url($banner_url); ?>'); dynamic PHP URL */
  background-attachment: fixed; /* parallax effect */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

.taxonomy-banner .overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(43, 43, 43, 0.5); /* dark overlay */
  z-index: 1;
}

.segment-page-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2; /* above overlay */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
  border-radius: 14px;
}

.segment-page-logo img {
  width: 320px;
  max-width: 90%;
  margin-bottom: 20px;
}

.segment-quote {
  font-size: clamp(32px, 5vw, 60px);
  font-family: "Playfair", serif;
  color: #ffffff;
}

.property-segment-wrapper {
  padding: 40px 20px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.property-segment-wrapper h1 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 36px;
}

.property-filter {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: .75rem;
  margin: 2rem auto;
}

.filter-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #6b7280;
}

.filter-select {
  position: relative;
}

.filter-select select {
  appearance: none;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  font-size: .85rem;
  padding: .6rem 2.4rem .6rem 1rem;
  cursor: pointer;
  transition:
    border-color .25s ease,
    box-shadow .25s ease,
    background-color .25s ease;
}

/* Hover */
.filter-select select:hover {
  border-color: #000f73;
  background-color: #f8f9ff;
}

/* Focus (open state) */
.filter-select select:focus {
  outline: none;
  border-color: #000f73;
  box-shadow: 0 0 0 3px rgba(0, 15, 115, 0.15);
}

.filter-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  pointer-events: none;
  color: #000f73;
  transition: transform .5s ease;
}

/* Rotate arrow when select is focused */
.filter-select:hover .filter-icon {
  transform: translateY(-50%) rotate(180deg);
}

.property-list {
  display: grid;
  grid-template-columns: repeat(3, 390px); /* Fixed width columns */
  gap: 30px;
  align-items: center;
  place-items: center;
  margin: 30px;
}

.segment-detail {
  width: 100%;
  max-width: 1325px;
  height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  color: #000f73;
  padding: 20px;
}

/* Tablet - max 1023px */
@media (max-width: 1023px) {
  .property-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .segment-page-logo img {
    width: 280px;
  }

  .segment-page-logo h1 {
    font-size: 48px;
  }

  .segment-detail {
    height: auto;
  }
}

/* Desktop hover arrow rotation */
@media (min-width: 769px) {
  .filter-select:hover .filter-icon {
    transform: translateY(-50%) rotate(180deg);
  }
}

/* Focus arrow rotation (works on mobile) */
.filter-select select:focus + .filter-icon {
  transform: translateY(-50%) rotate(180deg);
}


/* Mobile - max 767px */
@media (max-width: 768px) {
  .taxonomy-banner {
    height: 280px; /* smaller hero */
    background-image: var(--hero-mobile);
    background-size: cover; /* better crop on mobile */
    background-position: center;
    background-attachment: scroll; /* disable parallax (iOS fix) */
  }

  .property-filter {
    flex-direction: column  ;
    justify-content: space-between;
    width: 100%;
    margin: 1.25rem auto;
    gap: .5rem;
  }

  .filter-label {
    font-size: .75rem;
  }

  .filter-select {
    flex: 1;
  }

  .filter-select select {
    width: 100%;
    font-size: .9rem;
    padding: .75rem 2.6rem .75rem 1.1rem;
    border-radius: 999px;
  }

  .property-list {
    grid-template-columns: 1fr;
    margin: 0;
    padding: 10px;
  }

  .segment-page-logo img {
    width: 220px;
  }

  .segment-page-logo h1 {
    font-size: 36px;
  }

  .segment-detail {
    padding: 15px;
    text-align: center;
  }

  .property-segment-wrapper h1 {
    font-size: 28px;
  }
}
