/* ============================================================
   Cherries Egul Lodges — stylesheet (black & gold theme)
   ============================================================ */
:root {
    --black: #0d0d0d;
    --black-2: #161616;
    --panel: #1e1d1a;
    --gold: #d4af37;
    --gold-2: #f0c94a;
    --cream: #f6f1e3;
    --cream-2: #fbf8ef;
    --text: #26221a;
    --muted: #7a7264;
    --ok: #1f8a4c;
    --danger: #c0392b;
    --info: #2c6fb5;
    --radius: 12px;
    --shadow: 0 8px 28px rgba(0, 0, 0, .14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.65;
    -webkit-tap-highlight-color: transparent;
    overflow-x: clip;
}
img { max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.muted { color: var(--muted); font-size: .85rem; }
.right { margin-left: auto; }

.container { width: min(1150px, 92%); margin: 0 auto; }
.section { padding: 64px 0; }
.section-title { font-size: 2rem; text-align: center; color: var(--black); }
.section-sub { text-align: center; color: var(--muted); margin: 8px 0 40px; }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 26px; border: 2px solid transparent; border-radius: 999px;
    font-weight: 700; font-size: .95rem; cursor: pointer; transition: all .2s ease;
}
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--black); border-color: var(--gold); }
.btn-gold:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--gold-2); }
.btn-lg { padding: 15px 34px; font-size: 1.05rem; }
.btn-sm { padding: 7px 14px; font-size: .8rem; }
.btn-block { width: 100%; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-ok:hover { filter: brightness(1.15); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.15); }

