:root {
    --navy: #0f172a;
    --navy-light: #1e293b;
    --navy-soft: #334155;
    --gold: #c9a227;
    --gold-light: #e8d48b;
    --gold-dark: #a6851f;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #1e293b;
    --text-soft: #64748b;
    --border: #e2e8f0;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    --shadow-hover: 0 12px 40px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding-top: 72px;
    min-height: 100vh;
}

/* Navbar */
#mainNav {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    padding: 0.85rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

#mainNav.scrolled {
    padding: 0.6rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.navbar-brand {
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.text-gold { color: var(--gold) !important; }
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0f172a;
    border: none;
    font-weight: 600;
    padding: 0.45rem 1.2rem;
    border-radius: 50px;
}
.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: #0f172a;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem !important;
    border-radius: 8px;
}
.nav-link:hover { color: var(--gold-light) !important; }

/* Main content */
.main-content {
    min-height: calc(100vh - 320px);
}

/* Hero */
.hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: white;
    padding: 5rem 0 4.5rem;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 20%, rgba(201,162,39,0.15) 0%, transparent 50%);
    pointer-events: none;
}
.hero h1 {
    font-weight: 800;
    font-size: clamp(1.9rem, 5vw, 2.8rem);
    letter-spacing: -0.03em;
    line-height: 1.25;
}
.hero .lead {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 540px;
}

/* Cards */
.property-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid var(--border);
}
.property-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.property-card .card-img-wrap {
    position: relative;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #1e293b, #334155);
    overflow: hidden;
}
.property-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.property-card:hover .card-img-wrap img {
    transform: scale(1.05);
}
.property-card .badge-type {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15,23,42,0.85);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
}
.property-card .card-body {
    padding: 1.25rem 1.35rem 1.4rem;
}
.property-card .card-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}
.property-card .region-tag {
    font-size: 0.8rem;
    color: var(--text-soft);
}
.property-card .price {
    font-weight: 700;
    color: var(--navy);
    font-size: 1.05rem;
}
.property-card .price small {
    font-weight: 500;
    color: var(--text-soft);
    font-size: 0.8rem;
}

/* Region page header */
.region-hero {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    padding: 3.5rem 0 3rem;
}
.region-hero h1 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Property detail */
.property-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 3rem 0 2.5rem;
}
.property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.95rem;
    opacity: 0.9;
}
.property-meta i {
    color: var(--gold);
    margin-right: 0.35rem;
}

/* Booking form */
.booking-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border);
    position: sticky;
    top: 90px;
}
.booking-card .card-header {
    background: var(--navy);
    color: white;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 1.1rem 1.4rem;
    font-weight: 600;
}

/* Footer */
.site-footer {
    background: var(--navy);
    color: #94a3b8;
    padding: 3.5rem 0 2rem;
    margin-top: 4rem;
}
.site-footer a {
    color: #94a3b8;
    text-decoration: none;
}
.site-footer a:hover {
    color: var(--gold);
}

/* Utilities */
.section-title {
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    color: var(--text-soft);
    margin-bottom: 2rem;
}

/* Mobile adjustments */
@media (max-width: 767.98px) {
    body { padding-top: 64px; }
    .hero { padding: 3.5rem 0 3rem; }
    .booking-card { position: static; margin-top: 2rem; }
}

/* Gallery */
.gallery-thumbs .thumb-btn img {
    border: 2px solid transparent;
}
.gallery-thumbs .thumb-btn.active-thumb img,
.gallery-thumbs .thumb-btn:hover img {
    opacity: 1 !important;
    border-color: var(--gold);
}
.carousel-indicators {
    margin-bottom: 0.8rem;
}
.carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
}
.carousel-indicators .active {
    background-color: var(--gold);
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: zoom-out;
}
.lightbox-overlay.active {
    display: flex;
}
.lightbox-overlay img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    cursor: default;
}
.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    color: white;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.8;
    z-index: 10000;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
