/* ==========================================================================
   content.css — article pages, hotel-data card, articles grid + homepage
   presentation cleanups (grandprueksasiri.com).

   Palette follows the TravelLine "Waterfront" theme shipped in
   css/style@r_1750900196.css: orange accent rgb(248,145,0) / decor
   rgb(255,162,32), black text, white background, Open Sans body,
   Franklin Gothic Demi headings, 30px pill buttons. The recovered theme
   css file stays untouched; everything article-specific lives here
   (pagehead, story, photo-strip, hotelcard, lightbox, artgrid, pagefoot)
   plus the homepage-only overrides at the bottom.
   ========================================================================== */

:root {
  --accent: #f89100;
  --accent-dark: #d97b00;
  --accent-soft: #ffb95e;
  --ink: #1a1a1a;
  --muted: #6f6f6f;
  --bg: #ffffff;
  --panel: #fafafa;
  --line: #e6e6e6;
  --shadow: 0 2px 10px rgba(0, 0, 0, .08);
  --shadow-hover: 0 6px 18px rgba(0, 0, 0, .12);
  --radius: 8px;
  --pill: 30px;
  --heading: "Franklin Gothic Demi", Roboto, Verdana, "Open Sans", sans-serif;
  --body: "Open Sans", "PT Sans", Tahoma, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.7 var(--body);
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- article page header ------------------------------------------------ */
.pagehead { background: #fff; border-bottom: 1px solid var(--line); }
.pagehead-in {
  max-width: 1180px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.pagehead-brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--ink);
}
.pagehead-brand img { height: 46px; width: auto; display: block; }
.pagehead-name {
  font-family: var(--heading); font-size: 1.05rem; letter-spacing: .02em;
}
.pagehead-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.pagehead-link {
  font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-decoration: none;
  color: var(--ink); padding: 7px 16px; border-radius: var(--pill);
  border: 1px solid var(--line);
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
/* mirrors the theme menu: orange fill + white label on hover */
.pagehead-link:hover {
  background: var(--accent); border-color: var(--accent); color: #fff;
}

/* ---- article ------------------------------------------------------------ */
.article {
  max-width: 1160px; margin: 0 auto; padding: 34px 24px 60px;
}
.article > .story-text, .article > .story-note,
.article > .photo-strip, .article > hotel-data {
  background: #fff;
}
.story-h1 {
  font-family: var(--heading); font-weight: 400;
  font-size: 2rem; line-height: 1.3; letter-spacing: .01em;
  color: var(--ink); margin: 0 0 .4em;
}
.story-intro { font-size: 1.02rem; color: var(--muted); margin: 0 0 1.6em; }
.story-text h2 {
  font-family: var(--heading); font-weight: 400;
  font-size: 1.3rem; line-height: 1.4; color: var(--ink);
  margin: 2em 0 .55em; padding-left: .6em; border-left: 3px solid var(--accent);
}
.story-text h3 { font-size: 1.1rem; color: var(--ink); margin: 1.7em 0 .5em; }
.story-text p { margin: .85em 0; }
.story-text ul, .story-text ol { margin: .85em 0; padding-left: 1.5em; }
.story-text li { margin: .3em 0; }
.story-text blockquote {
  margin: 1.2em 0; padding: .2em 1.1em;
  border-left: 3px solid var(--accent); background: var(--panel);
  color: var(--muted); font-style: italic;
}
.story-text pre {
  background: var(--panel); border: 1px solid var(--line);
  padding: 12px 14px; border-radius: var(--radius); overflow-x: auto; font-size: .9em;
}
.story-text code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92em; }
.story-text table { border-collapse: collapse; width: 100%; margin: 1.2em 0; font-size: .95em; }
.story-text th, .story-text td {
  border: 1px solid var(--line); padding: 8px 12px;
  text-align: left; vertical-align: top;
}
.story-text th { background: var(--panel); color: var(--ink); }
.story-text hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.story-text img { border-radius: var(--radius); }

/* ---- human-written annotation --------------------------------------------- */
.story-note {
  display: block;
  background: #fff8ef; border: 1px dashed #f0c184;
  border-radius: var(--radius); padding: 14px 18px; margin: 0 0 34px;
}
.story-note p { margin: 0; font-size: .92rem; line-height: 1.65; font-style: italic; color: var(--ink); }

/* ---- photo row (below the hotel-data card) -------------------------------- */
.photo-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 12px; margin: 0 0 34px;
}
.photo-strip-cell {
  padding: 0; border: 1px solid var(--line); background: none;
  cursor: zoom-in; border-radius: var(--radius); overflow: hidden; line-height: 0;
  box-shadow: var(--shadow);
  transition: box-shadow .16s ease;
}
.photo-strip-cell:hover { box-shadow: var(--shadow-hover); }
.photo-strip-cell img {
  display: block; width: 100%; height: 210px; object-fit: cover;
  transition: transform .18s ease, opacity .18s ease;
}
.photo-strip-cell:hover img { transform: scale(1.04); opacity: .9; }

