:root {
    --cream: #f8f3e7;
    --green-900: #123524;
    --green-700: #1f5a3d;
    --green-500: #3f7a59;
    --gold: #c9a227;
    --amber: #d39f24;
    --red: #9f2f2f;
    --white: #ffffff;
    --text: #223126;
    --radius: 14px;
    --shadow: 0 8px 24px rgba(18, 53, 36, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #fbf7ee 0%, #f3ecdd 100%);
}

.splash-body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 35%, #f8f3e7 0%, #ece2cb 55%, #ddceac 100%);
}

.splash-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: var(--green-900);
    padding: 1rem;
}

.splash-logo {
    width: min(78vw, 520px);
    height: auto;
    display: block;
    transition: transform 0.18s ease;
}

.splash-link:hover .splash-logo,
.splash-link:focus-visible .splash-logo {
    transform: scale(1.02);
}

.splash-text {
    font-weight: 700;
    letter-spacing: 0.03em;
}

a {
    color: var(--green-700);
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.site-header {
    background: var(--green-900);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 20;
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.45rem 0;
}

.brand {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1.08rem;
}

.header-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.15);
}

.site-main {
    min-height: calc(100vh - 160px);
}

.site-footer {
    background: var(--green-900);
    color: var(--white);
    padding: 1rem 0;
    margin-top: 3rem;
}

.section {
    padding: 2.4rem 0;
}

.section-muted {
    background: rgba(255, 255, 255, 0.55);
    border-top: 1px solid rgba(18, 53, 36, 0.1);
    border-bottom: 1px solid rgba(18, 53, 36, 0.1);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1.25rem;
}

.hero-grid-single {
    grid-template-columns: 1fr;
}

.logo-space {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 80px;
    border-radius: 12px;
    background: #e9dfca;
    border: 2px dashed var(--gold);
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-card,
.stat-card,
.auth-card,
.editor-form {
    background: rgba(255, 255, 255, 0.86);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(18, 53, 36, 0.12);
}

.pricing-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(18, 53, 36, 0.12);
}

.steps li {
    margin: 0.45rem 0;
}

.btn {
    border: none;
    border-radius: 999px;
    padding: 0.6rem 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}

.btn-primary {
    color: var(--white);
    background: var(--green-700);
}

.btn-primary:hover {
    background: var(--green-500);
}

.btn-secondary {
    color: var(--green-900);
    background: #e8dfcb;
}

.btn-danger {
    color: var(--white);
    background: var(--red);
}

.button-row,
.admin-nav {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.legend {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0.75rem 0;
}

.swatch {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    display: inline-block;
    margin-right: 0.25rem;
    vertical-align: middle;
}

.swatch.available {
    background: #44a353;
}

.swatch.pending {
    background: var(--amber);
}

.swatch.booked {
    background: var(--red);
}

.map-shell {
    position: relative;
    width: 100%;
    max-width: 1200px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid rgba(18, 53, 36, 0.2);
    background: #d6d7cb;
}

.map-shell img {
    display: block;
    width: 100%;
    height: auto;
}

.map-shell svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.plot-rect {
    stroke: #112e20;
    stroke-width: 1;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.plot-rect:hover {
    opacity: 0.85;
}

.plot-available {
    fill: rgba(68, 163, 83, 0.6);
}

.plot-pending {
    fill: rgba(211, 159, 36, 0.65);
}

.plot-booked {
    fill: rgba(159, 47, 47, 0.65);
}

.plot-selected {
    stroke-width: 3;
    stroke: #ffffff;
}

.tooltip {
    position: absolute;
    z-index: 30;
    background: rgba(15, 40, 28, 0.94);
    color: #fff;
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    font-size: 0.85rem;
    pointer-events: none;
    max-width: 230px;
}

.hidden {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 50;
}

.modal.hidden {
    display: none;
}

.logo-image {
    width: 220px;
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    display: block;
}

.logo-home-centered {
    margin-left: auto;
    margin-right: auto;
}

.modal-card {
    background: #fffdf8;
    width: min(540px, 96%);
    border-radius: var(--radius);
    padding: 1rem;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 0.75rem;
    top: 0.55rem;
    border: none;
    background: transparent;
    font-size: 1.7rem;
    cursor: pointer;
}

.form-group {
    margin-bottom: 0.75rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.55rem;
    border-radius: 8px;
    border: 1px solid rgba(18, 53, 36, 0.25);
    background: #fff;
}

.form-message {
    min-height: 1.3rem;
    margin-top: 0.65rem;
}

.success {
    color: #1d6a2e;
}

.error {
    color: #941f1f;
}

.table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 960px;
    background: #fff;
}

.admin-table th,
.admin-table td {
    border: 1px solid rgba(18, 53, 36, 0.15);
    padding: 0.45rem;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    background: #efe5cf;
}

.admin-table input,
.admin-table select {
    width: 100%;
    min-width: 88px;
}

.inline-form {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    align-items: end;
    background: #fff;
    padding: 0.8rem;
    border-radius: var(--radius);
    border: 1px solid rgba(18, 53, 36, 0.1);
    margin-bottom: 1rem;
}

.action-cell {
    display: flex;
    gap: 0.35rem;
}

.stats-grid {
    margin: 1rem 0 2rem;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.editor-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1rem;
}

.nudge-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem;
    margin-bottom: 0.45rem;
}

@media (max-width: 900px) {
    .hero-grid,
    .editor-grid {
        grid-template-columns: 1fr;
    }

    .brand {
        font-size: 0.95rem;
    }

    .header-logo {
        width: 58px;
        height: 58px;
    }
}
