/* Nomad Living brand layer on top of Bootstrap 5.3.
   Bootstrap does layout, spacing and components; this file sets the palette,
   type and the few patterns Bootstrap has no class for. */

:root {
  --nl-accent: #1d5c55;
  --nl-accent-rgb: 29, 92, 85;
  --nl-accent-dark: #164a44;
  --nl-ink: #15171a;
  --nl-ink-rgb: 21, 23, 26;
  --nl-ink-soft: #3b4044;
  --nl-muted: #565b60;
  --nl-paper: #f5f4f0;
  --nl-line: #dddad3;

  --bs-body-font-family: "Schibsted Grotesk", "Helvetica Neue", Helvetica, sans-serif;
  --bs-font-monospace: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --bs-body-bg: var(--nl-paper);
  --bs-body-color: var(--nl-ink);
  --bs-secondary-color: var(--nl-muted);
  --bs-border-color: var(--nl-line);
  --bs-primary: var(--nl-accent);
  --bs-primary-rgb: var(--nl-accent-rgb);
  --bs-link-color: var(--nl-ink);
  --bs-link-color-rgb: var(--nl-ink-rgb);
  --bs-link-hover-color: var(--nl-accent);
  --bs-link-hover-color-rgb: var(--nl-accent-rgb);
}

body {
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 5.6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.875rem, 3.4vw, 2.75rem);
  line-height: 1.06;
}

.lead {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--nl-ink-soft);
}

/* Layout */

/* Side padding matches the .g-5 row gutter so rows never overflow the viewport */
.container {
  --bs-gutter-x: 3rem;
}

.section {
  padding-block: clamp(3.5rem, 8vw, 5rem);
}

/* Small mono label above headings and prices */
.eyebrow {
  font-family: var(--bs-font-monospace);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
}

.brand {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: inherit;
  text-decoration: none;
}

/* Section links: a row under the brand on phones and tablets, inline from lg */
.site-nav .nav {
  --bs-nav-link-padding-x: 0;
  column-gap: 1.25rem; /* all four links fit on a 360px phone */
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
}

/* Buttons: pill-shaped, icon + label */

.btn,
.btn-lg {
  --bs-btn-font-weight: 600;
  --bs-btn-border-radius: 50rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 2.75rem; /* 44px touch target */
}

.btn-lg {
  --bs-btn-padding-x: 1rem;
  --bs-btn-padding-y: 0.875rem;
  --bs-btn-font-size: 1rem;
}

@media (min-width: 576px) {
  .btn-lg {
    --bs-btn-padding-x: 1.75rem;
    --bs-btn-font-size: 1.0625rem;
  }
}

.btn-primary {
  --bs-btn-bg: var(--nl-accent);
  --bs-btn-border-color: var(--nl-accent);
  --bs-btn-hover-bg: var(--nl-accent-dark);
  --bs-btn-hover-border-color: var(--nl-accent-dark);
  --bs-btn-active-bg: var(--nl-accent-dark);
  --bs-btn-active-border-color: var(--nl-accent-dark);
  --bs-btn-focus-shadow-rgb: var(--nl-accent-rgb);
}

/* Line icons from the sprite at the top of index.html */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Prices: "from ฿900 / night" */
.price {
  margin: 0;
  color: var(--bs-secondary-color);
}

.price strong {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--bs-body-color);
}

/* Hero price summary: two cells, side by side or stacked */
.price-summary {
  max-width: 35rem;
}

.price-summary > * + * {
  box-shadow: -1px 0 0 var(--bs-border-color), 0 -1px 0 var(--bs-border-color);
}

.hero-img {
  height: clamp(20rem, 40vw, 34rem);
  object-fit: cover;
  object-position: 58% 50%;
}

/* Ruled lists: amenities (.feature-list) and label/value rows (.spec-list) */

.feature-list,
.spec-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--bs-border-color);
}

.feature-list li,
.spec-list > div {
  display: flex;
  gap: 1rem;
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--bs-border-color);
}

.feature-list {
  font-size: 1.0625rem;
}

.feature-list li {
  align-items: center;
}

.spec-list > div {
  justify-content: space-between;
  align-items: baseline;
}

.spec-list dt {
  font-weight: 400;
  color: var(--bs-secondary-color);
}

