/*
Theme Name: CJ Rentals
Theme URI: https://cjrentals.co.nz
Author: CobWeb Studios
Author URI: https://cobwebstudios.co.nz
Description: Custom WordPress theme for CJ Rentals — Ōpōtiki property management, caravan hire, shed storage & renovations. Converted from Emergent React build.
Version: 2.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
License: Proprietary
Text Domain: cjrentals
*/

/* =====================================================================
   FONTS
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Manrope:wght@300;400;500;600;700&display=swap');

/* =====================================================================
   CSS CUSTOM PROPERTIES
   ===================================================================== */
:root {
    --ink:        #2D2926;
    --ink-light:  #69645E;
    --ink-muted:  #a8a39c;
    --cream:      #F4EDDF;
    --cream-mid:  #F6F1E9;
    --cream-pale: #FDFBF7;
    --border:     #E5DFD3;
    --gold:       #f0b161;
    --gold-dark:  #d9994c;
    --green:      #3A4B40;
    --radius-sm:  0.75rem;
    --radius-md:  1rem;
    --radius-lg:  1.5rem;
    --max-w:      80rem;    /* 1280px = 7xl */
    --px:         clamp(1rem, 4vw, 3rem);
    --shadow-gold: 0 6px 18px -6px rgba(240,177,97,0.4);
    --shadow-card: 0 4px 24px -8px rgba(45,41,38,0.12);
    --shadow-card-hover: 0 12px 40px -10px rgba(240,177,97,0.2);
}

/* =====================================================================
   RESET & BASE
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    background-color: var(--cream);
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.6;
}

::selection { background-color: var(--gold); color: var(--ink); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--cream-mid); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* =====================================================================
   TYPOGRAPHY
   ===================================================================== */
.font-serif,
h1, h2, h3 {
    font-family: 'Fraunces', 'Georgia', serif;
    font-optical-sizing: auto;
    letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.05; font-weight: 500; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem);   line-height: 1.1;  font-weight: 500; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); line-height: 1.2; font-weight: 500; }

p { line-height: 1.7; color: var(--ink-light); }

.eyebrow {
    font-family: 'Manrope', sans-serif;
    font-size: 0.6875rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--gold);
    display: block;
    margin-bottom: 0.75rem;
}

/* =====================================================================
   LAYOUT UTILITIES
   ===================================================================== */
.container {
    max-width: var(--max-w);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--px);
    padding-right: var(--px);
}

.section { padding-top: 5rem; padding-bottom: 5rem; }
.section-lg { padding-top: 7rem; padding-bottom: 7rem; }

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-sm);
    padding: 0.875rem 1.75rem;
    cursor: pointer;
    border: none;
    transition: background 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s;
    line-height: 1;
    text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }

.btn-gold {
    background: var(--gold);
    color: var(--ink);
    box-shadow: var(--shadow-gold);
}
.btn-gold:hover { background: var(--gold-dark); color: var(--ink); }

.btn-dark {
    background: var(--ink);
    color: #fff;
}
.btn-dark:hover { background: var(--gold); color: var(--ink); }

.btn-outline {
    background: transparent;
    color: rgba(255,255,255,0.9);
    border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-sm {
    font-size: 0.8125rem;
    padding: 0.6rem 1.25rem;
}

/* Arrow icon for buttons */
.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }

/* =====================================================================
   NAVBAR
   ===================================================================== */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    background: var(--cream-pale);
    transition: box-shadow 0.3s;
    box-sizing: border-box;
}
#site-header.scrolled {
    box-shadow: 0 4px 20px -12px rgba(45,41,38,0.2);
}
#site-header::after {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.7;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
    width: 100%;
    max-width: var(--max-w);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--px);
    padding-right: var(--px);
    box-sizing: border-box;
}

/* ── WordPress admin bar offset ─────────────────────────────────────── */
/* Shift the fixed header DOWN so it sits below the admin bar */
.admin-bar #site-header {
    top: 32px !important;
}
/* Also push page content down so it's not hidden under both bars */
.admin-bar body {
    padding-top: 32px;
}
@media screen and (max-width: 782px) {
    .admin-bar #site-header {
        top: 46px !important;
    }
    .admin-bar body {
        padding-top: 46px;
    }
}

