/*
Theme Name: India Travel
Description: Europe for Indian travellers. Starter theme: replace the tokens and templates with the real design.
Version: 0.1
*/
:root {
  --c-brand: #111111;
  --c-brand-dark: #111111;
  --c-ink: #111111;
  --c-terra: #99462a;
  --c-muted: #7a7a7a;
  --c-bg: #ffffff;
  --c-card: #ffffff;
  --c-line: #ececec;
  --c-star: #f5a623;
  --font-head: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1200px;
}
* { box-sizing: border-box; }
:where(img[width][height]) { height: auto; }   /* width/height attributes reserve the space; any class rule still decides the real height */
body { margin: 0; font-family: var(--font-body); color: var(--c-ink); background: var(--c-bg); line-height: 1.6; }
a { color: var(--c-brand); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.site-header { background: var(--c-card); }
.site-header .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 80px; }
.site-title { justify-self: start; font-size: 14px; font-weight: 700; letter-spacing: .04em; line-height: 1.2; text-transform: uppercase; color: var(--c-ink); text-decoration: none; max-width: 175px; }
.site-nav { justify-self: center; }
.nav-toggle, .search-toggle, .header-search { display: none; }
.header-tools { justify-self: end; display: flex; align-items: center; gap: 10px; }
.header-tools .tool { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--c-line); border-radius: 10px; padding: 0 8px; height: 38px; }
.header-tools .tool:hover, .header-tools .tool:focus-within { border-color: var(--c-ink); }
.header-tools .material-symbols-outlined { font-family: 'Material Symbols Outlined'; font-size: 18px; line-height: 1; font-feature-settings: 'liga'; color: var(--c-muted); }
.header-tools select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; font: inherit; font-size: 12px; font-weight: 500; color: var(--c-ink); padding: 0 4px; cursor: pointer; outline: none; }
.site-nav ul { list-style: none; display: flex; justify-content: center; gap: 20px; margin: 0; padding: 0; }
.site-nav a { font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif; color: #191d0e; text-decoration: none; font-weight: 400; font-size: 16px; transition: color .2s ease; }
.site-nav > ul > li > a:hover, .site-nav .current-menu-item > a { color: var(--c-terra); }
.site-nav li { position: relative; }
.site-nav .menu-item-has-children > a::after { content: ''; display: inline-block; margin-left: 6px; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.site-nav .sub-menu { display: none; position: absolute; top: 100%; left: -12px; z-index: 50; min-width: 250px; margin: 0; padding: 8px 0; flex-direction: column; gap: 0; background: var(--c-card); border: 1px solid var(--c-line); border-radius: 10px; box-shadow: 0 12px 28px rgba(0, 0, 0, .08); }
.site-nav .sub-menu a { display: block; padding: 12px 20px; font-size: 14px; font-weight: 500; color: #333; white-space: nowrap; }
.site-nav .sub-menu a:hover, .site-nav .sub-menu a:focus { background: #e8e5df; color: var(--c-terra); }
.site-nav .sub-menu .sub-menu { top: -9px; left: 100%; }
.site-nav .sub-menu .menu-item-has-children > a::after { float: right; margin-top: 8px; transform: rotate(-45deg); }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { display: flex; }
.site-footer { border-top: 1px solid var(--c-line); margin-top: 64px; padding: 32px 0; color: var(--c-muted); font-size: 14px; }
.hero { padding: 64px 0 32px; }
.hero h1, .page-title { font-family: var(--font-head); font-size: clamp(30px, 5vw, 48px); line-height: 1.15; margin: 0 0 12px; }
.lead { color: var(--c-muted); font-size: 18px; max-width: 680px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; margin: 32px 0; }
.card { background: var(--c-card); border: 1px solid var(--c-line); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; display: block; }
.card img { width: 100%; height: 180px; object-fit: cover; display: block; background: var(--c-line); }
.card .body { padding: 16px; }
.card h3 { margin: 0 0 4px; font-family: var(--font-head); font-size: 20px; }
.card .meta { color: var(--c-muted); font-size: 14px; }
.guide-hero img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 12px; }
.section { margin: 48px auto; }
.section h2 { font-family: var(--font-head); font-size: 28px; }
.badge { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--c-line); color: var(--c-brand-dark); }
@media (max-width: 767px) {
  .hero { padding: 40px 0 16px; } }

/* Overlay guide card (home + guides list) */
.gcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 32px 0; }
.gcard { position: relative; display: block; aspect-ratio: 4 / 4.6; border-radius: 16px; overflow: hidden; color: #fff; text-decoration: none; background: var(--c-line); }
.gcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gcard:hover img { transform: scale(1.04); }
.gcard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.25) 38%, rgba(0,0,0,0) 62%); }
.gcard-pill { position: absolute; z-index: 2; top: 14px; left: 14px; background: #fff; color: var(--c-ink); border-radius: 99px; padding: 5px 12px; font-size: 11px; font-weight: 500; }
.gcard-info { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 4px; }
.gcard-info strong { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.gcard-info small { font-size: 11px; opacity: .85; }
.gcard-info em { font-style: normal; font-size: 11px; margin-top: 4px; }
@media (max-width: 900px) { .gcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gcards { grid-template-columns: minmax(0, 1fr); } }

/* Indic scripts use their Noto family first (Inter has no glyphs for them); line-height is a little taller for the tall glyphs. */
html[lang^="hi"] body, html[lang^="mr"] body { font-family: 'Inter', 'Noto Sans Devanagari', system-ui, sans-serif; line-height: 1.7; }
html[lang^="gu"] body { font-family: 'Inter', 'Noto Sans Gujarati', system-ui, sans-serif; line-height: 1.7; }
html[lang^="ta"] body { font-family: 'Inter', 'Noto Sans Tamil', system-ui, sans-serif; line-height: 1.7; }
html[lang^="te"] body { font-family: 'Inter', 'Noto Sans Telugu', system-ui, sans-serif; line-height: 1.7; }
html[lang]:not([lang^="en"]) h1, html[lang]:not([lang^="en"]) h2 { letter-spacing: 0; line-height: 1.25; }

/* Popular vs beyond-the-classics sections (guides + itineraries lists) */
.tier { margin: 48px 0 8px; scroll-margin-top: 16px; }
.tier h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 500; letter-spacing: -.02em; margin: 0 0 8px; }
.tier-sub { max-width: 680px; margin: 0 0 4px; font-size: 14px; line-height: 1.7; color: var(--c-muted); }
.tier-other { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--c-line); }