/* ---------- alerts ---------- */
.flash-wrap { margin-top: 20px; }
.alert {
    position: relative; padding: 14px 44px 14px 18px; border-radius: var(--radius);
    margin-bottom: 14px; font-size: .95rem;
}
.alert ul { padding-left: 20px; list-style: disc; }
.alert-success { background: #e7f6ed; color: var(--ok); border: 1px solid #b6e2c8; }
.alert-error { background: #fdeceb; color: var(--danger); border: 1px solid #f5c6c0; }
.alert-info { background: #eaf2fb; color: var(--info); border: 1px solid #c3dcf4; }
.alert-close, .message-card form .btn { margin-top: 4px; }
.alert-close {
    position: absolute; top: 4px; right: 12px; background: none; border: none;
    font-size: 1.4rem; cursor: pointer; color: inherit; line-height: 1;
}

/* ---------- header ---------- */
.site-header {
    background: var(--black);
    position: sticky; top: 0; z-index: 100;
    border-bottom: 3px solid var(--gold);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 52px; width: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.brand-text { color: var(--gold-2); font-weight: 800; font-size: 1.15rem; letter-spacing: .5px; display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { color: #fff; font-size: .7rem; letter-spacing: 3px; font-weight: 600; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
    color: #eee; padding: 9px 16px; border-radius: 999px; font-size: .95rem; font-weight: 600;
    transition: all .2s;
}
.nav a:hover { color: var(--gold-2); }
.nav a.active { background: var(--gold); color: var(--black); }
.nav .nav-admin { color: var(--gold-2); }
.nav .badge {
    background: var(--danger); color: #fff; border-radius: 999px; font-size: .7rem;
    padding: 2px 7px; vertical-align: top;
}
.nav-toggle { display: none; background: none; border: 1px solid var(--gold); color: var(--gold-2); font-size: 1.2rem; padding: 8px 12px; border-radius: 8px; cursor: pointer; }

/* ---------- hero ---------- */
.hero {
    background:
        radial-gradient(ellipse at 20% 20%, rgba(212,175,55,.25), transparent 55%),
        radial-gradient(ellipse at 85% 80%, rgba(212,175,55,.18), transparent 50%),
        linear-gradient(160deg, #111 0%, #1d1a12 100%);
    color: #fff; text-align: center; padding: 70px 0 80px;
}
.hero-logo { height: 230px; width: auto; border-radius: 50%; margin-bottom: 26px; box-shadow: 0 0 0 5px var(--gold), 0 0 0 10px rgba(240,201,74,.25), var(--shadow); }
.hero h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); margin-bottom: 12px; }
.hero h1 span { color: var(--gold-2); }
.hero p { max-width: 640px; margin: 0 auto 30px; color: #d8d2c2; font-size: 1.1rem; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-outline.on-dark { color: var(--gold-2); border-color: var(--gold-2); }
.btn-outline.on-dark:hover { background: var(--gold-2); color: var(--black); }

/* ---------- features ---------- */
.features { background: var(--black-2); padding: 46px 0; border-bottom: 1px solid rgba(212,175,55,.3); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.feature-card {
    background: var(--panel); border: 1px solid rgba(212,175,55,.35); border-radius: var(--radius); padding: 26px 16px;
    color: #fff; transition: transform .2s;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-card i { font-size: 1.9rem; color: var(--gold-2); margin-bottom: 10px; }
.feature-card h3 { font-size: 1rem; margin-bottom: 5px; color: var(--gold-2); }
.feature-card p { font-size: .85rem; color: #cfc8b8; }

/* ---------- room cards ---------- */
.rooms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.room-card {
    position: relative; background: #fff; border-radius: var(--radius); padding: 0 0 28px;
    box-shadow: var(--shadow); border-top: none; display: flex; flex-direction: column; gap: 12px;
    overflow: hidden; transition: transform .2s;
}
.room-card:hover { transform: translateY(-5px); }
.room-photo { position: relative; height: 210px; overflow: hidden; }
.room-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.room-card:hover .room-photo img { transform: scale(1.06); }
.room-badge {
    position: absolute; bottom: 12px; left: 12px;
    background: var(--black); color: var(--gold-2); font-weight: 800; font-size: .85rem;
    padding: 8px 18px; border-radius: 999px; border: 2px solid var(--gold); white-space: nowrap;
}
.room-card h3 { color: var(--black); font-size: 1.25rem; margin: 10px 24px 0; }
.room-card h3 i { color: var(--gold); }
.room-card p { color: var(--muted); font-size: .93rem; flex: 1; margin: 0 24px; }
.room-card .room-meta { margin: 0 24px; }
.room-card .btn { margin: 6px 24px 0; }
.room-meta { display: flex; gap: 18px; font-size: .85rem; color: var(--muted); }
.room-meta i { color: var(--gold); margin-right: 5px; }
.status { font-weight: 700; font-size: .9rem; }
.status-yes { color: var(--ok); }
.status-no { color: var(--danger); }
.room-unavailable .room-photo img { filter: grayscale(.7); }

/* ---------- gallery ---------- */
.gallery-section { background: var(--black-2); }
.gallery-section .section-title, .gallery-section .section-sub { color: var(--gold-2); margin-bottom: 8px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item {
    position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; height: 240px;
    border: 2px solid rgba(212,175,55,.4);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff;
    padding: 26px 14px 10px; font-size: .88rem; font-weight: 600;
}

/* ---------- lightbox ---------- */
.lightbox {
    position: fixed; inset: 0; z-index: 999; background: rgba(10,10,10,.93);
    display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; border: 3px solid var(--gold); border-radius: var(--radius); }
.lightbox-caption { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: var(--gold-2); font-weight: 700; }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute; background: none; border: 2px solid var(--gold); color: var(--gold-2);
    width: 48px; height: 48px; border-radius: 50%; font-size: 1.1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--gold); color: var(--black); }

/* ---------- cta strip ---------- */
.cta-strip { background: linear-gradient(135deg, var(--gold), var(--gold-2)); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-inner h2 { color: var(--black); font-size: 1.7rem; }
.cta-inner p { color: #3b3418; }

/* ---------- page hero ---------- */
.page-hero { background: var(--black); color: #fff; text-align: center; padding: 55px 0; border-bottom: 3px solid var(--gold); }
.page-hero h1 { font-size: 2.3rem; color: var(--gold-2); }
.page-hero p { color: #d8d2c2; margin-top: 8px; }

/* ---------- availability form ---------- */
.avail-form { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 34px; }
.avail-fields { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; }
.avail-fields label { display: flex; flex-direction: column; font-size: .85rem; font-weight: 700; gap: 6px; color: var(--text); }
.avail-fields input { padding: 10px 14px; border: 1px solid #d9d2c2; border-radius: 8px; font-size: .95rem; min-width: 180px; }

/* ---------- booking page ---------- */
.booking-section, .contact-section { background: var(--cream-2); }
.booking-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.booking-form, .contact-form {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px;
}
.booking-form .form-note { margin-top: 14px; text-align: center; font-size: .82rem; color: var(--muted); }
.form-row { margin-bottom: 18px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row label { display: flex; flex-direction: column; gap: 7px; font-weight: 700; font-size: .88rem; }
.form-row label em { font-weight: 400; color: var(--muted); }
.form-row input, .form-row select, .form-row textarea,
.contact-form input, .contact-form textarea {
    padding: 11px 14px; border: 1px solid #d9d2c2; border-radius: 8px; font-size: .95rem;
    font-family: inherit; background: var(--cream-2); transition: border .2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus,
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.2);
}
.price-summary {
    background: var(--black); color: #fff; border-radius: var(--radius); padding: 18px 22px; margin: 8px 0 22px;
}
.price-summary > div { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed rgba(212,175,55,.3); }
.price-summary span { color: #cfc8b8; font-size: .9rem; }
.price-summary strong { color: var(--gold-2); }
.summary-total { border-bottom: none !important; border-top: 2px solid var(--gold); margin-top: 6px; padding-top: 10px !important; font-size: 1.05rem; }
.booking-side { display: flex; flex-direction: column; gap: 20px; }
.includes-list, .side-contact { background: var(--black); color: #fff; border-radius: var(--radius); padding: 24px; border-left: 5px solid var(--gold); }
.booking-side h3 { color: var(--gold-2); margin-bottom: 12px; font-size: 1.05rem; }
.includes-list li { padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .95rem; }
.includes-list i { color: var(--gold-2); margin-right: 8px; }
.side-contact p { margin-bottom: 8px; font-size: .9rem; color: #d8d2c2; }
.side-contact i { color: var(--gold-2); width: 20px; }

/* ---------- success page ---------- */
.success-card {
    max-width: 640px; margin: 0 auto; background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); text-align: center; padding: 50px 40px; border-top: 6px solid var(--gold);
}
.success-icon { font-size: 4rem; color: var(--ok); margin-bottom: 14px; }
.success-card h1 { color: var(--black); margin-bottom: 8px; }
.success-card > p { color: var(--muted); margin-bottom: 26px; }
.receipt { background: var(--black); color: #fff; border-radius: var(--radius); padding: 22px; text-align: left; margin-bottom: 22px; }
.receipt > div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed rgba(212,175,55,.3); }
.receipt span { color: #cfc8b8; font-size: .9rem; }
.receipt strong { color: #fff; }
.receipt .booking-ref { color: var(--gold-2); letter-spacing: 1px; }
.receipt-total { border: none !important; border-top: 2px solid var(--gold) !important; margin-top: 6px; }
.receipt-total strong { color: var(--gold-2) !important; }

/* ---------- contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-info h2 { margin-bottom: 6px; color: var(--black); }
.contact-card {
    display: flex; gap: 16px; background: #fff; padding: 18px 20px; border-radius: var(--radius);
    box-shadow: var(--shadow); align-items: flex-start;
}
.contact-card i { font-size: 1.4rem; color: var(--gold); background: var(--black); padding: 12px; border-radius: 10px; }
.contact-card h3 { font-size: .95rem; color: var(--black); margin-bottom: 3px; }
.contact-card p { font-size: .9rem; color: var(--muted); }
.contact-form h2 { margin-bottom: 18px; color: var(--black); }
.contact-form label { display: flex; flex-direction: column; gap: 7px; font-weight: 700; font-size: .88rem; margin-bottom: 15px; }

/* ---------- footer ---------- */
.site-footer { background: var(--black); color: #cfc8b8; margin-top: 40px; border-top: 3px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 30px; padding: 50px 0 30px; }
.footer-logo { height: 90px; width: auto; border-radius: 50%; border: 2px solid var(--gold); margin-bottom: 12px; }
.site-footer h4 { color: var(--gold-2); margin-bottom: 12px; font-size: .95rem; letter-spacing: 1px; }
.site-footer ul li { padding: 4px 0; font-size: .9rem; }
.site-footer ul a:hover { color: var(--gold-2); }
.footer-contact i { color: var(--gold-2); width: 22px; }
.footer-bottom { text-align: center; padding: 16px; border-top: 1px solid rgba(212,175,55,.25); font-size: .85rem; }

/* ---------- admin ---------- */
.admin-body { background: #efeade; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #111, #221d10); padding: 20px; }
.login-card { background: #fff; border-radius: var(--radius); padding: 40px 36px; width: 100%; max-width: 400px; box-shadow: var(--shadow); border-top: 6px solid var(--gold); }
.login-logo { display: block; width: 110px; border-radius: 50%; border: 3px solid var(--gold); margin: 0 auto 18px; }
.login-card h1 { text-align: center; font-size: 1.35rem; color: var(--black); margin-bottom: 20px; }
.login-card label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: .85rem; margin-bottom: 16px; }
.login-card input { padding: 11px 14px; border: 1px solid #d9d2c2; border-radius: 8px; font-size: .95rem; }
.login-card .btn { margin-top: 6px; }
.login-back, .login-hint { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 14px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }
.stat-card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px;
    display: flex; gap: 14px; align-items: center; border-left: 5px solid var(--black);
}
.stat-card i { font-size: 1.6rem; color: var(--gold); }
.stat-card strong { display: block; font-size: 1.4rem; color: var(--black); line-height: 1.2; }
.stat-card span { font-size: .8rem; color: var(--muted); }
.stat-ok { border-left-color: var(--ok); } .stat-ok i { color: var(--ok); }
.stat-warn { border-left-color: var(--gold); }
.stat-gold { border-left-color: var(--gold-2); }
.filter-row { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }

.table-wrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.admin-table th {
    background: var(--black); color: var(--gold-2); text-align: left; padding: 13px 14px; font-size: .8rem; letter-spacing: .6px;
}
.admin-table td { padding: 13px 14px; border-bottom: 1px solid #eee7d8; font-size: .88rem; vertical-align: top; }
.admin-table tr:hover td { background: #fbf8ef; }
.table-empty { text-align: center; color: var(--muted); padding: 30px !important; }
.row-cancelled td { opacity: .55; text-decoration: line-through; }
.row-cancelled td:nth-child(8) { text-decoration: none; }
.pill { padding: 4px 12px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.pill-pending { background: #fdf3d7; color: #9a7b0a; }
.pill-confirmed { background: #e7f6ed; color: var(--ok); }
.pill-cancelled { background: #fdeceb; color: var(--danger); }
.actions form { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.notes-detail summary { cursor: pointer; font-size: .8rem; color: var(--gold); font-weight: 700; }
.notes-detail p { font-size: .8rem; color: var(--muted); margin-top: 6px; }

.message-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 16px; border-left: 4px solid var(--gold); }
.message-card.read { opacity: .7; border-left-color: #c9c2b2; }
.message-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; }
.message-card p { margin-bottom: 12px; font-size: .92rem; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
    .rooms-grid, .booking-layout, .contact-layout, .footer-grid { grid-template-columns: 1fr; }
    .features-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .rooms-grid { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- phones ---------- */
@media (max-width: 720px) {
    /* iOS Safari zooms the whole page when focusing inputs below 16px */
    .form-row input, .form-row select, .form-row textarea,
    .contact-form input, .contact-form textarea,
    .avail-fields input,
    .login-card input {
        font-size: 16px !important;
    }

    /* full-width, thumb-sized touch targets */
    .btn { padding: 13px 22px; min-height: 46px; }
    .avail-fields label, .avail-fields input { width: 100%; min-width: 0; }
    .avail-fields .btn { width: 100%; }

    .nav-toggle { display: block; }
    .nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--black); flex-direction: column; padding: 10px 0;
        border-bottom: 3px solid var(--gold);
        box-shadow: 0 14px 24px rgba(0, 0, 0, .35);
    }
    .nav.open { display: flex; }
    .nav a { text-align: center; padding: 13px 20px; border-radius: 0; }

    .form-row.two { grid-template-columns: 1fr; }
    .features-grid, .stats-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item { height: 210px; }
    .hero-logo { height: 170px; }
    .cta-inner { justify-content: center; text-align: center; }
    .section { padding: 44px 0; }
    .hero { padding: 50px 0 60px; }
    .room-photo { height: 190px; }
    .footer-grid { padding: 36px 0 22px; gap: 22px; }
    .filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .filter-row .btn { width: 100%; }
    .stats-grid { gap: 12px; }
}
