/* ===== Cambodia Travel Guide: shared styles ===== */

:root {
  --sandstone: #d9b48a;
  --sandstone-light: #f2e4d1;
  --sandstone-dark: #b98f5f;
  --terracotta: #c1603f;
  --terracotta-dark: #9c4a30;
  --cream: #faf5ec;
  --cream-alt: #f2ead9;
  --ink: #3a2c22;
  --ink-soft: #6b5a4a;
  --border: #e6d7c1;
  --white: #ffffff;
  --shadow: 0 4px 14px rgba(58, 44, 34, 0.1);
  --shadow-hover: 0 8px 24px rgba(58, 44, 34, 0.16);
  --radius: 14px;
  --max-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.2; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.logo {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--terracotta-dark);
  white-space: nowrap;
}
.logo span { color: var(--ink); font-weight: 400; font-size: 0.85rem; display: block; }

.site-nav {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
  font-weight: 600;
}
.site-nav a:hover { color: var(--terracotta); }

/* ---------- Hero / Search ---------- */
.hero {
  background: linear-gradient(180deg, var(--sandstone-light) 0%, var(--cream) 100%);
  padding: 48px 0 40px;
  text-align: center;
}
.hero p.lead {
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
}

.search-bar {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
  box-shadow: var(--shadow);
}
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  color: var(--ink);
  font-family: inherit;
}
.search-bar input::placeholder { color: #a89685; }
.search-bar button {
  background: var(--terracotta);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.search-bar button:hover { background: var(--terracotta-dark); }

.search-suggestion {
  margin-top: 12px;
  margin-bottom: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.search-suggestion .suggestion-link {
  background: none;
  border: none;
  color: var(--terracotta-dark);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0 2px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.search-hints {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.search-hints button {
  background: none;
  border: none;
  color: var(--terracotta-dark);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0 4px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Section headings ---------- */
.section {
  padding: 44px 0;
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 12px;
  flex-wrap: wrap;
}
.section-heading p { margin: 0; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 6px;
  display: block;
}

/* ---------- Destination card grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.dest-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.dest-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.dest-card .thumb {
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  position: relative;
}
.dest-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.dest-card .tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(58, 44, 34, 0.7);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
}

.dest-card .body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.dest-card h3 { margin-bottom: 6px; }
.dest-card .meta {
  font-size: 0.82rem;
  color: var(--sandstone-dark);
  font-weight: 600;
  margin-bottom: 8px;
}
.dest-card p { font-size: 0.9rem; margin-bottom: 12px; }
.dest-card .card-link {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--terracotta-dark);
}
.dest-card .card-link::after { content: " →"; }

.dest-card .thumb .roam-label {
  position: absolute;
  top: 10px;
  right: 10px;
  margin-bottom: 0;
  font-size: 0.68rem;
  padding: 4px 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-align: center;
}
.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-outline { background: transparent; color: var(--terracotta-dark); border: 2px solid var(--terracotta); }
.btn-outline:hover { background: var(--sandstone-light); }
.btn-block { display: block; width: 100%; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--sandstone-light);
  padding: 36px 0 26px;
  margin-top: 20px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.site-footer a { color: var(--sandstone-light); opacity: 0.85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.site-footer .foot-links { display: flex; gap: 18px; font-size: 0.85rem; }
.site-footer .foot-note { font-size: 0.8rem; opacity: 0.65; width: 100%; margin-top: 14px; }

/* ---------- Destination page ---------- */
.dest-hero {
  position: relative;
  height: 360px;
  overflow: hidden;
}
.dest-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.dest-hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
}
.dest-hero .overlay .container { padding-bottom: 26px; }
.dest-hero h1 { color: var(--white); margin-bottom: 6px; }

.roam-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
  cursor: help;
}
.roam-label-3 { background: var(--terracotta); color: var(--white); }
.roam-label-2 { background: var(--sandstone); color: var(--ink); }
.roam-label-1 { background: rgba(255,255,255,0.25); color: var(--white); border: 1px solid rgba(255,255,255,0.5); }
.dest-hero .location { color: var(--sandstone-light); font-weight: 600; font-size: 0.95rem; }

.breadcrumb {
  font-size: 0.82rem;
  color: var(--ink-soft);
  padding: 14px 0 0;
}
.breadcrumb a { color: var(--terracotta-dark); font-weight: 600; }

.info-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: -34px auto 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 22px;
  position: relative;
  z-index: 5;
}
.maps-link-row { text-align: center; margin: 18px 0 0; }
.maps-link-row .btn { display: inline-flex; align-items: center; gap: 6px; }

.info-strip .item { text-align: center; padding: 8px 6px; border-left: 1px solid var(--border); }
.info-strip .item:first-child { border-left: none; }
.info-strip .item .label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sandstone-dark);
  font-weight: 700;
  margin-bottom: 4px;
}
.info-strip .item .value { font-weight: 700; font-size: 0.95rem; }

.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}
.main-col h2 { margin-top: 2.2em; }
.main-col h2:first-child { margin-top: 0; }
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
  .info-strip { margin-top: -20px; grid-template-columns: repeat(2, 1fr); }
  .info-strip .item:nth-child(odd) { border-left: none; }
  .dest-hero { height: 260px; }
}

.side-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.side-box h3 { margin-bottom: 10px; }
.side-box dl { margin: 0; }
.side-box dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--sandstone-dark); font-weight: 700; margin-top: 12px; }
.side-box dt:first-child { margin-top: 0; }
.side-box dd { margin: 3px 0 0; font-weight: 600; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.photo-grid figure { margin: 0; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.photo-grid img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.photo-grid figcaption { background: var(--white); padding: 8px 10px; font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); }

.info-list { margin: 0 0 1.2em; padding-left: 20px; color: var(--ink-soft); }
.info-list li { margin-bottom: 10px; }
.info-list li strong { color: var(--ink); }

table.timing-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.timing-table th, table.timing-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); }
table.timing-table th { color: var(--sandstone-dark); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.04em; }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.chip-list li { background: var(--sandstone-light); color: var(--terracotta-dark); font-size: 0.82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; }