.nav-logo img { height: 3.5rem; width: auto; object-fit: contain; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}
.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--ink);
    transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--gold); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.nav-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
    transition: color 0.15s;
}
.nav-phone svg { width: 1rem; height: 1rem; color: var(--gold); }
.nav-phone:hover { color: var(--gold); }

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem; height: 2.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    color: var(--ink);
}
.nav-toggle svg { width: 1.25rem; height: 1.25rem; }

.mobile-menu {
    display: none;
    border-top: 1px solid var(--border);
    background: var(--cream-pale);
    padding: 1.5rem var(--px);
    flex-direction: column;
    gap: 1rem;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
    padding: 0.25rem 0;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu .btn { text-align: center; justify-content: center; }

@media (max-width: 1023px) {
    .nav-links, .nav-actions { display: none; }
    .nav-toggle { display: flex; }
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
    position: relative;
    min-height: 68vh;
    display: flex;
    align-items: center;
}
.hero-bg {
    position: absolute;
    inset: 0;
}
.hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(26,26,26,0.75) 0%, rgba(26,26,26,0.35) 50%, transparent 100%);
}
.hero-bg-fade {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 6rem;
    background: linear-gradient(to top, rgba(45,41,38,0.55), transparent);
}
.hero-content {
    position: relative;
    z-index: 1;
    padding: 7rem 0;
    max-width: 40rem;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 1.25rem;
}
.hero-badge-dot {
    width: 0.375rem; height: 0.375rem;
    border-radius: 50%;
    background: var(--gold);
}
.hero h1 { color: #fff; }
.hero h1 em { display: block; color: var(--gold); font-style: italic; }
.hero-sub {
    color: rgba(255,255,255,0.85);
    font-size: 1.0625rem;
    max-width: 36rem;
    margin-top: 1.25rem;
    margin-bottom: 2rem;
}
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hero-text-link {
    font-weight: 600;
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(255,255,255,0.4);
    padding-bottom: 0.25rem;
    transition: color 0.15s, border-color 0.15s;
}
.hero-text-link:hover { color: var(--gold); border-color: var(--gold); }

/* Search bar */
.hero-search {
    position: absolute;
    left: var(--px);
    right: var(--px);
    bottom: -2.25rem;
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
    background: rgba(253,251,247,0.97);
    backdrop-filter: blur(12px);
    border: 1px solid #fff;
    box-shadow: 0 20px 50px -20px rgba(0,0,0,0.2);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 0.5rem;
    align-items: center;
}
.search-field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-right: 1px solid var(--border);
}
.search-field:last-of-type { border-right: none; }
.search-field svg { width: 1.25rem; height: 1.25rem; color: var(--gold); flex-shrink: 0; }
.search-field label {
    display: block;
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--ink-light);
    margin-bottom: 0.125rem;
}
.search-field input,
.search-field select {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Manrope', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
}
.search-field input::placeholder { color: rgba(105,100,94,0.6); }
.hero-search .btn { white-space: nowrap; }

@media (max-width: 767px) {
    .hero-search {
        grid-template-columns: 1fr;
        bottom: -10rem;
    }
    .search-field { border-right: none; border-bottom: 1px solid var(--border); }
    .search-field:last-of-type { border-bottom: none; }
}

/* =====================================================================
   TRUST STRIP
   ===================================================================== */
.trust-strip {
    padding-top: 6rem;
    padding-bottom: 2rem;
}
@media (max-width: 767px) { .trust-strip { padding-top: 14rem; } }

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
}
.trust-stat .kpi {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 500;
    color: var(--ink);
    line-height: 1;
}
.trust-stat .label {
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ink-light);
    margin-top: 0.375rem;
}
@media (max-width: 639px) {
    .trust-grid { grid-template-columns: 1fr 1fr; }
}

