/* StayEazy — main stylesheet */
:root {
  --ink: #1b2a29;
  --ink-soft: #4c5d5b;
  --muted: #6b7a78;
  --line: #e2ddd3;
  --bg: #fbf9f5;
  --sand: #f3ede2;
  --white: #fff;
  --brand: #0f4c4a;
  --brand-dark: #0a3634;
  --brand-tint: #e3efed;
  --accent: #e2683c;
  --accent-dark: #c8552c;
  --success: #1f7a4d;
  --success-bg: #e4f4ea;
  --error: #a3341b;
  --error-bg: #fbe7e1;
  --warn: #8a5a00;
  --warn-bg: #fdf1d6;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(20, 40, 38, .05), 0 8px 24px rgba(20, 40, 38, .07);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Fraunces', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3, .h3 { font-size: 1.15rem; font-weight: 700; font-family: var(--font); }
p { margin: 0 0 1em; }
code { background: var(--sand); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.narrow-sm { max-width: 480px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--accent); margin-bottom: .6em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; background: var(--brand); color: #fff; border: 1.5px solid var(--brand);
  padding: .75em 1.4em; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, transform .1s; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-accent { background: var(--accent); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--brand); }
.btn-outline:hover { background: var(--brand-tint); color: var(--brand); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--sand); color: var(--ink); border-color: transparent; }
.btn-danger { background: var(--error); border-color: var(--error); }
.btn-danger:hover { background: #7f2612; border-color: #7f2612; }
.btn-sm { padding: .45em 1em; font-size: .9rem; }
.btn-block { width: 100%; }
.link-arrow { font-weight: 700; text-decoration: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 249, 245, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: .5em; text-decoration: none; color: var(--brand); font-family: var(--serif); font-weight: 600; font-size: 1.4rem; }
.logo svg { width: 28px; height: 28px; color: var(--accent); }
.logo-light { color: #fff; }
.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a { text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.main-nav a:hover, .main-nav a.active { color: var(--brand); }
.main-nav a.btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg);
    border-bottom: 1px solid var(--line); padding: 8px 20px 18px; display: none; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav a.btn { margin-top: 12px; border-bottom: 0; }
}

/* Hero */
.hero { background:
    radial-gradient(1200px 500px at 85% -10%, rgba(226, 104, 60, .18), transparent 60%),
    linear-gradient(160deg, #0f4c4a 0%, #13615e 55%, #1c7a74 100%);
  color: #fff; padding: 88px 0 110px; position: relative; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; background: var(--bg);
  clip-path: ellipse(70% 100% at 50% 100%); }
.hero-copy { max-width: 640px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); color: #fff; }
.hero h1 em { font-style: italic; color: #ffc8a8; }
.hero .lead { color: rgba(255, 255, 255, .85); }
.hero .eyebrow { color: #ffc8a8; }

.search-bar { position: relative; z-index: 2; margin-top: 36px; background: #fff; border-radius: 22px; padding: 10px; display: grid;
  grid-template-columns: 1.6fr 1fr 1fr .7fr auto; gap: 6px; box-shadow: 0 20px 50px rgba(0, 0, 0, .18); color: var(--ink); }
.search-bar .field { display: flex; flex-direction: column; padding: 8px 14px; border-radius: 14px; }
.search-bar .field:hover { background: var(--bg); }
.search-bar .field span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.search-bar input { border: 0; padding: 4px 0; font: inherit; background: transparent; outline: none; width: 100%; min-width: 0; }
.search-bar .btn { border-radius: 14px; padding: 0 28px; }
@media (max-width: 900px) {
  .search-bar { grid-template-columns: 1fr 1fr; }
  .search-bar .field:first-child { grid-column: 1 / -1; }
  .search-bar .btn { grid-column: 1 / -1; padding: 14px; }
}

/* Sections */
.section { padding: 64px 0; }
.section-tight { padding: 32px 0 64px; }
.section-sand { background: var(--sand); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.page-head { padding: 48px 0 8px; }
.page-head h1 { margin-bottom: .25em; }

/* Stay cards */
.stay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 28px; }
.stay-grid-2 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.stay-card { text-decoration: none; color: inherit; display: block; }
.stay-card-img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.stay-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.stay-card:hover .stay-card-img img { transform: scale(1.04); }
.chip { position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, .94); padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; color: var(--ink); }
.stay-card-body { padding: 12px 2px 0; }
.stay-card-loc { font-size: .85rem; color: var(--muted); font-weight: 600; }
.stay-card h3 { margin: 2px 0 4px; font-size: 1.08rem; }
.stay-card-meta { font-size: .88rem; color: var(--ink-soft); }
.stay-card-price { margin-top: 6px; }
.stay-card-price strong { font-size: 1.05rem; }
.stay-card-price span { color: var(--muted); font-size: .9rem; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.feature-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.2rem; margin-bottom: 14px; }
.feature p { color: var(--ink-soft); margin: 0; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; gap: 24px; } }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--brand-tint);
  border-radius: 22px; padding: 36px 40px; }