.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }

/* ---------- Expandable destination card (e.g. Siem Reap) ---------- */
.dest-card-expand summary { list-style: none; display: contents; }
.dest-card-expand summary::-webkit-details-marker { display: none; }
.dest-card-expand .thumb, .dest-card-expand .body { cursor: pointer; }
.dest-card-expand .card-link .less { display: none; }
.dest-card-expand[open] .card-link .more { display: none; }
.dest-card-expand[open] .card-link .less { display: inline; }
.dest-card-expand .card-link::after { transition: transform 0.15s ease; display: inline-block; }
.dest-card-expand[open] .card-link::after { transform: rotate(90deg); }

.dest-subcard-list {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--border);
  background: var(--cream-alt);
}
.dest-card-expand[open] .dest-subcard-list { display: flex; }
.dest-subcard {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
  transition: background 0.15s ease;
}
.dest-subcard:hover { background: var(--sandstone-light); }
.dest-subcard img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.dest-subcard span { flex: 1; }
.dest-subcard::after { content: "→"; color: var(--terracotta-dark); font-weight: 700; }

/* ---------- Itinerary page ---------- */
.itin-hero {
  background: var(--sandstone-light);
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}
.itin-hero .badge {
  display: inline-block;
  background: var(--terracotta);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.itin-facts {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.itin-facts .fact .label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--sandstone-dark); font-weight: 700; }
.itin-facts .fact .value { font-size: 1.15rem; font-weight: 700; }

.day-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  overflow: hidden;
}
.day-block .day-head {
  background: var(--cream-alt);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border);
}
.day-block .day-num {
  background: var(--terracotta);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.day-block .day-head h3 { margin: 0; }
.day-block .day-body { padding: 18px 20px; }
.day-block ul { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.day-block li { margin-bottom: 6px; }

.included-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.included-grid ul { list-style: none; padding: 0; margin: 0; }
.included-grid li { padding: 6px 0 6px 26px; position: relative; font-size: 0.92rem; color: var(--ink-soft); }
.included-grid.yes li::before { content: "✓"; position: absolute; left: 0; color: #4b7a4a; font-weight: 700; }
.included-grid.no li::before { content: "✕"; position: absolute; left: 0; color: #b5563a; font-weight: 700; }

.inquiry-box {
  background: var(--terracotta);
  color: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  margin-top: 10px;
}
.inquiry-box h3 { color: var(--white); }
.inquiry-box p { color: var(--sandstone-light); }
.inquiry-box .btn-primary { background: var(--white); color: var(--terracotta-dark); }
.inquiry-box .btn-primary:hover { background: var(--cream); }

.sticky-side { position: sticky; top: 90px; }

/* ---------- Expand / collapse (Read more) ---------- */
.expand-box { margin: -6px 0 1.4em; }
.expand-box summary {
  cursor: pointer;
  list-style: none;
  color: var(--terracotta-dark);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.expand-box summary::-webkit-details-marker { display: none; }
.expand-box summary::after {
  content: "→";
  display: inline-block;
  transition: transform 0.15s ease;
}
.expand-box[open] summary::after { transform: rotate(90deg); }
.expand-box .less { display: none; }
.expand-box[open] .more { display: none; }
.expand-box[open] .less { display: inline; }
.expand-content {
  margin-top: 14px;
  padding: 18px 20px;
  background: var(--cream-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.expand-content h3 { margin-top: 1em; }
.expand-content h3:first-child { margin-top: 0; }
.expand-content ul { margin: 0 0 1em; padding-left: 20px; color: var(--ink-soft); }
.expand-content li { margin-bottom: 8px; }
.expand-content .tip-note { margin-bottom: 0; }

/* ---------- Roam Rating tooltip ---------- */
.roam-tooltip {
  position: fixed;
  transform: translate(-50%, -100%);
  background: var(--ink);
  color: var(--cream);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.45;
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: var(--shadow-hover);
  max-width: 230px;
  text-align: left;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease;
  pointer-events: none;
}
.roam-tooltip.visible { opacity: 1; visibility: visible; }
.roam-tooltip.below { transform: translate(-50%, 12px); }

/* ---------- Roam Rating explainer (homepage) ---------- */
.rating-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  margin-bottom: 28px;
}
.rating-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 200px;
}
.rating-legend .legend-item .badge {
  flex-shrink: 0;
  margin-bottom: 0;
}
.rating-legend .legend-item p {
  margin: 0;
  font-size: 0.85rem;
}
.rating-legend .legend-item strong { color: var(--ink); }
.rating-legend .roam-label-1 { background: var(--cream-alt); color: var(--ink-soft); border: 1px solid var(--border); }

/* ---------- About page ---------- */
.about-content { max-width: 720px; margin: 0 auto; }
.about-content h2 { margin-top: 2.2em; }
.about-content h2:first-child { margin-top: 0; }
.about-content .rating-legend { margin-top: 18px; margin-bottom: 0; }

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 20px 0 1.2em;
}
.about-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
}
.about-card h3 { margin-bottom: 10px; }
.about-card .info-list { margin-bottom: 0; }

.about-cta {
  text-align: center;
  background: var(--sandstone-light);
  border-radius: var(--radius);
  padding: 32px 24px;
  margin-top: 2.4em;
}
.about-cta h3 { margin-bottom: 16px; }
