/**
 * ============================================================================
 * MaxX Capitals — Unified Taxonomy Stylesheet (taxonomy.css)
 * ============================================================================
 * Single, comprehensive stylesheet powering ALL property taxonomy archives:
 *   - property_area
 *   - property_developer
 *   - property_type
 *   - property_status
 *   - property_feature
 *   - property_city
 *   - property_country
 *   - property_state
 *   - property (archive-property.php)
 *
 * Fully consolidates and supersedes:
 *   - style-property-area.css (100% migrated)
 *   - taxonomy-hero.php inline styles (migrated)
 *   - taxonomy-description & pa-overview-body property-matching styling
 *   - developer read-more button & component isolation
 *
 * Version: 3.1.0
 * Author: MaxX Capitals
 * ============================================================================
 */

/* ==========================================================================
   §0  CSS Variables & Tokens
   ========================================================================== */
:root {
  --tax-primary: #0b6230;
  --tax-primary-hover: #094d26;
  --tax-primary-dark: #063d1e;
  --tax-primary-rgb: 11, 98, 48;
  --tax-secondary: #28a745;
  --tax-accent-light: rgba(11, 98, 48, 0.06);
  --tax-heading: #222222;
  --tax-text: #4a5568;
  --tax-muted: #64748b;
  --tax-border: #dce0e0;
  --tax-border-light: #e2e8f0;
  --tax-bg: #ffffff;
  --tax-bg-soft: #f8fafc;
  --tax-radius: 8px;
  --tax-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  --tax-gold: #c9a84c;
  --tax-gold-hover: #b8953c;
}

/* --- Scroll-reveal animation (Composited opacity only — zero vertical shift for 0.00 CLS) --- */
@keyframes paFadeInUp {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.pa-animate    { animation: paFadeInUp 0.40s ease both; }
.pa-animate-d1 { animation-delay: 0.08s; }
.pa-animate-d2 { animation-delay: 0.16s; }
.pa-animate-d3 { animation-delay: 0.24s; }


/* ==========================================================================
   §1  Taxonomy Hero Banner (.maxx-taxonomy-hero)
   ========================================================================== */
.maxx-taxonomy-hero {
  position: relative;
  min-height: 360px;
  background-color: #0d4620;
  padding: 60px 24px;
  border: 5px solid var(--tax-primary, #0b6230);
  border-radius: var(--tax-radius, 8px);
  max-width: 1270px;
  margin: 20px auto 0;
  box-sizing: border-box;
}

.maxx-taxonomy-hero__container {
  display: flex;
  align-items: center;
  max-width: 1270px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.maxx-taxonomy-hero__content {
  flex: 1;
  padding-right: 40px;
  color: #ffffff;
  box-sizing: border-box;
}

.maxx-taxonomy-hero__image-col {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.maxx-taxonomy-hero__image {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  display: block;
  margin: 0;
}

.maxx-taxonomy-hero__image--logo {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.maxx-taxonomy-hero__location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 14px;
}

.maxx-taxonomy-hero__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #f0a500;
  display: inline-block;
  vertical-align: middle;
}

/* Amenities Icons Size & Aspect Ratio Lock (eliminates unsized image warnings & layout shifts) */
.item-amenities img,
.item-amenities .img-fluid {
  width: 18px !important;
  height: 18px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  display: inline-block !important;
  vertical-align: middle;
}

/* Breadcrumb inside Hero */
.maxx-taxonomy-hero .breadcrumb {
  background: transparent;
  margin: 0 0 20px;
  padding: 0;
}

.maxx-taxonomy-hero .breadcrumb-item {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.maxx-taxonomy-hero .breadcrumb-item a {
  color: #ffffff;
  text-decoration: none;
}

.maxx-taxonomy-hero .breadcrumb-item a:hover {
  color: #f0a500;
  text-decoration: underline;
}

.maxx-taxonomy-hero .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.4);
}

/* Hide duplicate breadcrumb / page title in loop when hero exists */
.listing-wrap .page-title-wrap .breadcrumb,
.listing-wrap .page-title-wrap .page-title {
  display: none;
}

.maxx-taxonomy-hero__title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.18;
  color: #ffffff;
  margin: 0 0 14px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  text-align: left;
}

.maxx-taxonomy-hero__tagline {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
  margin: 0 0 24px;
  text-align: left;
}

.maxx-taxonomy-hero__meta-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.maxx-taxonomy-hero__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.30);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.maxx-taxonomy-hero__badge--partner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(240, 165, 0, 0.18);
  border-color: rgba(240, 165, 0, 0.55);
  color: #ffd97a;
}

