/* Light, sunny theme for everyone — photos carry the mood, so no dark mode. */
:root {
  --bg: #fbf8f3;
  --card: #ffffff;
  --ink: #1d2b33;
  --muted: #66727a;
  --line: #ebe4d8;
  --accent: #d2552c;
  --accent-ink: #ffffff;
  --sea: #0f7c8c;
  --soft: #fdf0e7;
  color-scheme: only light; /* "only" also opts out of Chrome's forced dark mode */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 76px; } /* keep anchor targets clear of the sticky header */
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 Inter, system-ui, -apple-system, sans-serif; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: Fraunces, Georgia, serif; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
h2 { font-size: 1.4rem; }
h4 { font-size: 1rem; margin-top: 1.2em; }
a { color: var(--accent); }
p { margin: 0 0 1em; }
/* Content uses the screen up to 1440px; side padding grows from 16px on phones to 56px on monitors. */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 56px); }
.card > p, .season > p { max-width: 85ch; } /* keep running text at a readable line length */
.muted { color: var(--muted); }
.small { font-size: .85em; font-weight: 400; }

/* header */
.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 6px; font-family: Fraunces, serif; font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.logo img { display: block; }
.logo em { font-style: normal; color: var(--accent); }
.top nav { display: flex; align-items: center; gap: 16px; font-size: .92rem; }
.top nav a { color: var(--ink); text-decoration: none; }
.country { color: var(--muted); display: flex; align-items: center; gap: 6px; }
select { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }

/* photo heroes */
.phero { position: relative; overflow: hidden; color: #fff; min-height: 320px; display: flex; align-items: flex-end; background: #1d4a55; }
.phero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 25, 32, .78) 0%, rgba(10, 25, 32, .35) 45%, rgba(10, 25, 32, .05) 100%); }
.phero-in { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 28px; width: 100%; }
.phero h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, .35); margin-bottom: .2em; }
.phero .crumbs, .phero .crumbs a, .phero .eyebrow { color: rgba(255, 255, 255, .88); }
.phero .crumbs { margin: 0 0 10px; }
.phero.home { min-height: min(78vh, 620px); align-items: center; }
.phero.home .phero-in { padding-bottom: 90px; }
.phero.home h1 { max-width: 14ch; font-size: clamp(2.2rem, 6vw, 3.6rem); }
.phero.home p { max-width: 50ch; font-size: 1.15rem; margin: 0; text-shadow: 0 1px 10px rgba(0, 0, 0, .4); }
.phero.home::after { background: linear-gradient(100deg, rgba(10, 25, 32, .62) 0%, rgba(10, 25, 32, .25) 55%, rgba(10, 25, 32, 0) 100%); }
.phero.home > img { animation: drift 28s ease-in-out infinite alternate; transform-origin: 60% 50%; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.12) translateX(-1.5%); } }
@media (prefers-reduced-motion: reduce) { .phero.home > img { animation: none; } }
.phero.home + main .picker { margin-top: -56px; position: relative; z-index: 2; box-shadow: 0 12px 40px rgba(20, 40, 50, .14); }

/* cards & layout */
main { padding-bottom: 48px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin: 20px 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.two > * { margin: 20px 0 0; }
.two > div > .tip-box { margin-top: 0; }
.two3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0; }
@media (max-width: 760px) { .two, .two3 { grid-template-columns: 1fr; gap: 0; } .two3 > div { margin-bottom: 16px; } }

.crumbs { font-size: .85rem; color: var(--muted); margin: 18px 0 0; }
.crumbs a { color: var(--muted); }
.dest-head { margin: 18px 0 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--muted); margin-bottom: .4em; }
.lead { font-size: 1.08rem; max-width: 85ch; }

/* picker */
.picker form { display: flex; gap: 10px; flex-wrap: wrap; }
.picker select { flex: 1 1 180px; padding: 12px; font-size: 1rem; }
.btn { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 10px; padding: 12px 18px; font: 600 1rem Inter, sans-serif; cursor: pointer; flex: 1 1 200px; }