/* Phones and tablets: the menu collapses behind a button; sub menus open on tap */
@media (max-width: 1279px) {
  /* menu button left, site title centred, search icon right; the search field, menu and tools open below */
  .site-header .wrap { grid-template-columns: 42px minmax(0, 1fr) 42px; grid-template-areas: "toggle brand search" "searchbar searchbar searchbar" "nav nav nav" "tools tools tools"; gap: 0 12px; min-height: 64px; align-items: center; }
  .site-title { grid-area: brand; justify-self: center; text-align: center; max-width: none; }
  .nav-toggle, .search-toggle { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--c-line); border-radius: 10px; background: #fff; color: var(--c-ink); cursor: pointer; padding: 0; }
  .nav-toggle { grid-area: toggle; }
  .search-toggle { grid-area: search; }
  .search-toggle .material-symbols-outlined { font-family: 'Material Symbols Outlined'; font-size: 24px; line-height: 1; font-feature-settings: 'liga'; }
  .search-open .header-search { display: block; grid-area: searchbar; padding: 0 0 12px; }
  .header-search input { width: 100%; height: 44px; border: 1px solid var(--c-line); border-radius: 10px; padding: 0 14px; font: inherit; font-size: 15px; background: #fff; }
  .nav-toggle .material-symbols-outlined { font-family: 'Material Symbols Outlined'; font-size: 24px; line-height: 1; font-feature-settings: 'liga'; }
  .site-nav, .header-tools { display: none; }
  .nav-open .site-nav { display: block; grid-area: nav; justify-self: start; width: min(260px, 100%); box-sizing: border-box; margin-top: 8px; padding: 2px 16px; background: var(--c-card); border: 1px solid var(--c-line); border-radius: 10px; box-shadow: 0 12px 28px rgba(0, 0, 0, .08); }
  .site-nav > ul > li:last-child > a { border-bottom: 0; }
  .nav-open .header-tools { display: flex; grid-area: tools; justify-self: start; padding: 14px 0 18px; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li > a { display: block; padding: 13px 0; border-bottom: 1px solid var(--c-line); font-size: 15px; }
  .site-nav .sub-menu, .site-nav .sub-menu .sub-menu { position: static; display: none; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 0 16px; min-width: 0; background: transparent; }
  .site-nav .sub-menu a { padding: 11px 0; font-size: 14px; white-space: normal; }
  .site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { display: none; }
  .site-nav li.open > .sub-menu { display: block; }
  .site-nav .menu-item-has-children > a::after { float: right; margin-top: 6px; }
  .site-nav .menu-item-has-children.open > a::after { transform: translateY(2px) rotate(-135deg); }
  .site-nav .sub-menu .menu-item-has-children > a::after { transform: translateY(-2px) rotate(45deg); margin-top: 6px; }
  .site-nav .sub-menu .menu-item-has-children.open > a::after { transform: translateY(2px) rotate(-135deg); }
}

/* Saved itineraries icon in the header */
.saved-trips { position: relative; }
.header-tools .saved-btn { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font: inherit; background: #fff; color: var(--c-terra); }
.saved-btn .material-symbols-outlined { font-size: 22px; font-variation-settings: 'FILL' 1; }
.saved-count { font-size: 11px; font-weight: 700; background: var(--c-terra); color: #fff; border-radius: 99px; min-width: 18px; height: 18px; display: inline-grid; place-items: center; padding: 0 5px; }
.saved-trips.on-saved .saved-btn { border-color: var(--c-terra); }
.saved-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 300px; background: #fff; border: 1px solid var(--c-line); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.14); padding: 14px 16px; }
.saved-panel[hidden] { display: none; }
.saved-panel strong { font-size: 13px; }
.saved-panel ul { list-style: none; margin: 8px 0 6px; padding: 0; }
.saved-panel li a { display: flex; flex-direction: column; padding: 9px 0; border-top: 1px solid var(--c-line); text-decoration: none; color: var(--c-ink); font-size: 14px; }
.saved-panel li:first-child a { border-top: 0; }
.saved-panel li a span { font-size: 12px; color: var(--c-muted); }
.saved-panel li a:hover strong { color: var(--c-terra); }
.saved-panel li a[aria-current] strong { color: var(--c-terra); }
@media (max-width: 1279px) { .saved-panel { right: auto; left: 0; } }
.header-tools .saved-btn .material-symbols-outlined { color: var(--c-terra); font-variation-settings: 'FILL' 1, 'wght' 400; }
.saved-panel p { font-size: 12px; line-height: 1.5; color: var(--c-muted); margin: 8px 0 0; }

/* Search results page */
.search-form { display: flex; gap: 10px; margin: 0 0 28px; max-width: 560px; }
.search-form input { flex: 1; min-width: 0; height: 44px; border: 1px solid var(--c-line); border-radius: 10px; padding: 0 14px; font: inherit; }
.search-list li a { display: flex; align-items: baseline; gap: 10px; }
.search-list li a .muted { margin: 0 auto 0 0; }
@media (max-width: 480px) { .site-header .site-title { font-size: 12px; letter-spacing: .02em; min-width: 0; overflow-wrap: anywhere; } }

/* A price inside running text stays in the sentence: description spans are display:block / line-clamped, so the price span must not become a block of its own */
:is(.acts, .ap-text, .picked-text, .rm-card, .pass-links, .visa-links) span.ij-price { display: inline; padding: 0; font-size: inherit; color: inherit; line-height: inherit; }

/* Breadcrumbs on every page (guide.css repeats this for the guide layout) */
.crumbs { font-size: 12px; color: var(--c-muted); margin: 8px 0 14px; }
.crumbs a { color: var(--c-muted); text-decoration: none; }
.crumbs a:hover { color: var(--c-terra); }
.crumbs strong { color: var(--c-ink); font-weight: 500; }
.section > .crumbs { margin-top: 0; }

/* Overview link at the top of each sub menu: only in the phone/tablet menu */
.site-nav .menu-item-overview { display: none; }
@media (max-width: 1279px) { .site-nav .menu-item-overview { display: block; } .site-nav .menu-item-overview > a { font-weight: 600; } }

/* Links to attraction pages inside running text (itineraries, guides) */
.attr-link { color: var(--c-terra); font-weight: 600; text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: 2px; text-underline-offset: 3px; background: rgba(153, 70, 42, .08); border-radius: 4px; padding: 0 3px; margin: 0 -1px; }
.attr-link::after { content: '\2197'; font-size: .85em; margin-left: 2px; text-decoration: none; display: inline-block; }
.attr-link:hover, .attr-link:focus-visible { background: var(--c-terra); color: #fff; }

/* Top things to do: links to the attraction pages */
.attr-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.attr-tile { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--c-ink); }
.attr-tile img, .attr-tile-noimg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: var(--c-line); display: grid; place-items: center; color: #9a9a9a; }
.attr-tile-name { font-size: 14px; font-weight: 600; margin-top: 4px; }
.attr-tile-meta { font-size: 12px; color: var(--c-terra); }
.attr-tile:hover .attr-tile-name { color: var(--c-terra); }
@media (max-width: 767px) { .attr-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Footer and privacy notice */
.site-footer { border-top: 1px solid var(--c-line); margin-top: 48px; padding: 32px 0 24px; }
.footer-cols { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-name { font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.footer-cols .muted { max-width: 360px; margin-top: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; align-content: flex-start; font-size: 13px; }
.footer-links a { color: var(--c-ink); text-decoration: none; }
.footer-links a:hover { color: var(--c-terra); }
.footer-base { margin-top: 20px; }
.privacy-notice { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--c-line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.14); padding: 14px 18px; font-size: 13px; line-height: 1.6; }
.privacy-notice[hidden] { display: none; }
.privacy-notice p { margin: 0; color: var(--c-muted); }
.privacy-notice a { color: var(--c-ink); }
.privacy-notice .btn { flex: none; cursor: pointer; }
@media (max-width: 600px) { .privacy-notice { flex-direction: column; align-items: stretch; } }

/* Buttons everywhere (guide.css makes them full-width inside the guide side card) */
.btn { display: inline-block; text-align: center; background: var(--c-ink); color: #fff; text-decoration: none; border: 0; border-radius: 10px; padding: 12px 22px; font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.btn:hover { opacity: .88; color: #fff; }
.how-custom .btn { margin-top: 4px; }
.privacy-notice .btn { padding: 9px 20px; }

/* Listing-page hero (itineraries, destinations, custom trip) */
.page-hero { margin: 8px 0 28px; height: 340px; border-radius: 20px; overflow: hidden; background: var(--c-line); }
.page-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 767px) { .page-hero { height: 220px; } }
.page-hero-empty { display: grid; place-items: center; color: #b5b5b5; background: repeating-linear-gradient(45deg, #f3f3f3, #f3f3f3 12px, #eeeeee 12px, #eeeeee 24px); }
.page-hero-empty .material-symbols-outlined { font-size: 44px; }

/* Logo in the header (replaces the text title) */
.site-header .wrap { min-height: 96px; }
.site-logo { max-width: none; line-height: 0; display: inline-block; }
.site-logo img { height: 76px; width: auto; display: block; }
@media (max-width: 1279px) { .site-header .wrap { min-height: 76px; } .site-logo img { height: 60px; } }
@media (max-width: 480px) { .site-logo img { height: 52px; } }