/* ---- inline figure above h2 ------------------------------------------------ */
.story-photo {
  margin: 2.4em 0 1.1em; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  cursor: zoom-in; line-height: 0;
}
.story-photo img { display: block; width: 100%; height: auto; }
@media (max-width: 560px) {
  .photo-strip-cell img { height: 130px; }
}

/* ---- <hotel-data> card --------------------------------------------------- */
hotel-data { display: block; margin: 26px 0 30px; }
.hotelcard-box {
  display: flex; gap: 22px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 22px;
}
.hotelcard-scorebox { flex: 0 0 auto; text-align: center; min-width: 96px; }
.hotelcard-score { font-size: 2.1rem; font-weight: 700; color: var(--accent-dark); line-height: 1.1; }
.hotelcard-stars {
  position: relative; display: inline-block;
  font-size: .95rem; line-height: 1; letter-spacing: 2px; color: #dddddd;
}
.hotelcard-stars-bg { white-space: nowrap; }
.hotelcard-stars-fg {
  position: absolute; top: 0; left: 0;
  overflow: hidden; white-space: nowrap; color: var(--accent);
}
.hotelcard-count { font-size: .78rem; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.hotelcard-info { flex: 1 1 auto; min-width: 0; }
.hotelcard-name {
  font-family: var(--heading); font-weight: 400;
  font-size: 1.05rem; color: var(--ink); line-height: 1.35;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.hotelcard-tag {
  font-family: var(--body);
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-dark); background: #fff8ef;
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px;
}
.hotelcard-lines { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.hotelcard-line {
  display: flex; align-items: center; gap: 8px; width: fit-content;
  font-size: .88rem; color: var(--muted); text-decoration: none;
}
.hotelcard-line svg { flex: 0 0 auto; color: #b3b3b3; }
.hotelcard-line:hover { color: var(--accent-dark); }
.hotelcard-line:hover svg { color: var(--accent-dark); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, .93);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 92vw; max-height: 84vh;
  border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.lightbox button {
  position: absolute; background: rgba(255, 255, 255, .12); color: #fff;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%;
  width: 44px; height: 44px; font-size: 22px; line-height: 1;
  cursor: pointer; transition: background .15s ease, border-color .15s ease;
}
.lightbox button:hover { background: var(--accent); border-color: var(--accent); }
.lightbox-x { top: 18px; right: 18px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---- articles grid (homepage section + /hotels/ index) ------------------- */
.artgrid { padding: 44px 0 50px; clear: both; background: #fff; }
.artgrid-in { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.artgrid-head {
  font-family: var(--heading); font-weight: 400;
  margin: 0 0 6px; text-align: center; font-size: 1.7rem; color: var(--ink);
}
.artgrid-sub { margin: 0 0 30px; text-align: center; color: var(--muted); font-size: .95rem; }
.artgrid-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.artgrid-list-page { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.artcard {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0 22px 20px; overflow: hidden;
  text-decoration: none; color: inherit; box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease;
}
.artcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  color: inherit;
}
.artcard-img {
  margin: 0 -22px 16px; overflow: hidden;
}
.artcard-img img { display: block; width: 100%; height: 160px; object-fit: cover; }
.artcard-body { display: flex; flex-direction: column; flex: 1 1 auto; }
.artcard-hotel {
  font-size: .7rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent-dark); margin-bottom: 7px;
}
.artcard-title { margin: 0 0 8px; font-size: 1.02rem; line-height: 1.45; color: var(--ink); }
.artcard-text {
  margin: 0 0 12px; font-size: .88rem; line-height: 1.6; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.artcard-meta { font-size: .8rem; color: var(--muted); margin-top: auto; }
.artgrid-more {
  display: table; margin: 30px auto 0; padding: 10px 28px;
  border: 1px solid var(--accent); border-radius: var(--pill);
  color: var(--accent-dark); background: #fff; font-size: .8rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; text-decoration: none;
  transition: background-color .3s ease, color .3s ease;
}
/* mirrors the theme pill buttons: orange fill + white label on hover */
.artgrid-more:hover { background: var(--accent); color: #fff; }

/* the Waterfront stylesheet is loaded before this file, so equal-specificity
   rules here win — but the grid anchors get a belt-and-braces re-assert */
.artgrid a.artcard, .artgrid a.artcard:link { color: inherit; text-decoration: none; }
.artgrid a.artgrid-more, .artgrid a.artgrid-more:link { color: var(--accent-dark); text-decoration: none; }

/* ---- article page footer -------------------------------------------------- */
.pagefoot { background: #1a1a1a; color: #efe9df; margin-top: 40px; }
.pagefoot-in {
  max-width: 1180px; margin: 0 auto; padding: 34px 20px 38px;
  text-align: center; font-size: .85rem; line-height: 1.8;
}
.pagefoot-brand {
  font-family: var(--heading); letter-spacing: .04em;
  color: #fff;
}
.pagefoot-addr { color: #cfc6bb; }
.pagefoot a { color: var(--accent-soft); text-decoration: none; }
.pagefoot a:hover { color: #fff; }
.pagefoot-copy { margin-top: 10px; color: #8f8f8f; font-size: .78rem; }

/* ---- responsive ------------------------------------------------------------ */
@media (max-width: 560px) {
  .hotelcard-box { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hotelcard-scorebox { display: flex; align-items: baseline; gap: 10px; text-align: left; min-width: 0; }
}
@media (max-width: 640px) {
  .article { padding: 24px 16px 48px; }
  .story-h1 { font-size: 1.5rem; }
  .artgrid { padding: 32px 0 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .artcard, .artgrid-more, .photo-strip-cell img, .pagehead-link, .hd-topbar { transition: none; }
}

/* ---- article CTA (in hotel card; the sidebar bookbox was removed 2026-10-28) */
.hotelcard-cta {
  display: block; margin-top: 12px; text-align: center; padding: 9px 14px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; font-size: .88rem; border-radius: var(--pill);
}
.hotelcard-cta:hover { background: var(--accent); filter: brightness(1.06); color: #fff; }

/* ---- compact sticky hotel topbar (hotel-data.js; shown while the in-flow
   card is scrolled out of view, hides again when the card returns) --------- */
.hd-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
  visibility: hidden;
  transform: translateY(-110%);
  transition: transform .25s ease, visibility 0s linear .25s;
}
.hd-topbar.is-visible {
  visibility: visible;
  transform: translateY(0);
  transition: transform .25s ease;
}
.hd-topbar-in {
  max-width: 1160px; margin: 0 auto; padding: 8px 24px;
  display: flex; align-items: center; gap: 16px; min-height: 54px;
}
.hd-topbar-scorebox { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
.hd-topbar-scorebox .hotelcard-score { font-size: 1.35rem; }
.hd-topbar-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.hd-topbar-meta .hotelcard-count { margin-top: 0; }
.hd-topbar-name {
  flex: 1 1 auto; min-width: 0;
  font-family: var(--heading); font-weight: 400;
  font-size: 1.02rem; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hd-topbar-cta {
  flex: 0 0 auto; display: inline-block; padding: 8px 16px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; font-size: .86rem; border-radius: var(--pill);
  white-space: nowrap;
}
.hd-topbar-cta:hover { background: var(--accent); filter: brightness(1.06); color: #fff; }

@media (max-width: 640px) {
  .hd-topbar-in {
    flex-direction: column; align-items: stretch;
    gap: 6px; padding: 8px 14px; min-height: 0;
  }
  .hd-topbar-scorebox { display: flex; align-items: baseline; gap: 8px; }
  .hd-topbar-scorebox .hotelcard-score { font-size: 1.15rem; }
  .hd-topbar-meta { flex-direction: row; align-items: baseline; gap: 8px; }
  .hd-topbar-name {
    font-size: .95rem; line-height: 1.3;
    white-space: normal; display: -webkit-box; -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; overflow: hidden;
  }
  .hd-topbar-name .hotelcard-tag { display: none; }
  .hd-topbar-cta { display: block; text-align: center; padding: 9px 12px; font-size: .88rem; }
}
/* ---- mobile hardening: nothing may force horizontal overflow -------------- */
@media (max-width: 640px) {
  .hotelcard-box { min-width: 0; }
  .hotelcard-scorebox { flex-wrap: wrap; row-gap: 4px; }
  .hotelcard-count { white-space: normal; }
  .hd-topbar-name .hotelcard-tag { display: none; }
}
.hotelcard-line { width: auto; max-width: 100%; }
.hotelcard-line span { overflow-wrap: anywhere; }
html, body { overflow-x: clip; }

@media print { .hd-topbar { display: none; } }

/* ==========================================================================
   HOMEPAGE-ONLY presentation cleanups (03_site/index.html).
   content.css is linked ONLY from the homepage grid section, so none of
   this affects /about/. Paired with js/home-cleanups.js, which re-lays
   out the theme sliders. Presentation only — no content changes.
   ========================================================================== */

/* footer: single centered copyright block instead of left-hugging text */
body.home .footer .footer__container { justify-content: center; text-align: center; }
body.home .footer .footer__copyright { text-align: center; }
body.home .footer .footer__copyright_official { margin-left: 0; }

/* services: theme left-packs the flex row on desktop (2 of 2 items in a
   1180px row) — center it like the theme already does on small screens */
body.home .services__list { justify-content: center; }

/* apartments: the cleanup script re-inits this slider at 2-up (infinite:false,
   no clones), which produces the correct slick layout on its own — only the
   pointless arrows are hidden (both rooms are always visible). */
body.home .slider_rooms .slick-arrow { display: none !important; }

/* special offers: single centered slide (re-init leaves exactly one slide) */
body.home .slider_special-offers .slick-track {
  width: auto !important;
  transform: none !important;
  display: flex !important;
  justify-content: center;
}
body.home .slider_special-offers .slick-slide {
  width: auto !important;
  max-width: 420px;
  margin: 0 !important;
  float: none !important;
}

/* about blurb was never filled in on the original site — hide the empty
   block (class added by js/home-cleanups.js only when it is truly empty) */
body.home .provider__description.is-empty { display: none; }
