/* Kijaur Serenity Retreat — Premium Design System */

:root {
    --forest-deep: #0c1d16;
    --forest: #1B4332;
    --forest-mid: #2d7a55;
    --forest-light: #40916C;
    --gold: #C9A962;
    --gold-light: #e8d5a3;
    --gold-dark: #9a7a32;
    --cream: #F7F3ED;
    --cream-warm: #FDF8F0;
    --text: #112920;
    --text-muted: #3d5c4e;
    --gradient-hero: linear-gradient(135deg, #0c1d16 0%, #1B4332 40%, #2d7a55 70%, #1a4d35 100%);
    --gradient-gold: linear-gradient(135deg, #C9A962 0%, #dbb978 50%, #b8943d 100%);
    --gradient-section: linear-gradient(180deg, #eef6f1 0%, #F7F3ED 50%, #faf6ef 100%);
    --gradient-safari: linear-gradient(135deg, rgba(27,67,50,0.95) 0%, rgba(45,122,85,0.88) 50%, rgba(154,122,50,0.75) 100%);
    --shadow-soft: 0 8px 32px rgba(27, 67, 50, 0.1);
    --shadow-card: 0 16px 48px rgba(27, 67, 50, 0.14);
    --radius-lg: 1.25rem;
}

body {
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
}

.inner-page {
    background: var(--gradient-section);
}

/* ─── Glass & panels ─── */
.glass {
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.glass-dark {
    background: linear-gradient(145deg, rgba(12,29,22,0.92) 0%, rgba(27,67,50,0.88) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(201, 169, 98, 0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.glass-card {
    background: linear-gradient(145deg, #ffffff 0%, #faf8f4 100%);
    border: 1px solid rgba(201, 169, 98, 0.18);
    box-shadow: var(--shadow-soft);
}

.glass-card-dark {
    background: linear-gradient(145deg, rgba(27,67,50,0.94) 0%, rgba(17,41,32,0.96) 100%);
    border: 1px solid rgba(201, 169, 98, 0.28);
    color: #fff;
}

.content-panel {
    background: linear-gradient(160deg, #ffffff 0%, #faf7f2 100%);
    border: 1px solid rgba(201, 169, 98, 0.15);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.form-panel {
    background: linear-gradient(160deg, #ffffff 0%, #fffef9 100%);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    background-clip: padding-box;
    box-shadow: var(--shadow-card);
    padding: 2rem;
    position: relative;
}

.form-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: linear-gradient(135deg, var(--gold), var(--forest-light), var(--gold-dark));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.page-content {
    background: var(--gradient-section);
}

.page-content-alt {
    background: linear-gradient(180deg, #e8f2ec 0%, #f5f0e8 100%);
}

/* ─── Buttons ─── */
.btn-gold {
    background: var(--gradient-gold);
    color: var(--forest);
    font-weight: 600;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(201, 169, 98, 0.35);
}
.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(201, 169, 98, 0.45);
    filter: brightness(1.05);
}

.btn-forest {
    background: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 100%);
    color: white;
    font-weight: 600;
    transition: all 0.35s ease;
    box-shadow: 0 4px 16px rgba(27, 67, 50, 0.3);
}
.btn-forest:hover {
    background: linear-gradient(135deg, var(--forest-mid) 0%, var(--forest-light) 100%);
    transform: translateY(-3px);
}

.btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold-dark);
    font-weight: 600;
    background: rgba(255,255,255,0.95);
    transition: all 0.3s ease;
}
.btn-outline-gold:hover {
    background: var(--gradient-gold);
    color: var(--forest);
    border-color: transparent;
}

.btn-block {
    display: block;
    width: 100%;
    padding: 0.9rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

/* ─── Navigation ─── */
.nav-transparent { background: transparent; }
.nav-scrolled, .nav-solid {
    background: linear-gradient(180deg, rgba(12,29,22,0.98) 0%, rgba(27,67,50,0.96) 100%);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.inner-page #main-nav {
    background: linear-gradient(180deg, rgba(12,29,22,0.98) 0%, rgba(27,67,50,0.96) 100%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* ─── Hero slider ─── */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 560px;
    max-height: 900px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.4s ease-in-out;
}
.hero-slide.active { opacity: 1; }

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(12,29,22,0.75) 0%,
        rgba(27,67,50,0.45) 35%,
        rgba(45,122,85,0.25) 60%,
        rgba(12,29,22,0.65) 100%
    );
    z-index: 1;
}

.hero-slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(12,29,22,0.6), transparent);
    z-index: 1;
    pointer-events: none;
}

.hero-slide .slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    animation: kenBurns 22s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition: all 0.35s ease;
    cursor: pointer;
    border: 2px solid transparent;
}
.slider-dot.active {
    background: var(--gold);
    transform: scale(1.35);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 12px rgba(201, 169, 98, 0.6);
}

/* ─── Typography & sections ─── */
.section-heading {
    font-family: 'Cormorant Garamond', serif;
    color: var(--forest);
}

.section-divider {
    width: 72px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--forest-light), var(--gold-dark));
    border-radius: 2px;
}

.text-body {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.label-text {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--forest);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.label-hint {
    font-weight: 400;
    color: #7a9a8a;
    font-size: 0.75rem;
}

.form-group { margin-bottom: 1.1rem; }

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 480px) {
    .form-row-2 { grid-template-columns: 1fr; }
}

/* ─── Forms ─── */
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.9rem 1.15rem;
    border: 2px solid rgba(27, 67, 50, 0.12);
    border-radius: 0.75rem;
    background: linear-gradient(180deg, #ffffff 0%, #faf9f6 100%);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input::placeholder, .form-textarea::placeholder {
    color: #8aa898;
}

.form-input:hover, .form-select:hover, .form-textarea:hover {
    border-color: rgba(201, 169, 98, 0.4);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(201, 169, 98, 0.22), 0 4px 16px rgba(27,67,50,0.08);
    background: #fffef9;
}

.form-textarea { min-height: 120px; resize: vertical; }

/* ─── Cards & interactions ─── */
.unit-card { transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
.unit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 64px rgba(27, 67, 50, 0.22);
}

.amenity-card { transition: all 0.35s ease; }
.amenity-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 52px rgba(27, 67, 50, 0.14);
}

.animate-fade-in { animation: fadeIn 0.6s ease-out; }
.animate-slide-up { animation: slideUp 0.9s ease-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(32px); transition: all 0.85s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── Page hero ─── */
.page-hero {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 5rem;
    background-size: cover;
    background-position: center;
    background-color: var(--forest);
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-safari);
}
.page-hero .relative { position: relative; z-index: 2; }

/* ─── Stats bar ─── */
.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── CTA & testimonials ─── */
.cta-section {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(201,169,98,0.12) 0%, transparent 55%),
                radial-gradient(ellipse at 70% 80%, rgba(64,145,108,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.testimonial-card {
    background: linear-gradient(160deg, #ffffff 0%, #faf7f2 100%);
    border: 1px solid rgba(201, 169, 98, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.pricing-box {
    background: linear-gradient(135deg, #f0f7f4 0%, #fffef9 100%);
    border: 2px solid rgba(201, 169, 98, 0.35);
    border-radius: 1rem;
    padding: 1.25rem;
}

/* Premium section with gradient band */
.section-gradient-band {
    background: linear-gradient(135deg, var(--forest) 0%, #1a4d35 40%, var(--forest-mid) 100%);
    position: relative;
}
.section-gradient-band::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

/* Flash messages */
.flash-message {
    background: #ffffff;
    box-shadow: var(--shadow-card);
    border-radius: 0.75rem;
}

.alert-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fca5a5;
    color: #b91c1c;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ─── Auth pages v2 (client login/register) ─── */
.auth-page-v2 {
    margin: 0;
    min-height: 100vh;
    font-family: 'Outfit', system-ui, sans-serif;
    color: var(--text);
    overflow-x: hidden;
}

.auth-page-v2-wrap {
    display: flex;
    min-height: 100vh;
}

.auth-page-v2-visual {
    flex: 1;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: none;
}

@media (min-width: 900px) {
    .auth-page-v2-visual { display: block; }
}

.auth-page-v2-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(12,29,22,0.88) 0%, rgba(27,67,50,0.75) 50%, rgba(154,122,50,0.35) 100%);
}

.auth-page-v2-visual-content {
    position: relative;
    z-index: 2;
    padding: 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 420px;
}

.auth-page-v2-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--forest);
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.auth-page-v2-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem;
    line-height: 1.1;
}

.auth-page-v2-tagline {
    color: var(--gold-light);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 2rem;
}

.auth-page-v2-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-page-v2-features li {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
}

.auth-page-v2-features li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--gold);
}

.auth-page-v2-panel {
    flex: 1;
    min-height: 100vh;
    background: var(--gradient-section);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.auth-page-v2-panel-inner {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1.5rem 3rem;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.auth-page-v2-mobile-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--forest);
}

@media (min-width: 900px) {
    .auth-page-v2-mobile-brand { display: none; }
}

.auth-page-v2-logo-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--forest);
}

.auth-card-v2 {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(201, 169, 98, 0.2);
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .auth-card-v2 { padding: 1.5rem; }
    .auth-page-v2-panel-inner { padding: 1.25rem 1rem 2rem; }
}

.auth-card-v2-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--forest);
    margin: 0 0 0.35rem;
}

