/* All Inside RV Storage — colours taken from the logo (blue + red). */
:root {
  --blue: #1f4e9e;
  --blue-dark: #163a78;
  --red: #d7262e;
  --ink: #1c2430;
  --muted: #5b6676;
  --line: #dde3ec;
  --bg: #ffffff;
  --soft: #f3f6fa;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--red); }
h1, h2, h3, h4, h5 { line-height: 1.25; color: var(--blue-dark); }
h5 { font-size: 1.15rem; margin: 1.6rem 0 .5rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

/* Header */
.top { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 10; }
.top-row { display: flex; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.brand img { display: block; width: 230px; height: auto; }
.call { margin-left: auto; font-weight: 700; text-decoration: none; color: var(--red); white-space: nowrap; }
.menu-btn { display: none; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 12px; font: inherit; }
#nav { display: flex; flex-wrap: wrap; gap: 4px 22px; padding-bottom: 10px; }
#nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; padding: 4px 0; border-bottom: 2px solid transparent; }
#nav a:hover, #nav a[aria-current] { color: var(--blue); border-color: var(--red); }

/* Hero */
.hero { background-size: cover; background-position: center; position: relative; color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,32,66,.88), rgba(14,32,66,.45)); }
.hero-inner { position: relative; padding-top: 72px; padding-bottom: 72px; max-width: 1120px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); margin: .2em 0; max-width: 16ch; }
.lede { font-size: 1.2rem; max-width: 40ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; margin: 0; color: #ffd3d5; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-block; background: var(--red); color: #fff; border: 2px solid var(--red); padding: 11px 20px; border-radius: 8px; font-weight: 700; text-decoration: none; font: inherit; font-weight: 700; cursor: pointer; }
.btn:hover { background: #b51d24; border-color: #b51d24; color: #fff; }
.btn.ghost { background: transparent; border-color: currentColor; color: inherit; }
.hero .btn.ghost { color: #fff; }
.btn.small { padding: 6px 14px; font-size: .9rem; }

/* Home */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin: 40px 0; }
.features > div { background: var(--soft); border-radius: var(--radius); padding: 18px 20px; border-top: 4px solid var(--blue); }
.features h3 { margin: 0 0 6px; }
.features p { margin: 0; color: var(--muted); }
.split { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: start; margin: 20px 0 40px; }
.card { background: var(--soft); border-radius: var(--radius); padding: 20px 22px; border: 1px solid var(--line); }
.card h3 { margin-top: 0; }
.card hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.wide-photo { margin: 0 0 48px; }
.wide-photo img { width: 100%; border-radius: var(--radius); }

/* Content pages */
.page { max-width: 900px; margin: 32px auto 56px; }
.page h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: .4em; }
.content img { border-radius: 6px; margin: 6px 0; }
.content iframe { width: 100%; max-width: 100%; border: 0; border-radius: 6px; min-height: 420px; }
.content table, table.rates { border-collapse: collapse; width: 100%; margin: 8px 0 12px; }
.table-wrap { overflow-x: auto; }
table.rates th, table.rates td, .content td, .content th { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.rates th { background: var(--blue); color: #fff; font-weight: 600; }
table.rates td:not(:first-child), table.rates th:not(:first-child) { text-align: right; white-space: nowrap; }
table.rates tbody tr:nth-child(even) { background: var(--soft); }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; background: #fff; }
.post-card:hover { border-color: var(--blue); color: inherit; }
.post-card img, .post-card .noimg { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--soft); margin: 0; border-radius: 0; }
.post-card > div { padding: 12px 16px 16px; }
.post-card h3 { margin: 4px 0 6px; font-size: 1.1rem; }
.post-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Footer */
.foot { background: var(--blue-dark); color: #dfe7f5; padding: 32px 0; font-size: .95rem; }
.foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

/* Rate sheet (print) */
.sheet .wrap { max-width: 800px; padding-top: 20px; padding-bottom: 40px; }
@media print {
  .no-print { display: none; }
  body { font-size: 12pt; }
  table.rates th { background: #ddd !important; color: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Admin */
.admin main { padding-bottom: 60px; }
.admin-nav { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.admin-nav a { font-weight: 600; text-decoration: none; }
.admin-nav form { margin: 0; }
.linkish { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 0; }
.narrow { max-width: 380px; margin: 60px auto; }
label { display: block; margin: 0 0 12px; font-weight: 600; }
input, select { font: inherit; padding: 7px 9px; border: 1px solid #b9c3d3; border-radius: 6px; width: 100%; background: #fff; }
.inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.inline label { margin: 0; }
.inline input, .inline select { width: auto; }
table.edit { border-collapse: collapse; width: 100%; }
table.edit th { text-align: left; font-size: .85rem; color: var(--muted); padding: 4px 6px; }
table.edit td { padding: 4px 6px; }
table.edit input { min-width: 80px; }
table.edit input[type=checkbox] { width: auto; min-width: 0; }
table.edit .tiny, .tiny { width: 64px; min-width: 0; }
table.edit .wide { min-width: 280px; }
tr.new input { border-style: dashed; }
.flash { padding: 10px 14px; border-radius: 8px; }
.flash.ok { background: #e7f6ec; color: #155c2c; }
.flash.err { background: #fde8e9; color: #8a1419; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .brand img { width: 180px; }
  .call { font-size: .95rem; }
  .menu-btn { display: block; }
  #nav { display: none; flex-direction: column; gap: 0; }
  .nav-open #nav { display: flex; }
  #nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .split { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 48px; padding-bottom: 48px; }
  .admin-nav { width: 100%; margin: 6px 0 0; }
  .admin .top-row { flex-wrap: wrap; }
}

/* Local vendors */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; text-decoration: none; font-weight: 600; font-size: .95rem; }
.vendors section { scroll-margin-top: 120px; }
.vendor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.vendor-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); background: #fff; }
.vendor-card:hover { border-color: var(--blue); color: var(--blue); }
.vendor-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--soft); }
.vendor-card span { padding: 10px 12px; font-weight: 600; }
.vendor-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 16px; }
.vendor-photos img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.vendor-card .noimg { aspect-ratio: 16/9; display: grid; place-items: center; background: var(--soft); color: var(--muted); font-weight: 600; }
/* Admin vendor list + form */
textarea { font: inherit; padding: 7px 9px; border: 1px solid #b9c3d3; border-radius: 6px; width: 100%; }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
label.check input { width: auto; }
.admin-list td { vertical-align: middle; }
.admin-list td.th { width: 84px; }
.admin-list img { width: 72px; height: 44px; object-fit: cover; border-radius: 4px; display: block; }
.admin-list tr.is-hidden td { opacity: .55; }
.tag { font-size: .75rem; background: #eef1f6; border-radius: 4px; padding: 1px 6px; color: var(--muted); }
.current img { max-width: 220px; border-radius: 6px; border: 1px solid var(--line); display: block; margin-bottom: 6px; }
.btn.danger { color: #8a1419; border-color: #e3a3a6; }
.btn.danger:hover { background: #fde8e9; color: #8a1419; }
.content video { width: 100%; max-width: 900px; border-radius: 6px; background: #000; display: block; margin: 6px 0; }
/* Vendor category tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--blue); margin: 18px 0 20px; }
.tabs a { padding: 9px 16px; border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--soft); text-decoration: none; font-weight: 600; color: var(--ink); }
.tabs a:hover { color: var(--blue); background: #e8eef8; }
.tabs a[aria-current] { background: var(--blue); border-color: var(--blue); color: #fff; }
@media (max-width: 760px) { .tabs a { flex: 1 1 auto; text-align: center; padding: 8px 10px; font-size: .92rem; } }