.cta h2 { font-size: 1.6rem; margin-bottom: .2em; }
.cta p { margin: 0; }

/* Cards & forms */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.form-card { display: grid; gap: 14px; }
.field-block { display: flex; flex-direction: column; gap: 5px; font-size: .88rem; font-weight: 700; color: var(--ink-soft); }
input, select, textarea { font: inherit; color: var(--ink); }
.field-block input, .field-block select, .field-block textarea, .input {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-weight: 500; font-size: 1rem; }
.field-block input:focus, .field-block select:focus, .field-block textarea:focus, .input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 76, 74, .12); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .two-col { grid-template-columns: 1fr; } }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.check input { margin-top: 4px; accent-color: var(--brand); }
.form-error { color: var(--error); font-size: .88rem; font-weight: 600; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-weight: 500; }
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-error { background: var(--error-bg); color: var(--error); }
.alert-info { background: var(--brand-tint); color: var(--brand); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }

/* Search results */
.results-layout { display: grid; grid-template-columns: 290px 1fr; gap: 32px; align-items: start; }
.filters { position: sticky; top: 90px; display: grid; gap: 12px; }
.filters h3 { margin: 0; }
.reset-link { font-size: .88rem; text-align: center; }
.empty { text-align: center; padding: 48px 24px; }
@media (max-width: 860px) { .results-layout { grid-template-columns: 1fr; } .filters { position: static; } }

/* Stay page */
.back-link { display: inline-block; margin-bottom: 14px; text-decoration: none; font-weight: 600; font-size: .9rem; }
.stay-title h1 { margin-bottom: .1em; }
.gallery { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 8px;
  border-radius: 18px; overflow: hidden; margin: 18px 0 32px; }