/* =====================================================================
   LISTING CARDS
   ===================================================================== */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
@media (max-width: 1023px) { .listings-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px)  { .listings-grid { grid-template-columns: 1fr; } }

.listing-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    text-decoration: none;
    color: inherit;
}
.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(240,177,97,0.6);
}

.card-img-wrap {
    position: relative;
    height: 16rem;
    overflow: hidden;
    background: var(--cream-mid);
}
.card-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
}
.listing-card:hover .card-img-wrap img { transform: scale(1.05); }

.card-badges {
    position: absolute;
    top: 1rem; left: 1rem;
    display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.badge {
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
}
.badge-white { background: rgba(255,255,255,0.95); color: var(--ink); }
.badge-gold  { background: var(--gold); color: var(--ink); }
.badge-green { background: var(--green); color: #fff; }
.badge-dark  { background: var(--ink); color: #fff; }

.card-arrow {
    position: absolute;
    bottom: 1rem; right: 1rem;
    width: 2.5rem; height: 2.5rem;
    border-radius: 50%;
    background: var(--gold);
    color: var(--ink);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transform: translateY(0.5rem);
    transition: opacity 0.3s, transform 0.3s;
}
.card-arrow svg { width: 1.25rem; height: 1.25rem; }
.listing-card:hover .card-arrow { opacity: 1; transform: translateY(0); }

.card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; flex: 1; }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}
.card-category {
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ink-light);
    margin-bottom: 0.25rem;
}
.card-title {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    line-height: 1.2;
    color: var(--ink);
    font-weight: 500;
    letter-spacing: -0.01em;
}
.card-price {
    text-align: right;
    flex-shrink: 0;
}
.card-price .amount {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1;
}
.card-price .unit {
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-light);
    margin-top: 0.25rem;
}
.card-location {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--ink-light);
}
.card-location svg { width: 0.875rem; height: 0.875rem; color: var(--gold); flex-shrink: 0; }

.card-stats {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.25rem;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ink);
}
.stat-item svg { width: 1rem; height: 1rem; color: var(--gold); flex-shrink: 0; }

/* =====================================================================
   SERVICES GRID
   ===================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
@media (max-width: 1023px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px)  { .services-grid { grid-template-columns: 1fr; } }

.service-tile {
    display: block;
    background: var(--cream-pale);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.service-tile:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -10px rgba(240,177,97,0.15);
}
.service-icon {
    width: 3rem; height: 3rem;
    border-radius: 0.75rem;
    background: var(--cream-mid);
    color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
    transition: background 0.2s, color 0.2s;
}
.service-icon svg { width: 1.5rem; height: 1.5rem; }
.service-tile:hover .service-icon { background: var(--gold); color: var(--ink); }
.service-tile h3 { font-size: 1.5rem; color: var(--ink); margin-bottom: 0.5rem; }
.service-tile p { font-size: 0.875rem; line-height: 1.6; margin-bottom: 1rem; }
.service-more {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.service-more svg { width: 0.75rem; height: 0.75rem; }

/* =====================================================================
   WHY CJ — 2-col + card grid
   ===================================================================== */
.why-section {
    background: var(--cream-mid);
    position: relative;
    overflow: hidden;
}
.why-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 3rem;
    align-items: center;
}
@media (max-width: 1023px) { .why-grid { grid-template-columns: 1fr; } }

.why-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
@media (max-width: 639px) { .why-cards { grid-template-columns: 1fr; } }

.why-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    transition: transform 0.2s;
}
.why-card:hover { transform: translateY(-4px); }
.why-card.highlight {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}
.why-card .card-icon {
    width: 2.75rem; height: 2.75rem;
    border-radius: 0.75rem;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
    background: var(--cream-mid);
    color: var(--gold);
}
.why-card.highlight .card-icon { background: var(--gold); color: var(--ink); }
.why-card .card-icon svg { width: 1.5rem; height: 1.5rem; }
.why-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: inherit; }
.why-card p { font-size: 0.875rem; line-height: 1.6; }
.why-card.highlight p { color: rgba(255,255,255,0.75); }

