/* Road Trip From Bengal — public site
   Palette taken from the badge: ink, signal red, glacier blue, snow. */
:root {
  --ink: #1f2428;
  --red: #a5312a;
  --glacier: #6e9cbf;
  --snow: #eef2f4;
  --paper: #ffffff;
  --sand: #d8c9a8;
  --line: #cfd8de;
  --muted: #5b6670;
  --wa: #1f8f4e;
  --display: 'Alfa Slab One', 'Rockwell', 'Roboto Slab', Georgia, serif;
  --body: 'Barlow', 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--body); color: var(--ink); background: var(--snow); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--glacier); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.empty { background: var(--paper); border: 1px dashed var(--line); padding: 24px; border-radius: 6px; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 1rem/1.2 var(--body); padding: 11px 18px; border-radius: 4px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.btn-lg { padding: 14px 22px; font-size: 1.05rem; }
.btn-sm { padding: 8px 14px; font-size: .95rem; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #fff; color: var(--red); border-color: var(--red); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #fff; color: var(--wa); border-color: var(--wa); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-ghost-dark { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost-dark:hover { background: var(--ink); color: #fff; }

/* Header */
.site-head { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 4px solid var(--red); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-family: var(--display); font-size: 1.2rem; }
.brand img { width: 52px; height: 52px; border-radius: 50%; background: #fff; }
.brand:hover { color: var(--sand); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) { color: #e7ecef; text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 4px; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current] { color: #fff; background: rgba(255,255,255,.1); }
.site-nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--glacier); }
.site-nav .btn { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 2px solid rgba(255,255,255,.6); color: #fff; font: 600 .95rem var(--body); padding: 8px 14px; border-radius: 4px; }

/* Hero */
.hero { position: relative; background: var(--ink); color: #fff; padding: 72px 0 120px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 20%, rgba(110,156,191,.35), transparent 60%); }
.hero.has-photo::before { background: linear-gradient(100deg, rgba(20,24,28,.92) 30%, rgba(20,24,28,.45)), var(--hero-img) center/cover no-repeat; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 14ch; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.lede { font-size: 1.2rem; max-width: 52ch; color: inherit; opacity: .92; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-badge { width: min(380px, 100%); justify-self: center; transform: rotate(-6deg); filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); animation: badge-in .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes badge-in { from { transform: rotate(-18deg) scale(.85); opacity: 0; } to { transform: rotate(-6deg) scale(1); opacity: 1; } }
.ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 110px; fill: var(--snow); }

/* Odometer strip */
.odometer { margin-top: -30px; position: relative; z-index: 2; }
.odo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.odo-row div { background: var(--paper); border: 2px solid var(--ink); border-radius: 6px; padding: 10px 18px; display: flex; align-items: baseline; gap: 10px; box-shadow: 4px 4px 0 var(--ink); }
.odo-row b { font-family: var(--display); font-weight: 400; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.odo-row span { color: var(--muted); font-weight: 600; }

/* Blocks */
.block { padding: 56px 20px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.block-head a { font-weight: 600; }
.prose { max-width: 68ch; font-size: 1.1rem; }
.prose img { border-radius: 6px; margin: 1em 0; }
.about { border-bottom: 2px dashed var(--line); }
.custom-section.with-image { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.custom-section img { border-radius: 8px; }
.page-head { background: var(--ink); color: #fff; padding: 48px 0 40px; border-bottom: 6px solid var(--glacier); }
.page-head h1 { margin-bottom: .2em; }
.page-head .lede { margin: 0; }

/* Trips */
.trip-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.trip { background: var(--paper); border-left: 6px solid var(--red); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.trip img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.trip-body { padding: 18px 20px 22px; }
.trip-date { font-weight: 700; color: var(--red); margin-bottom: .3em; }
.trip-dest { color: var(--muted); font-weight: 600; margin-top: -.3em; }
.trip-list.past .trip { border-left-color: var(--line); opacity: .85; }

/* Community */
.community { background: var(--paper); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); padding: 64px 0; }
.community-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.join-card { border: 2px solid var(--ink); border-radius: 6px; padding: 22px; margin-bottom: 18px; background: var(--snow); }
.join-card.wa { border-color: var(--wa); }
.join-card h3 { margin-bottom: .3em; }
.fb-frame { width: 100%; max-width: 500px; display: block; margin: 0 auto; background: var(--snow); border-radius: 6px; }
.fb-extra { margin-top: 20px; display: grid; gap: 16px; justify-items: center; }
.fb-extra iframe { max-width: 100%; }
.fb-placeholder { border: 2px dashed var(--line); border-radius: 6px; padding: 32px; text-align: center; }

/* Gallery */
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.photo-strip figure, .gallery-grid figure { margin: 0; position: relative; }
.photo-strip img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 4px; }
.photo-strip figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; color: #fff; font-size: .9rem; background: linear-gradient(transparent, rgba(0,0,0,.7)); border-radius: 0 0 4px 4px; }
.gallery-grid { columns: 3 280px; column-gap: 14px; }
.gallery-grid figure { break-inside: avoid; margin-bottom: 14px; background: var(--paper); border-radius: 4px; overflow: hidden; }
.gallery-grid figcaption { padding: 8px 12px; font-size: .95rem; }

/* Hotels */
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; align-items: end; background: var(--paper); border: 2px solid var(--ink); border-radius: 6px; padding: 16px; scroll-margin-top: 90px; }
.filters label span { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.filters input, .filters select { width: 100%; font: 500 1rem var(--body); padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); }
.filters input:focus, .filters select:focus { border-color: var(--glacier); outline: none; box-shadow: 0 0 0 3px rgba(110,156,191,.3); }
.h-info { font-weight: 700; margin: 18px 0 10px; }
.table-scroll { overflow-x: auto; background: var(--paper); border-radius: 6px; border: 1px solid var(--line); }
.hotel-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.hotel-table th { background: var(--ink); color: #fff; text-align: left; padding: 12px 14px; font-weight: 700; white-space: nowrap; position: sticky; top: 0; }
.hotel-table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.hotel-table tbody tr:nth-child(even) { background: #f7f9fa; }
.hotel-table tbody tr:hover { background: #eaf1f7; }
.hotel-table .c-notes, .hotel-table .c-address { min-width: 200px; }
.hotel-table .no-rows td { text-align: center; padding: 32px; color: var(--muted); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 20px 0; }
.pager button { font: 600 .95rem var(--body); min-width: 42px; padding: 8px 12px; border: 1.5px solid var(--line); background: #fff; border-radius: 4px; cursor: pointer; color: var(--ink); }
.pager button[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager button:disabled { opacity: .4; cursor: default; }
.pager span { padding: 8px 4px; }

/* Footer */
.site-foot { position: relative; background: var(--ink); color: #cfd6db; margin-top: 80px; padding: 30px 0 24px; }
.ridge-foot { position: absolute; top: -88px; left: 0; width: 100%; height: 90px; fill: var(--ink); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot-name { font-family: var(--display); color: #fff; font-size: 1.4rem; margin-bottom: .3em; }
.foot-tag { color: var(--sand); font-weight: 600; margin-top: -.2em; }
.foot-text { max-width: 48ch; }
.foot-h { color: #fff; font-weight: 700; margin-bottom: .4em; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links li { margin-bottom: 6px; }
.foot-links a { color: #cfd6db; }
.foot-links a:hover { color: #fff; }
.foot-base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 16px; font-size: .9rem; }
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.3); z-index: 60; }
.wa-float:hover { color: #fff; transform: scale(1.06); }

/* Responsive */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: stretch; padding: 10px 20px 20px; border-bottom: 4px solid var(--red); }
  .nav-open .site-nav { display: flex; }
  .site-nav .btn { margin: 10px 0 0; }
  .hero { padding: 48px 0 110px; }
  .hero-grid, .community-grid, .custom-section.with-image { grid-template-columns: 1fr; }
  .hero-badge { width: 220px; grid-row: 1; justify-self: start; }
  .filters { grid-template-columns: 1fr 1fr; }
  .f-search { grid-column: 1 / -1; }
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 680px) {
  .brand span { font-size: 1rem; }
  .block { padding: 40px 20px; }
  /* Table becomes stacked cards on phones */
  .table-scroll { background: none; border: 0; }
  .hotel-table thead { display: none; }
  .hotel-table, .hotel-table tbody, .hotel-table tr, .hotel-table td { display: block; width: 100%; }
  .hotel-table tr { background: var(--paper) !important; border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: 6px; margin-bottom: 12px; padding: 8px 0; }
  .hotel-table td { border: 0; padding: 5px 14px; display: grid; grid-template-columns: 90px 1fr; gap: 10px; }
  .hotel-table td::before { content: attr(data-label); font-weight: 700; color: var(--muted); font-size: .88rem; }
  .hotel-table td.c-hotel_name { font-size: 1.1rem; }
  .hotel-table .no-rows td { display: block; }
  .hotel-table .no-rows td::before { content: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
