:root {
    --bg: #faf6f1;
    --bg-card: #ffffff;
    --ink: #2d2a26;
    --ink-soft: #6b645c;
    --accent: #c4917b;
    --accent-dark: #a87560;
    --ok: #4a7c59;
    --error: #b5543f;
    --line: #e8e0d5;
    --wa: #25d366;
    --wa-dark: #1da851;
    --radius: 14px;
    --shadow: 0 4px 24px rgba(60, 40, 20, 0.06);
    --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

.hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
.gate { max-width: 420px; margin: 0 auto; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: 0.01em; }

.hero {
    text-align: center;
    padding: 60px 20px 40px;
    background: linear-gradient(180deg, #f5ede1 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--line);
}
.hero .place {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.4rem, 4vw, 2rem);
    color: var(--accent-dark);
    margin: 0 0 14px;
    letter-spacing: 0.02em;
}
.hero .kicker {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
    color: var(--accent-dark);
    margin: 0 0 12px;
}
.hero h1 {
    font-size: clamp(2rem, 6vw, 3.4rem);
    margin: 0 0 14px;
    color: var(--ink);
}
.hero .subtitle {
    max-width: 560px;
    margin: 0 auto;
    color: var(--ink-soft);
    font-size: 1.05rem;
}

.container {
    max-width: 820px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    border: 1px solid var(--line);
}
.card h2 { margin-top: 0; font-size: 1.8rem; }

.muted { color: var(--ink-soft); }
.small { font-size: 0.85rem; }

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin: 16px 0;
    font-size: 0.95rem;
}
.alert-ok    { background: #eaf3ec; color: var(--ok); border: 1px solid #c9e2cf; }
.alert-error { background: #fbecea; color: var(--error); border: 1px solid #f1c9bf; }

.form .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.field { display: flex; flex-direction: column; margin: 10px 0; }
.field-full { grid-column: 1 / -1; }
.field > span {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--ink);
}
.field input, .field select, .field textarea {
    font: inherit;
    color: var(--ink);
    background: #fdfcfa;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 12px;
    transition: border .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(196, 145, 123, 0.18);
}

.fieldset {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 18px 8px;
    margin: 18px 0;
}
.fieldset legend { padding: 0 8px; font-weight: 500; color: var(--accent-dark); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    font: inherit;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, transform .05s;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 13px 26px;
    font-size: 1rem;
    margin-top: 8px;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:active { transform: translateY(1px); }
.btn-sm { font-size: 0.82rem; padding: 6px 12px; background: #f3ece1; color: var(--ink); }
.btn-sm:hover { background: #ebe0d0; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }

.listings h2 {
    font-size: 1.9rem;
    margin-bottom: 6px;
}
.count { color: var(--ink-soft); font-family: var(--sans); font-size: 1rem; }

.day-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 20px 0;
    box-shadow: var(--shadow);
}
.day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.day-header h3 { margin: 0; font-size: 1.35rem; }
.pill {
    background: #f5ede1;
    color: var(--accent-dark);
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.guest-list { list-style: none; margin: 0; padding: 0; }
.guest-row {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
    align-items: center;
}
.guest-row:last-child { border-bottom: none; }
.guest-time {
    font-family: var(--serif);
    font-size: 1.4rem;
    color: var(--accent-dark);
    font-weight: 500;
}
.guest-name { font-weight: 600; font-size: 1rem; }
.guest-flight {
    color: var(--ink-soft);
    font-size: 0.85rem;
    margin-top: 2px;
}
.guest-notes {
    color: var(--ink-soft);
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 2px;
}
.guest-contact { display: flex; gap: 6px; flex-wrap: wrap; }

.empty {
    color: var(--ink-soft);
    font-style: italic;
    margin: 10px 0;
    text-align: center;
    padding: 14px;
}

.footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--ink-soft);
    font-size: 0.9rem;
    border-top: 1px solid var(--line);
}

.hint {
    display: block;
    margin-top: 6px;
    color: var(--ink-soft);
    font-size: 0.78rem;
    line-height: 1.4;
}

.listings-subtitle {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--accent-dark);
    margin: 28px 0 4px;
    font-weight: 500;
}
.listings-subtitle:first-of-type { margin-top: 10px; }

.container.wide { max-width: 1200px; }

.admin-hero { padding: 34px 20px 22px; }
.admin-hero .place { font-size: 1.6rem; margin-bottom: 6px; }

.table-wrap { overflow-x: auto; margin-top: 12px; }
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93rem;
}
.admin-table th, .admin-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.admin-table th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
    font-weight: 500;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table td.empty { text-align: center; padding: 24px; }
.admin-table .notes-cell { max-width: 220px; color: var(--ink-soft); font-size: 0.85rem; }
.admin-table .actions-cell { white-space: nowrap; }
.admin-table .actions-cell .btn { margin-right: 4px; }

.btn-danger {
    background: var(--error);
    color: #fff;
}
.btn-danger:hover { background: #933f2e; }

.actions-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}

@media (max-width: 640px) {
    body { font-size: 16px; }

    .form .grid { grid-template-columns: 1fr; gap: 0; }
    .field { margin: 8px 0; }
    .field input, .field select, .field textarea {
        font-size: 16px;
        padding: 13px 14px;
    }
    .hint { font-size: 0.82rem; margin-top: 5px; }

    .hero { padding: 32px 16px 22px; }
    .hero h1 { margin: 0 0 10px; }
    .hero .place { font-size: 1.5rem; margin-bottom: 10px; }
    .hero .subtitle { font-size: 0.98rem; }

    .container { padding: 20px 14px 40px; }
    .card { padding: 20px 16px; border-radius: 12px; }
    .card h2 { font-size: 1.55rem; }
    .card > p.muted { font-size: 0.92rem; }

    .fieldset { padding: 14px 14px 4px; margin: 14px 0; }
    .fieldset legend { font-size: 0.92rem; }

    .btn-primary {
        width: 100%;
        padding: 15px 20px;
        font-size: 1.02rem;
    }

    .day-card { padding: 14px 16px; margin: 14px 0; }
    .day-header h3 { font-size: 1.12rem; }
    .listings-subtitle { font-size: 1.25rem; margin: 22px 0 2px; }

    .guest-row {
        grid-template-columns: 58px 1fr;
        grid-template-areas:
            "time main"
            "time contact";
        padding: 14px 0;
        gap: 10px;
    }
    .guest-time   { grid-area: time; font-size: 1.25rem; }
    .guest-main   { grid-area: main; }
    .guest-contact{
        grid-area: contact;
        margin-top: 8px;
        gap: 8px;
    }
    .btn-sm {
        font-size: 0.9rem;
        padding: 9px 14px;
        min-height: 38px;
    }

    .admin-hero { padding: 26px 16px 18px; }
    .admin-table thead { display: none; }
    .admin-table, .admin-table tbody, .admin-table tr, .admin-table td {
        display: block;
        width: 100%;
    }
    .admin-table tr {
        border: 1px solid var(--line);
        border-radius: 10px;
        padding: 12px 14px;
        margin-bottom: 10px;
        background: #fdfcfa;
    }
    .admin-table td {
        border: none;
        padding: 4px 0;
    }
    .admin-table td:before {
        content: attr(data-label);
        display: inline-block;
        min-width: 74px;
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--ink-soft);
        margin-right: 8px;
    }
    .admin-table td.notes-cell { max-width: none; }
    .admin-table td.actions-cell {
        padding-top: 10px;
        display: flex;
        gap: 8px;
    }
    .admin-table td.actions-cell:before { display: none; }
}