/* =====================================================================
   TESTIMONIAL
   ===================================================================== */
.testimonial-section { text-align: center; }
.testimonial-quote-icon {
    width: 3rem; height: 3rem;
    color: var(--gold);
    margin: 0 auto 2rem;
}
.testimonial-text {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.5rem, 4vw, 3rem);
    line-height: 1.3;
    color: var(--ink);
    font-style: italic;
    font-weight: 400;
    max-width: 60rem;
    margin: 0 auto;
}
.testimonial-stars {
    color: var(--gold);
    font-size: 1.25rem;
    letter-spacing: 0.15rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.testimonial-author { font-size: 0.875rem; font-weight: 500; color: var(--ink-light); }

/* =====================================================================
   CTA BANNER
   ===================================================================== */
.cta-banner {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: clamp(2.5rem, 6vw, 5rem);
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 2.5rem;
    align-items: center;
}
@media (max-width: 1023px) {
    .cta-banner { grid-template-columns: 1fr; }
    .cta-actions { flex-direction: row !important; }
}
.cta-glow {
    position: absolute;
    top: -5rem; right: -5rem;
    width: 24rem; height: 24rem;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.25;
    filter: blur(80px);
    pointer-events: none;
}
.cta-banner h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.25rem); }
.cta-banner p { color: rgba(255,255,255,0.8); max-width: 36rem; margin-top: 1.25rem; }
.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}
@media (min-width: 1024px) { .cta-actions { align-items: flex-end; } }

/* =====================================================================
   ABOUT PAGE
   ===================================================================== */
.page-hero-header {
    padding-top: 9rem;
    padding-bottom: 4rem;
}
.page-hero-header .grid-12-5-7 {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 3rem;
    align-items: flex-end;
}
@media (max-width: 1023px) {
    .page-hero-header .grid-12-5-7 { grid-template-columns: 1fr; }
}
.hero-full-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/7;
    background: var(--cream-mid);
    margin-bottom: 5rem;
}
.hero-full-img img { width: 100%; height: 100%; object-fit: cover; }

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 5rem;
}
@media (max-width: 767px) { .values-grid { grid-template-columns: 1fr; } }
.value-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
}
.value-icon {
    width: 2.75rem; height: 2.75rem;
    border-radius: 0.75rem;
    background: var(--cream-mid);
    color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
}
.value-icon svg { width: 1.5rem; height: 1.5rem; }
.value-card h3 { margin-bottom: 0.5rem; }
.value-card p { font-size: 0.9375rem; }

/* Team grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
@media (max-width: 1023px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px)  { .team-grid { grid-template-columns: 1fr; } }
.team-card { text-align: center; }
.team-photo {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--cream-mid);
    margin-bottom: 1rem;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-family: 'Fraunces', serif; font-size: 1.25rem; color: var(--ink); font-weight: 500; margin-bottom: 0.25rem; }
.team-role { font-size: 0.8125rem; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.team-bio { font-size: 0.875rem; line-height: 1.6; }

/* =====================================================================
   CONTACT PAGE
   ===================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 2.5rem;
}
@media (max-width: 1023px) { .contact-grid { grid-template-columns: 1fr; } }

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s;
}
.info-card:hover { border-color: var(--gold); }
.info-icon {
    width: 2.5rem; height: 2.5rem;
    border-radius: 0.625rem;
    background: var(--cream-mid);
    color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.info-icon svg { width: 1.125rem; height: 1.125rem; }
.info-label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.25rem; }
.info-value { font-size: 0.9375rem; font-weight: 500; color: var(--ink); white-space: pre-line; }

.map-wrap {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 5/3;
    margin-top: 1.25rem;
}
.map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

.contact-form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem 2.5rem;
}
.contact-form-card h2 { margin-bottom: 0.5rem; }
.contact-form-card > p { margin-bottom: 2rem; font-size: 0.9375rem; }

/* Forms */
.form-row { margin-bottom: 1.25rem; }
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}
@media (max-width: 639px) { .form-row-2 { grid-template-columns: 1fr; } }
label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.375rem;
}
label .req { color: var(--gold); margin-left: 0.125rem; }
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    font-family: 'Manrope', sans-serif;
    font-size: 0.9375rem;
    color: var(--ink);
    background: var(--cream-pale);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    outline: none;
    transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--gold);
    background: #fff;
}
textarea { resize: vertical; min-height: 7rem; }