.spec-list dd {
  margin: 0;
  text-align: end;
}

/* Location: place on the left, travel time in mono on the right */
.spec-list.distances dt {
  color: inherit;
}

.spec-list.distances dd {
  font-family: var(--bs-font-monospace);
  font-size: 0.875rem;
  color: var(--bs-secondary-color);
  white-space: nowrap;
}

/* Location: text, map, distances stacked on phones; from lg the map sits beside text and distances */
.location-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-areas: "text" "map" "list";
}

.location-text { grid-area: text; }
.location-map { grid-area: map; }
.location-list { grid-area: list; }

@media (min-width: 992px) {
  .location-grid {
    grid-template-columns: 5fr 6fr;
    grid-template-rows: auto 1fr;
    grid-template-areas: "text map" "list map";
    column-gap: 5rem;
    row-gap: 2rem;
  }

  .location-map {
    align-self: center;
  }
}

/* Location map: inline SVG in index.html, drawn in viewBox units.
   Every place is a .map-dot with a label; .map-detail is an optional second line.
   Labels get a halo in the colour beneath them (.on-sea over water) so coastlines never cut through text. */
.map {
  --map-sea: #e3ecea;
  display: block;
  width: 100%;
  max-width: 32rem;
  height: auto;
  margin-inline: auto;
}

.map-sea {
  fill: var(--map-sea);
}

.map-land {
  fill: #fff;
  stroke: #c5d4d1;
  stroke-width: 1.5;
}

.map text {
  font-family: var(--bs-body-font-family);
  font-size: 21px;
  font-weight: 600;
  fill: var(--nl-ink);
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 5px;
  stroke-linejoin: round;
}

.map text.on-sea {
  stroke: var(--map-sea);
}

.map .map-detail {
  font-size: 18px;
  font-weight: 400;
  fill: var(--nl-muted);
}

.map .map-label {
  font-size: 24px;
  font-weight: 700;
  fill: var(--nl-accent);
}

.map-dot {
  fill: var(--nl-ink);
  stroke: #fff;
  stroke-width: 2.5;
}

.map-pin {
  fill: var(--nl-accent);
  stroke: #fff;
  stroke-width: 3;
}

/* Solid, so the coastline doesn't show through */
.map-pin-halo {
  fill: #d0e0dc;
}

.map-scale {
  fill: none;
  stroke: var(--nl-muted);
  stroke-width: 2;
}

/* Map of the block, at the end of #location: a looping video from docs/map/simmap.py,
   under an SVG of label pills in the .map styles above. Phones scroll it sideways. */
.block-map {
  position: relative;
  min-width: 56rem;
  margin: 0;
}

.block-map video {
  display: block;
  width: 100%;
  height: auto;
}

.block-map .map {
  position: absolute;
  inset: 0;
  max-width: none;
  height: 100%;
}

/* Labels: white pills, and a teal one (.map-pin) for the hotel */
.block-map .map text {
  stroke: none;
}

.block-map .map .map-label {
  font-size: 26px;
  fill: #fff;
}

.map-tag {
  fill: #fff;
  stroke: var(--bs-border-color);
}

.map-arrow {
  fill: none;
  stroke: var(--nl-ink-soft);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* On phones and tablets the map runs to the container's edges and fades out there */
@media (max-width: 991.98px) {
  .block-map-scroll {
    margin-inline: -1.5rem;
    mask-image: linear-gradient(90deg, transparent, #000 2rem, #000 calc(100% - 2rem), transparent);
  }
}

@media (min-width: 992px) {
  .block-map {
    min-width: 0;
  }
}

/* Booking band in the accent colour */
.section-cta {
  --bs-secondary-color: #e3ecea;
  --bs-border-color: rgba(255, 255, 255, 0.35);
  background: var(--nl-accent);
  color: #fff;
}

/* Numbered steps: 01, 02, ... */
.steps {
  display: grid;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding-top: 1.125rem;
  border-top: 1px solid var(--bs-border-color);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.625rem;
  font-family: var(--bs-font-monospace);
  font-size: 0.875rem;
  color: var(--bs-secondary-color);
}

.site-footer {
  background: var(--nl-ink);
  color: #c9cccf;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}