.maxx-taxonomy-hero__badge--partner svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.maxx-taxonomy-hero__whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  background: var(--tax-primary, #0b6230);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: 0.03em;
  border: 2px solid transparent;
}

.maxx-taxonomy-hero__whatsapp-link:hover,
.maxx-taxonomy-hero__whatsapp-link:focus-visible {
  background: #ffffff;
  color: var(--tax-primary, #0b6230);
  text-decoration: none;
  transform: translateY(-2px);
  border-color: var(--tax-primary, #0b6230);
  box-shadow: 0 4px 12px rgba(11, 98, 48, 0.3);
}

.maxx-taxonomy-hero__whatsapp-link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}


/* ==========================================================================
   §2  Taxonomy Description & Area Information Styling
       Matches Single Property Description Design Language
   ========================================================================== */
.taxonomy-description,
.pa-overview-body {
  font-size: 18px;
  line-height: 32px;
  color: var(--tax-text, #4a5568);
  box-sizing: border-box;
}

.taxonomy-description {
  margin-bottom: 2.25rem;
  position: relative;
}

.taxonomy-description [id],
.pa-overview-body [id] {
  scroll-margin-top: 140px;
}

/* --- Headings --- */
.taxonomy-description h2,
.pa-overview-body h2 {
  font-size: 24px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--tax-heading, #222222);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--tax-primary, #0b6230);
  position: relative;
}

.taxonomy-description h3,
.pa-overview-body h3 {
  font-size: 20px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--tax-heading, #222222);
  margin: 1.75rem 0 0.75rem;
  position: relative;
}

.taxonomy-description h4,
.pa-overview-body h4 {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--tax-heading, #222222);
  margin: 1.5rem 0 0.5rem;
  position: relative;
}

.taxonomy-description > h2:first-child,
.taxonomy-description > h3:first-child,
.taxonomy-description > h4:first-child,
.pa-overview-body > h2:first-child,
.pa-overview-body > h3:first-child,
.pa-overview-body > h4:first-child {
  margin-top: 0;
}

/* --- Bullet Lists (Custom Round Green Dots) --- */
.taxonomy-description ul,
.pa-overview-body ul {
  margin: 1rem 0 1.5rem;
  padding-left: 1.5rem;
  line-height: 1.8;
  list-style: none;
  list-style-position: outside;
}

.taxonomy-description ul li,
.pa-overview-body ul li {
  position: relative;
  padding-left: 0.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.taxonomy-description ul li::before,
.pa-overview-body ul li::before {
  content: "";
  position: absolute;
  left: -1.25rem;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--tax-primary, #0b6230);
  border-radius: 50%;
}

/* --- Numbered Lists (Custom 22px Green Badges) --- */
.taxonomy-description ol,
.pa-overview-body ol {
  list-style: none;
  counter-reset: tax-list;
  margin: 1rem 0 1.5rem;
  padding-left: 1.5rem;
  line-height: 1.8;
}

.taxonomy-description ol li,
.pa-overview-body ol li {
  counter-increment: tax-list;
  position: relative;
  padding-left: 0.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.taxonomy-description ol li::before,
.pa-overview-body ol li::before {
  content: counter(tax-list);
  position: absolute;
  left: -1.75rem;
  top: 0;
  width: 22px;
  height: 22px;
  background: var(--tax-primary, #0b6230);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  border-radius: 50%;
}

.taxonomy-description ul ul,
.taxonomy-description ol ol,
.taxonomy-description ul ol,
.taxonomy-description ol ul,
.pa-overview-body ul ul,
.pa-overview-body ol ol,
.pa-overview-body ul ol,
.pa-overview-body ol ul {
  margin: 0.25rem 0 0.5rem;
  font-size: 0.95em;
}

/* --- Paragraphs & Typography --- */
.taxonomy-description p,
.pa-overview-body p {
  margin: 0 0 1.25rem;
  line-height: 1.8;
}

.taxonomy-description p:last-child,
.pa-overview-body p:last-child {
  margin-bottom: 0;
}

.taxonomy-description strong,
.pa-overview-body strong {
  font-weight: 700;
  color: var(--tax-heading, #222222);
}

/* --- Links (Replaces Bootstrap Bright Blue with Brand Forest Green) --- */
.taxonomy-description a,
.pa-overview-body a {
  color: var(--tax-primary, #0b6230);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.taxonomy-description a:hover,
.pa-overview-body a:hover {
  color: var(--tax-heading, #222222);
}

/* --- Blockquotes & Info Boxes --- */
.taxonomy-description blockquote,
.taxonomy-description .info-box,
.pa-overview-body blockquote,
.pa-overview-body .info-box {
  margin: 1.5rem 0;
  padding: 20px 24px;
  background: var(--tax-accent-light, rgba(11, 98, 48, 0.06));
  border-left: 4px solid var(--tax-primary, #0b6230);
  border-right: 1px solid var(--tax-border, #dce0e0);
  border-radius: 0 var(--tax-radius, 8px) var(--tax-radius, 8px) 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--tax-heading, #222222);
}

.taxonomy-description blockquote,
.pa-overview-body blockquote {
  font-style: italic;
}

.taxonomy-description blockquote p:last-child,
.pa-overview-body blockquote p:last-child {
  margin-bottom: 0;
}

.taxonomy-description blockquote cite,
.pa-overview-body blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 14px;
  font-style: normal;
  color: var(--tax-muted, #64748b);
}

.taxonomy-description blockquote cite::before,
.pa-overview-body blockquote cite::before {
  content: "— ";
}

/* --- Tables & Gutenberg wp-block-table --- */
.taxonomy-description .wp-block-table,
.taxonomy-description figure.wp-block-table,
.pa-overview-body .wp-block-table,
.pa-overview-body figure.wp-block-table {
  margin: 1.75rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--tax-radius, 8px);
  box-shadow: var(--tax-shadow, 0 2px 12px rgba(0, 0, 0, 0.04));
  border: 1px solid var(--tax-border, #dce0e0);
  background: #ffffff;
}

.taxonomy-description table,
.pa-overview-body table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  margin: 1.5rem 0;
  font-size: 15px;
  line-height: 1.6;
  background: #ffffff;
  border-radius: var(--tax-radius, 8px);
  overflow: hidden;
  border: 1px solid var(--tax-border, #dce0e0);
  box-shadow: var(--tax-shadow, 0 2px 12px rgba(0, 0, 0, 0.04));
}

.taxonomy-description table thead,
.pa-overview-body table thead {
  background: var(--tax-primary, #0b6230);
  color: #ffffff;
}

.taxonomy-description th,
.taxonomy-description table th,
.taxonomy-description table thead th,
.pa-overview-body th,
.pa-overview-body table th,
.pa-overview-body table thead th {
  background: linear-gradient(90deg, #0b6230, #0e7a3c);
  color: #ffffff !important;
  font-weight: 600;
  text-align: left;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 16px;
  border: none;
}

.taxonomy-description table tbody tr,
.pa-overview-body table tbody tr {
  border-bottom: 1px solid var(--tax-border, #dce0e0);
  transition: background-color 0.15s ease;
}

.taxonomy-description table tbody tr:last-child,
.pa-overview-body table tbody tr:last-child,
.taxonomy-description tr:last-child td,
.pa-overview-body tr:last-child td {
  border-bottom: none;
}

.taxonomy-description table tbody tr:nth-child(even),
.pa-overview-body table tbody tr:nth-child(even),
.taxonomy-description tbody tr:nth-child(even) td,
.pa-overview-body tbody tr:nth-child(even) td {
  background: var(--tax-accent-light, rgba(11, 98, 48, 0.05));
}

.taxonomy-description table tbody tr:hover td,
.pa-overview-body table tbody tr:hover td,
.taxonomy-description tbody tr:hover td,
.pa-overview-body tbody tr:hover td {
  background: #e8f5ee;
}

.taxonomy-description td,
.taxonomy-description table td,
.taxonomy-description table th,
.pa-overview-body td,
.pa-overview-body table td,
.pa-overview-body table th {
  padding: 10px 16px;
  vertical-align: middle;
}

.taxonomy-description table td:first-child,
.pa-overview-body table td:first-child {
  font-weight: 600;
  color: var(--tax-heading, #222222);
}

/* Keep Project Name & Payment Plan columns on a single line */
.taxonomy-description table th:nth-child(1),
.taxonomy-description table td:nth-child(1),
.taxonomy-description table th:nth-child(4),
.taxonomy-description table td:nth-child(4),
.developer-description table th:nth-child(1),
.developer-description table td:nth-child(1),
.developer-description table th:nth-child(4),
.developer-description table td:nth-child(4) {
    white-space: nowrap !important;
}

/* Style the 5th column 'Explore Units' links as clean CTA pills */
.taxonomy-description table td:nth-child(5) a,
.developer-description table td:nth-child(5) a {
    display: inline-block;
    background: #134e2a;
    color: #ffffff !important;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.taxonomy-description table td:nth-child(5) a:hover,
.developer-description table td:nth-child(5) a:hover {
    background: #0d381e;
    color: #ffffff !important;
}

/* --- Inline Code & Horizontal Rules --- */
.taxonomy-description code,
.pa-overview-body code {
  background: var(--tax-accent-light, rgba(11, 98, 48, 0.06));
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
  color: var(--tax-primary, #0b6230);
}

.taxonomy-description hr,
.pa-overview-body hr {
  border: none;
  border-top: 1px solid var(--tax-border, #dce0e0);
  margin: 2rem 0;
}

/* --- Read Full Developer Details Expander Button --- */
.houzez-read-more-link {
  display: inline-block;
  background-color: var(--tax-primary, #0b6230);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  margin-top: 10px;
}

.houzez-read-more-link:hover,
.houzez-read-more-link:focus {
  background-color: var(--tax-primary-hover, #094d26);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(11, 98, 48, 0.25);
}

.houzez-more-content {
  margin-top: 1rem;
}

/* ==========================================================================
   Full-Width 3x3 Bento Grid for Quick Facts
   ========================================================================== */
.taxonomy-description h2 + ul,
.developer-description h2 + ul {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 14px 0 22px 0 !important;
}

.taxonomy-description h2 + ul li,
.developer-description h2 + ul li {
    background: #f6faf7;
    border: 1px solid #dcebe1;
    border-left: 4px solid #134e2a;
    border-radius: 6px;
    padding: 10px 14px !important;
    margin: 0 !important;
    font-size: 13.5px;
    line-height: 1.4;
    position: static;
}

.taxonomy-description h2 + ul li::before,
.developer-description h2 + ul li::before {
    display: none !important;
}

@media (max-width: 991px) {
    .taxonomy-description h2 + ul,
    .developer-description h2 + ul {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 576px) {
    .taxonomy-description h2 + ul,
    .developer-description h2 + ul {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   Developer Project Filter Pills
   ========================================================================== */
.developer-project-filters {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: 10px;
}

.dev-filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f6faf7;
    border: 1px solid #dcebe1;
    color: #134e2a;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
    user-select: none;
    outline: none;
    white-space: nowrap;
}

.dev-filter-pill:hover {
    background: #e8f4ed;
    border-color: #134e2a;
    color: #134e2a;
}

.dev-filter-pill.active {
    background: #134e2a !important;
    border-color: #134e2a !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(19, 78, 42, 0.25);
}

.dev-filter-pill:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(19, 78, 42, 0.25);
}

@media (max-width: 767px) {
    .developer-project-filters {
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
    }
    .dev-filter-pill {
        font-size: 12px;
        padding: 5px 10px;
    }
}



/* ==========================================================================
   §3  Component Isolation & Protection
       Guarantees Key Stats & FAQs Remain Pristine Inside Descriptions
   ========================================================================== */
/* Key Stats Strip Isolation */
.taxonomy-description .maxx-area-keystats,
.pa-overview-body .maxx-area-keystats {
  margin-top: 1.5rem;
}

.taxonomy-description .maxx-area-keystats ul,
.pa-overview-body .maxx-area-keystats ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.taxonomy-description .maxx-area-keystats li,
.pa-overview-body .maxx-area-keystats li {
  padding: 14px 16px !important;
  margin: 0 !important;
}

.taxonomy-description .maxx-area-keystats li::before,
.pa-overview-body .maxx-area-keystats li::before {
  display: none !important;
  content: none !important;
}

.taxonomy-description .maxx-area-keystats a.maxx-area-keystats__pill,
.pa-overview-body .maxx-area-keystats a.maxx-area-keystats__pill {
  text-decoration: none !important;
}

.taxonomy-description .maxx-area-keystats h2.maxx-area-keystats__title,
.pa-overview-body .maxx-area-keystats h2.maxx-area-keystats__title {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin: 0 0 16px !important;
}

/* FAQ Accordion Isolation */
.taxonomy-description .maxx-faqs-wrapper,
.pa-overview-body .maxx-faqs-wrapper {
  margin: 24px 0;
}

.taxonomy-description .maxx-faqs h2,
.taxonomy-description .maxx-faqs h3,
.taxonomy-description .maxx-faqs h4,
.pa-overview-body .maxx-faqs h2,
.pa-overview-body .maxx-faqs h3,
.pa-overview-body .maxx-faqs h4 {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
}

.taxonomy-description .maxx-faq-question,
.pa-overview-body .maxx-faq-question {
  border: none !important;
  text-decoration: none !important;
  margin: 0 !important;
}

.taxonomy-description .maxx-faq-question:hover,
.pa-overview-body .maxx-faq-question:hover {
  text-decoration: none !important;
}


/* ==========================================================================
   §4  KEY STATS STRIP — "Why Buy in {Area}?" (From style-property-area.css)
   ========================================================================== */
.maxx-area-keystats {
  background: #ffffff;
  border: 1px solid var(--tax-border-light, #e2e8f0);
  border-left: 4px solid var(--tax-primary, #0b6230);
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(11, 98, 48, 0.07);
  padding: 22px 26px;
  margin: 4px 0 30px;
}

.maxx-area-keystats__eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--tax-primary, #0b6230);
  margin: 0 0 4px;
}

.maxx-area-keystats__title {
  font-size: 20px;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 16px;
}

.maxx-area-keystats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.maxx-area-keystats__item {
  background: #f4f9f6;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.maxx-area-keystats__value {
  font-size: 17px;
  font-weight: 700;
  color: var(--tax-primary, #0b6230);
  line-height: 1.3;
}

.maxx-area-keystats__label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #475569;
}

.maxx-area-keystats__breakdown {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--tax-border-light, #e2e8f0);
}

.maxx-area-keystats__breakdown-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--tax-muted, #64748b);
}

.maxx-area-keystats__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.maxx-area-keystats__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f4f9f6;
  border: 1px solid #d6ebe0;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: #334155;
  text-decoration: none !important;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.maxx-area-keystats__pill:hover,
.maxx-area-keystats__pill:focus {
  background: #e8f5ee;
  border-color: var(--tax-primary, #0b6230);
  transform: translateY(-1px);
}

.maxx-area-keystats__pill-count {
  font-weight: 700;
  color: var(--tax-primary, #0b6230);
}

.maxx-area-keystats__pill-label {
  font-weight: 500;
}


/* ==========================================================================
   §5  Area Overview Section (.pa-overview) (From style-property-area.css)
   ========================================================================== */
.property-area-overview-map-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
}

.pa-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    #c8e6d4 40%,
    #c8e6d4 60%,
    transparent
  );
  margin: 0 40px;
}

.pa-overview {
  background: var(--tax-bg-soft, #f8fafc);
  padding: 60px 40px;
}

.pa-section-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--tax-primary, #0b6230);
  margin: 0 0 10px;
}

.pa-overview-title {
  font-size: 30px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 14px;
  line-height: 1.3;
}

.pa-microdata {
  font-size: 13.5px;
  color: var(--tax-muted, #64748b);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  line-height: 1.6;
}

.pa-microdata strong {
  color: var(--tax-primary, #0b6230);
  font-weight: 600;
}

.pa-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.pa-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #c8e6d4;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--tax-primary, #0b6230);
  font-weight: 500;
  box-shadow: 0 1px 6px rgba(11, 98, 48, 0.07);
}

.pa-trust-badge::before {
  content: '✔';
  font-size: 11px;
}

.pa-overview-body {
  max-width: 100%;
}

.pa-overview-body p:first-of-type {
  font-size: 18px;
  line-height: 1.8;
  color: #2d3748;
}


/* ==========================================================================
   §6  Nearby Places & Amenities (.pa-amenities) (From style-property-area.css)
   ========================================================================== */
.pa-amenities {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
  padding: 60px 40px;
}

.pa-section-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 40px;
  line-height: 1.3;
}

.pa-amenity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pa-amenity-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8edf3;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pa-amenity-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0b6230, #22c55e);
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

.pa-amenity-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(11, 98, 48, 0.13);
  border-color: #b2ddc7;
}

.pa-amenity-card:hover::after {
  opacity: 1;
}

.pa-amenity-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid #e8f5ee;
}

.pa-amenity-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #e8f5ee, #d1fae5);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(11, 98, 48, 0.08);
}

.pa-amenity-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
  padding: 0;
  border: none;
}

.pa-amenity-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #c8e6d4 transparent;
}

.pa-amenity-card ul::-webkit-scrollbar       { width: 4px; }
.pa-amenity-card ul::-webkit-scrollbar-thumb { background: #c8e6d4; border-radius: 4px; }

.pa-amenity-card ul li {
  font-size: 14.5px;
  line-height: 1.55;
  color: #4a5568;
  padding: 9px 0;
  border-bottom: 1px solid #f0f4f8;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pa-amenity-card ul li:last-child {
  border-bottom: none;
}

.pa-amenity-card ul li::before {
  content: '';
  width: 7px;
  height: 7px;
  min-width: 7px;
  background: var(--tax-primary, #0b6230);
  border-radius: 50%;
  display: inline-block;
  margin-top: 7px;
  flex-shrink: 0;
}

.pa-travel-time {
  font-size: 12px;
  color: var(--tax-muted, #94a3b8);
  white-space: nowrap;
  margin-left: auto;
  padding-left: 6px;
}

.pa-amenity-empty {
  font-size: 13px;
  color: var(--tax-muted, #94a3b8);
  font-style: italic;
  margin: 0;
  padding: 20px;
  background: var(--tax-bg-soft, #f8fafc);
  border-radius: 10px;
  text-align: center;
}


/* ==========================================================================
   §7  Location Map Section (.pa-map-section) (From style-property-area.css)
   ========================================================================== */
.pa-map-section {
  background: #fafbfc;
  padding: 60px 40px;
}

.pa-map-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 32px;
  line-height: 1.3;
}

.pa-map-inner {
  display: block;
}

.pa-map-canvas-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.10);
  min-height: 460px;
}

.pa-map-canvas-wrap .rwmb-map-canvas {
  height: 460px !important;
  border-radius: 0;
  display: block;
}

.pa-map-panel {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
  background: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
}

.pa-map-panel-title {
  width: 100%;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 4px;
  padding: 0;
  border: none;
}

.pa-map-highlight {
  flex: 1 1 0;
  min-width: 200px;
  background: #ffffff;
  border: 1px solid #e8edf3;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.pa-map-highlight:hover {
  background: #f0f9f4;
  box-shadow: 0 4px 16px rgba(11, 98, 48, 0.1);
}

.pa-hl-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.pa-hl-icon.shopping   { background: #fef9c3; }
.pa-hl-icon.education  { background: #dbeafe; }
.pa-hl-icon.healthcare { background: #fee2e2; }

.pa-hl-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 3px;
}

.pa-hl-text span {
  font-size: 12.5px;
  color: var(--tax-muted, #64748b);
  line-height: 1.4;
}


/* ==========================================================================
   §8  Responsive Overrides
   ========================================================================== */
@media (max-width: 992px) {
  .pa-amenity-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .pa-map-highlight {
    flex: 1 1 calc(50% - 7px);
  }
}

@media (max-width: 768px) {
  .maxx-taxonomy-hero {
    min-height: 280px;
    padding: 40px 16px;
    margin: 10px auto 0;
  }

  .maxx-taxonomy-hero__container {
    flex-direction: column;
    padding: 0;
  }

  .maxx-taxonomy-hero__content {
    padding-right: 0;
    text-align: center;
    margin-bottom: 24px;
  }

  .maxx-taxonomy-hero__title,
  .maxx-taxonomy-hero__tagline {
    text-align: center;
  }

  .maxx-taxonomy-hero__meta-row {
    justify-content: center;
  }

  .maxx-taxonomy-hero__image {
    max-width: 85%;
  }

  .maxx-taxonomy-hero__image--logo {
    max-width: 220px;
    margin: 0 auto;
  }

  .taxonomy-description,
  .pa-overview-body {
    font-size: 16px;
    line-height: 28px;
  }

  .taxonomy-description h2,
  .pa-overview-body h2 {
    font-size: 20px;
    padding-bottom: 0.5rem;
    margin: 2rem 0 1rem;
  }

  .taxonomy-description h3,
  .pa-overview-body h3 {
    font-size: 18px;
    margin: 1.5rem 0 0.75rem;
  }

  .taxonomy-description h4,
  .pa-overview-body h4 {
    font-size: 16px;
  }

  /* Responsive Tables */
  .taxonomy-description table,
  .pa-overview-body table {
    display: table !important;
    width: 100% !important;
    min-width: 100%;
    font-size: 13.5px;
    line-height: 1.5;
  }

  .taxonomy-description table thead th,
  .pa-overview-body table thead th {
    padding: 10px 12px;
    font-size: 12px;
  }

  .taxonomy-description table td,
  .pa-overview-body table td {
    padding: 9px 12px;
  }

  /* Responsive Sections */
  .pa-overview,
  .pa-amenities,
  .pa-map-section {
    padding: 40px 20px;
  }

  .pa-divider {
    margin: 0 20px;
  }

  .pa-overview-title,
  .pa-section-title,
  .pa-map-title {
    font-size: 22px;
  }

  .pa-amenity-grid {
    grid-template-columns: 1fr;
  }

  .pa-overview-body p:first-of-type {
    font-size: 16px;
  }

  .pa-map-canvas-wrap {
    min-height: 320px;
  }

  .pa-map-canvas-wrap .rwmb-map-canvas {
    height: 320px !important;
  }

  .pa-map-highlight {
    flex: 1 1 100%;
  }
}

@media (max-width: 600px) {
  .maxx-area-keystats {
    padding: 18px 16px;
  }

  .maxx-area-keystats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .maxx-taxonomy-hero {
    min-height: 240px;
  }

  .maxx-taxonomy-hero__image {
    max-width: 100%;
  }

  .maxx-taxonomy-hero__image--logo {
    max-width: 180px;
    margin: 0 auto;
  }

  .houzez-read-more-link {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}

/* ==========================================================================
   §11  Listing Card Aspect Ratio & CLS Prevention
   ========================================================================== */
/* Lock 16:9 aspect ratio on exact anchor and thumbnail wrappers */
.listing-view .item-listing-wrap .listing-image-wrap,
.listing-view .item-listing-wrap .listing-thumb,
.listing-view .item-listing-wrap a.listing-featured-thumb,
.listing-view .item-listing-wrap a.hover-effect {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
  background-color: #f1f5f9;
  position: relative;
}

/* Ensure post images reserve intrinsic 16:9 box from HTML width/height */
.listing-view .item-listing-wrap img.wp-post-image,
.listing-view .item-listing-wrap .listing-thumb img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
}

/* Prevent webfont/header swap from shifting the page (0.00 CLS) */
.header-mobile,
#header-mobile,
.header-mobile-center {
  min-height: 60px;
  height: 60px;
}