/* =====================================================================
   LISTINGS PAGE
   ===================================================================== */
.listings-header {
    padding-top: 8rem;
    padding-bottom: 3rem;
}
.listings-filter-bar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}
.filter-pill {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    transition: all 0.15s;
    font-family: 'Manrope', sans-serif;
}
.filter-pill:hover,
.filter-pill.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink);
}
.filter-select {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--cream-pale);
    font-family: 'Manrope', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    outline: none;
}

/* =====================================================================
   APPLY PAGE
   ===================================================================== */
.apply-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
@media (max-width: 767px) { .apply-type-grid { grid-template-columns: 1fr; } }
.apply-type-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: #fff;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink);
    transition: all 0.15s;
    width: 100%;
}
.apply-type-btn:hover,
.apply-type-btn.active {
    border-color: var(--gold);
    background: rgba(240,177,97,0.06);
}
.apply-type-btn svg { width: 1.25rem; height: 1.25rem; color: var(--gold); }

.success-box {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto;
    padding: 5rem 1rem;
}
.success-icon {
    width: 5rem; height: 5rem;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 2rem;
}
.success-icon svg { width: 2.5rem; height: 2.5rem; }

/* =====================================================================
   FOOTER
   ===================================================================== */
#site-footer {
    position: relative;
    background: var(--ink);
    color: #FDFBF7;
    overflow: hidden;
}
.footer-glow-1 {
    position: absolute;
    top: -5rem; left: -5rem;
    width: 30rem; height: 30rem;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.04;
    pointer-events: none;
}
.footer-glow-2 {
    position: absolute;
    bottom: -5rem; right: -5rem;
    width: 30rem; height: 30rem;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.04;
    pointer-events: none;
}
.footer-inner {
    position: relative;
    padding-top: 5rem;
    padding-bottom: 2.5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 5fr 3fr 4fr;
    gap: 3rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 2rem;
}
@media (max-width: 767px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo img { height: 4rem; width: auto; object-fit: contain; margin-bottom: 1.5rem; }
.footer-blurb { color: #c9c4bd; font-size: 0.9375rem; max-width: 26rem; line-height: 1.7; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 2rem; }
.footer-social a {
    width: 2.5rem; height: 2.5rem;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    color: inherit;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.footer-social a svg { width: 1rem; height: 1rem; }

.footer-col-title {
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 1.25rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { color: #e4ddd1; font-size: 0.9375rem; transition: color 0.15s; }
.footer-links a:hover { color: var(--gold); }

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #e4ddd1;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}
.footer-contact svg { width: 1rem; height: 1rem; color: var(--gold); flex-shrink: 0; margin-top: 0.125rem; }
.footer-contact a { color: #e4ddd1; transition: color 0.15s; }
.footer-contact a:hover { color: var(--gold); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--ink-muted);
    flex-wrap: wrap;
}
.footer-bottom em { font-family: 'Fraunces', serif; font-style: italic; }

/* =====================================================================
   LISTING DETAIL PAGE
   ===================================================================== */
.listing-detail-hero {
    padding-top: 6rem;
}
.gallery-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.5rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 28rem;
    margin-bottom: 3rem;
}
.gallery-main { grid-row: span 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }

.listing-detail-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 3rem;
    align-items: flex-start;
}
@media (max-width: 1023px) { .listing-detail-grid { grid-template-columns: 1fr; } }

.detail-sticky {
    position: sticky;
    top: 6rem;
}
.enquiry-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 1rem;
}
.enquiry-price {
    font-family: 'Fraunces', serif;
    font-size: 2.5rem;
    color: var(--ink);
    font-weight: 500;
    line-height: 1;
    margin-bottom: 0.25rem;
}
.enquiry-unit { font-size: 0.8125rem; color: var(--ink-light); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.5rem; }
.amenities-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--ink);
}
.amenity-dot {
    width: 0.375rem; height: 0.375rem;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

/* =====================================================================
   ADMIN ADD LISTING (simplified)
   ===================================================================== */
.admin-wrap { padding-top: 8rem; padding-bottom: 5rem; }
.admin-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    max-width: 56rem;
    margin: 0 auto;
}