.auth-card-v2-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 1.5rem;
}

.auth-form { width: 100%; }

.auth-switch {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--gold-dark);
    font-weight: 600;
    text-decoration: none;
}
.auth-switch a:hover { text-decoration: underline; }

.auth-back-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-decoration: none;
}
.auth-back-link:hover { color: var(--forest); }

/* Legacy auth (admin) */
.auth-page {
    min-height: 100vh;
    background: var(--gradient-hero);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 20%, rgba(201, 169, 98, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(64, 145, 108, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.auth-card {
    background: #ffffff;
    border: 2px solid rgba(201, 169, 98, 0.35);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    padding: 2.5rem;
    position: relative;
    z-index: 1;
}

/* ─── Gallery & misc ─── */
.gallery-item { cursor: pointer; overflow: hidden; border-radius: 0.75rem; }
.gallery-item img { transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.08); }

.tour-badge {
    background: var(--gradient-gold);
    animation: pulse-gold 2s ease-in-out infinite;
}

@keyframes pulse-gold {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.data-table {
    background: #ffffff;
    border: 1px solid rgba(27, 67, 50, 0.12);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.map-section {
    height: 28rem;
    min-height: 320px;
    position: relative;
    background: var(--forest);
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--forest-light), var(--forest));
    border-radius: 4px;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.lightbox-overlay.active { opacity: 1; pointer-events: all; }

@media (max-width: 768px) {
    .hero-slider { min-height: 520px; }
    .form-panel { padding: 1.5rem; }
}