.gallery-item { border: 0; padding: 0; cursor: zoom-in; background: var(--sand); overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.gallery-item:hover img { opacity: .9; }
.gallery-main { grid-row: 1 / 3; }
.gallery-4 .gallery-item:nth-child(4) { grid-column: span 2; }
.gallery-3 { grid-template-columns: 2fr 1fr; }
.gallery-simple { grid-template-columns: 1fr; grid-template-rows: 420px; }
.gallery-simple .gallery-item:not(.gallery-main) { display: none; }
.gallery-all { position: absolute; right: 14px; bottom: 14px; background: #fff; border: 1px solid var(--ink); border-radius: 9px; padding: 7px 14px; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr; grid-template-rows: 280px; }
  .gallery-item:not(.gallery-main) { display: none; }
  .gallery-main { grid-row: auto; }
}

.stay-layout { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.stay-main > .h3 { margin-top: 36px; }
.stay-facts { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.prose { color: var(--ink-soft); }
.prose ul { padding-left: 1.2em; }
.amenities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
.amenities li::before { content: '✓'; color: var(--brand); font-weight: 800; margin-right: 10px; }
.plain-list { padding-left: 1.1em; margin: 0; color: var(--ink-soft); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 12px; }
.info-grid .h3 { margin-top: 24px; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 320px; }
.map iframe { width: 100%; height: 100%; border: 0; }

.booking-card { position: sticky; top: 90px; }
.booking-price { font-size: 1.05rem; margin-bottom: 14px; }
.booking-price strong { font-size: 1.6rem; font-family: var(--serif); }
.booking-price span { color: var(--muted); }
.booking-card form { display: grid; gap: 12px; }
.date-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.date-pair input { padding-left: 8px; padding-right: 6px; font-size: .95rem; }
.quote { background: var(--bg); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .95rem; }
.quote > div { display: flex; justify-content: space-between; padding: 3px 0; }
.quote-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px !important; font-weight: 800; }
.guest-fields { display: grid; gap: 12px; padding-top: 6px; border-top: 1px dashed var(--line); }
@media (max-width: 960px) {
  .stay-layout { grid-template-columns: 1fr; }
  .booking-card { position: static; }
}
@media (max-width: 520px) { .amenities, .info-grid { grid-template-columns: 1fr; } }

/* Calendar */
.calendar { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative; }
.cal-month h4 { text-align: center; margin: 4px 0 12px; font-size: 1rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-dow { font-size: .72rem; font-weight: 700; color: var(--muted); padding-bottom: 4px; }
.cal-day { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; font-size: .9rem; border: 0; background: none; font: inherit; cursor: pointer; color: var(--ink); }
.cal-day:hover:not(:disabled) { outline: 1.5px solid var(--ink); }
.cal-day:disabled { color: #b9c1bf; cursor: default; }
.cal-day.booked { text-decoration: line-through; }
.cal-day.in-range { background: var(--brand-tint); border-radius: 0; }
.cal-day.selected { background: var(--brand); color: #fff; }
.cal-nav { position: absolute; top: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 1.1rem; }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-prev { left: 14px; } .cal-next { right: 14px; }
@media (max-width: 640px) { .calendar { grid-template-columns: 1fr; } .cal-month + .cal-month { display: none; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(10, 18, 17, .94); z-index: 100; display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; font-size: 1.8rem; line-height: 1; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-nav.prev { left: 18px; } .lightbox-nav.next { right: 18px; }

/* Booking confirmation */
.confirm-head { margin-bottom: 24px; }
.booking-summary { padding: 0; overflow: hidden; }
.summary-stay { display: flex; gap: 16px; align-items: center; padding: 18px; border-bottom: 1px solid var(--line); }
.summary-stay img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; }
.summary-stay h2 { margin: 0; }
.summary-stay p { margin: 0; }
.summary-list { margin: 0; padding: 8px 18px 14px; }
.summary-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.summary-list > div:last-child { border-bottom: 0; }
.summary-list dt { color: var(--muted); }
.summary-list dd { margin: 0; text-align: right; }
.summary-total { font-weight: 800; font-size: 1.05rem; }
.summary-total dt { color: var(--ink); }
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 14px; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.badge-confirmed { background: var(--success-bg); color: var(--success); }
.badge-request { background: var(--warn-bg); color: var(--warn); }
.badge-pending { background: var(--brand-tint); color: var(--brand); }
.badge-cancelled { background: #eee; color: #666; }

.contact-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.contact-info p { margin-bottom: 14px; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: #0b2f2e; color: rgba(255, 255, 255, .78); padding: 56px 0 24px; margin-top: 40px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-grid a, .footer-grid span { display: block; color: rgba(255, 255, 255, .78); text-decoration: none; margin-bottom: 8px; word-break: break-word; }
.footer-grid a:hover { color: #fff; }
.muted-light { color: rgba(255, 255, 255, .6); max-width: 320px; margin-top: 14px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 20px; font-size: .85rem; color: rgba(255, 255, 255, .5); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Admin ---------- */
.admin-body { background: #f4f2ee; }
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.admin-side { background: #0b2f2e; color: #fff; padding: 22px 16px; position: sticky; top: 0; height: 100vh; }
.admin-side .logo { color: #fff; margin: 0 8px 28px; font-size: 1.25rem; }
.admin-side nav a { display: flex; justify-content: space-between; align-items: center; color: rgba(255, 255, 255, .75); text-decoration: none; padding: 10px 12px; border-radius: 9px; font-weight: 600; font-size: .95rem; margin-bottom: 2px; }
.admin-side nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.admin-side nav a.active { background: rgba(255, 255, 255, .12); color: #fff; }
.admin-side .count { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 8px; font-size: .75rem; }
.admin-side .side-foot { position: absolute; bottom: 20px; left: 16px; right: 16px; font-size: .85rem; color: rgba(255, 255, 255, .55); }
.admin-side .side-foot a { color: rgba(255, 255, 255, .8); }
.admin-main { padding: 28px 32px 60px; min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-top h1 { font-size: 1.8rem; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat span { color: var(--muted); font-size: .85rem; font-weight: 600; }
.stat strong { display: block; font-size: 1.7rem; font-family: var(--serif); margin-top: 2px; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #faf8f4; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fcfbf8; }
.table .thumb { width: 64px; height: 46px; object-fit: cover; border-radius: 6px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs a { text-decoration: none; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-soft); font-weight: 600; font-size: .88rem; }
.tabs a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.admin-form { display: grid; gap: 16px; }
.admin-form .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.admin-form .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.admin-cols { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.admin-cols > div { display: grid; gap: 20px; }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.img-tile { position: relative; border-radius: 9px; overflow: hidden; aspect-ratio: 4/3; background: var(--sand); }
.img-tile img { width: 100%; height: 100%; object-fit: cover; }
.img-tile .img-actions { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; }
.img-tile button { border: 0; border-radius: 6px; background: rgba(0, 0, 0, .65); color: #fff; font-size: .75rem; padding: 3px 7px; cursor: pointer; }
.img-tile .cover-tag { position: absolute; left: 6px; bottom: 6px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.date-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.date-chips form { display: inline; }
.date-chips button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 3px 10px; font-size: .82rem; cursor: pointer; }
.date-chips button:hover { border-color: var(--error); color: var(--error); }
.toggle { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; }
.toggle input { width: 18px; height: 18px; accent-color: var(--brand); }
.inline-form { display: inline; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(160deg, #0f4c4a, #1c7a74); }
.login-card { width: 100%; max-width: 400px; }
.login-card .logo { margin-bottom: 18px; }
@media (max-width: 960px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; padding: 14px; }
  .admin-side .logo { margin-bottom: 10px; }
  .admin-side nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .admin-side .side-foot { position: static; margin-top: 10px; }
  .admin-main { padding: 20px 16px 48px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .admin-cols, .admin-form .grid-3, .admin-form .grid-4 { grid-template-columns: 1fr 1fr; }
  .admin-cols { grid-template-columns: 1fr; }
}

/* Let grid/flex children shrink so date inputs never overflow */
input[type=date] { min-width: 0; max-width: 100%; }
.search-bar > *, .two-col > *, .date-pair > *, .admin-cols > *, .admin-form [class^=grid-] > * { min-width: 0; }
.admin-cols { grid-template-columns: minmax(0, 1fr) 360px; }