/* =====================================================================
   HELPERS
   ===================================================================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 2.5rem;
}
.view-all {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid var(--ink);
    padding-bottom: 0.125rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
    text-decoration: none;
}
.view-all:hover { color: var(--gold); border-color: var(--gold); }
.view-all svg { width: 1rem; height: 1rem; }

.bg-white-section { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.text-gold { color: var(--gold); }
.italic { font-style: italic; }

/* Notice / alert for PHP warning context */
.admin-notice {
    background: rgba(240,177,97,0.12);
    border: 1px solid rgba(240,177,97,0.35);
    border-radius: var(--radius-sm);
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    color: var(--ink);
    margin-bottom: 1.5rem;
}

/* ── Single listing page — SVG size guard ──────────────────────────── */
.listing-detail-grid svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}
.listing-detail-grid .badge svg,
.listing-detail-grid span svg {
    width: 0.75rem;
    height: 0.75rem;
    vertical-align: middle;
}
/* Prevent Elementor / theme from blowing up inline SVGs */
.single-listing svg:not([class]) {
    max-width: 1.25rem;
    max-height: 1.25rem;
}

/* =====================================================================
   MOBILE FIXES
   ===================================================================== */

/* ── Nav: no gap at top on mobile (no admin bar for visitors) ───────── */
@media (max-width: 782px) {
    body:not(.admin-bar) #site-header { top: 0; }
    body:not(.admin-bar) { padding-top: 0; }
}

/* ── Hero: Browse Listings button doesn't overlap search bar ────────── */
@media (max-width: 768px) {
    .hero-actions { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .hero-search  { margin-top: 1rem; }
    .hero-section { padding-bottom: 3rem; }
}

/* ── Listings archive: full width, no overflow ──────────────────────── */
@media (max-width: 768px) {
    .listings-grid { grid-template-columns: 1fr; gap: 1rem; }
    #filter-form   { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ── Single listing: stack columns on mobile ────────────────────────── */
@media (max-width: 768px) {
    .listing-detail-grid,
    [style*="grid-template-columns:1fr 360px"] {
        display: block !important;
    }
    .detail-sticky { margin-top: 2rem; position: static !important; }
}

/* ── Container: proper padding on mobile ───────────────────────────── */
@media (max-width: 640px) {
    .container { padding-left: 1.25rem; padding-right: 1.25rem; }
    :root { --px: 1.25rem; }
}

/* ── About / Elementor pages: top padding so content clears nav ─────── */
.page-template-about main,
.page-template-contact main,
.page-template-apply main {
    padding-top: 5rem;
}
@media (max-width: 768px) {
    .page-template-about main,
    .page-template-contact main,
    .page-template-apply main {
        padding-top: 4.5rem;
    }
    /* Elementor sections: reduce padding on mobile */
    .elementor-section {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
    .elementor-section .elementor-container {
        max-width: 100% !important;
    }
    /* Elementor columns: stack on mobile */
    .elementor-column {
        width: 100% !important;
    }
}

/* ── Footer: stack on mobile ────────────────────────────────────────── */
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr !important; gap: 2rem; }
}

/* ── Gallery grid on single listing: full width on mobile ───────────── */
@media (max-width: 640px) {
    [style*="grid-template-columns:1.6fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    [style*="grid-template-columns:1.6fr 1fr"] > div:last-child {
        display: none;
    }
}