/* destination grid */
.sec-title { margin-top: 32px; }
.dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
@media (max-width: 520px) { .dest-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.dest { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
.dest img { width: 100%; height: auto; aspect-ratio: 16 / 10.5; object-fit: cover; display: block; background: #d9e6e8; }
.dest:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(20, 40, 50, .12); }
.dtext { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; }
.dname { font-weight: 600; font-size: 1.05rem; }
.dblurb { font-size: .85rem; color: var(--muted); }

/* month grid */
.month-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
@media (min-width: 1100px) { .month-grid { grid-template-columns: repeat(12, 1fr); } }
@media (max-width: 600px) { .month-grid { grid-template-columns: repeat(4, 1fr); } }
.mcell { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--bg); }
.mcell:hover, .mcell.on { border-color: var(--accent); background: var(--soft); }
.mname { font-weight: 600; }
.mtemp { font-size: 1.15rem; }
.mseason { font-size: .7rem; color: var(--muted); text-align: center; }

/* facts */
.facts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 12px 0 18px; }
@media (max-width: 700px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.facts > div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.facts .k { display: block; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.facts .v { font-weight: 600; }

/* items */
.gender-tabs { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin: 4px 0 12px; }
.gender-tabs button { font: 500 .92rem Inter, sans-serif; border: 0; background: none; color: var(--muted); padding: 6px 16px; border-radius: 999px; cursor: pointer; }
.gender-tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.items { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.items a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--bg); height: 100%; }
.items a:hover { border-color: var(--accent); }
.go { font-size: .78rem; color: var(--accent); white-space: nowrap; font-weight: 600; }
html:not([data-gender="men"]) .items[data-g="men"], html[data-gender="men"] .items[data-g="women"] { display: none; }

/* country-specific content */
.only-IN, .only-US, .only-UK { display: none; }
html[data-country="IN"] .only-IN, html[data-country="US"] .only-US, html[data-country="UK"] .only-UK { display: block; }
html[data-country="IN"] span.only-IN { display: inline; }
html[data-country="IN"] .not-IN { display: none; }
.note-in { font-size: .85rem; color: var(--muted); margin: 10px 0 0; }
.link-btn { background: none; border: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

.tip-box { background: var(--soft); border-radius: 16px; padding: 18px 20px; margin: 20px 0 0; }
.tip-box p { margin: .3em 0 0; }
.plug { font-size: .92rem; margin: 12px 4px 0; }
.rules { padding-left: 1.1em; margin: 0; }
.rules li { margin-bottom: .45em; }

/* month pages: source, day/evening, events */
.phero .byline { color: rgba(255, 255, 255, .8); font-size: .85rem; margin: .4em 0 0; }
.src { font-size: .8rem; color: var(--muted); margin: -8px 0 14px; }
.src a { color: var(--muted); }
.daynight { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 0; }
.daynight > div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.daynight .k { display: block; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.daynight p { margin: 0; }
@media (max-width: 600px) { .daynight { grid-template-columns: 1fr; } }
.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 14px; }
.event { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.event p { margin-bottom: .6em; }
.event h3 { font-size: 1.12rem; margin-bottom: .15em; }
.event .when { font-size: .85rem; color: var(--sea); font-weight: 600; margin-bottom: .4em; }
.event .items { margin-top: 4px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.event .items a { background: var(--card); }

/* destination pages: activities, mistakes, year */
.acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.acts > div { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.acts h3 { font-size: 1.02rem; }
.acts p { margin: 0; font-size: .95rem; }
.mistakes { list-style: none; padding: 0; margin: 0; }
.mistakes li { position: relative; padding-left: 1.6em; margin-bottom: .55em; }
.mistakes li::before { content: "✕"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.year { list-style: none; padding: 0; margin: 0; }
.year li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.year li:last-child { border-bottom: 0; }
.year a { font-weight: 600; text-decoration: none; }
.year span { color: var(--muted); font-size: .92rem; }
@media (max-width: 520px) { .year li { grid-template-columns: 1fr; gap: 0; } }

.pager { display: flex; justify-content: space-between; gap: 10px; margin: 24px 0; flex-wrap: wrap; }
.pager a { padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); text-decoration: none; }
.elsewhere { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 24px; }
.elsewhere li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: 6px 0; }
.elsewhere span { color: var(--muted); font-size: .85rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--bg); }

.prose { max-width: 760px; margin-left: auto; margin-right: auto; }
.foot { border-top: 1px solid var(--line); padding: 28px 0; background: var(--card); }
.foot p { margin: 0 0 .5em; }

/* phones: keep the header on one row */
@media (max-width: 520px) {
  .top nav > a { display: none; }
  .country { font-size: 0; gap: 0; }
  .country select { font-size: .9rem; }
}
