/* Hotel Belém Tejo - website styles.
   Light and calm. The brand teal (brand/tokens.css) is the signature: logo, buttons, links, small details.
   The page is a breath of blue (the Tejo); cards are white; cream is the warm touch, used only a little
   (footer and small info panels). */
:root {
  --teal: #16687B;         /* brand: logo colour, buttons, links */
  --teal-dark: #0F4A57;    /* brand: hover */

  --page: #F3F8F9;         /* page background, very light blue */
  --band: #E6F0F2;         /* alternate sections */
  --band-line: #D3E3E7;    /* borders on blue */
  --line: #D9E6E9;         /* thin rules */
  --card: #FFFFFF;         /* cards */
  --cream: #F7F0E6;        /* the warm touch: footer, info panels */
  --cream-line: #E6D9C6;
  --ink: #2C2621;          /* body text, warm near-black */
  --ink-soft: #6B6158;     /* secondary text */

  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 50, 60, .05), 0 10px 30px rgba(20, 50, 60, .07);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, .h3 { font-family: var(--serif); font-weight: normal; color: var(--ink); line-height: 1.15; letter-spacing: -.005em; }
h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); margin: 0 0 .35em; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); margin: 0 0 .5em; }
h3, .h3 { font-size: 1.3rem; margin: 0 0 .35em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.08rem, 1rem + .3vw, 1.22rem); color: var(--ink-soft); max-width: 58ch; }
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin: 0 0 1.1em; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; inset-inline-start: -9999px; top: 8px; z-index: 10; background: var(--card); padding: 10px 14px; border-radius: 8px; }
.skip:focus { inset-inline-start: 8px; }

/* buttons: rounded, friendly */
.btn { display: inline-block; padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .98rem; text-decoration: none; line-height: 1.2; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--band-line); }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* header: light, the logo carries the brand */
header.site { background: rgba(243, 248, 249, .96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.bar { display: grid; grid-template-columns: auto 1fr auto auto; grid-template-areas: "brand nav lang book";
  align-items: center; gap: 4px 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { grid-area: brand; }
.brand img { height: 64px; width: auto; }
nav.main { grid-area: nav; justify-self: center; }
nav.main ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
nav.main a { display: block; padding: 8px 12px; color: var(--ink); text-decoration: none; white-space: nowrap; font-size: .97rem; }
nav.main a:hover { color: var(--teal); }
nav.main a[aria-current="page"] { color: var(--teal); text-decoration: underline; text-underline-offset: 8px; }
.book { grid-area: book; padding: 10px 20px; }

.lang { grid-area: lang; position: relative; }
.lang summary { list-style: none; cursor: pointer; padding: 8px 10px; border-radius: 999px; color: var(--ink-soft); font-size: .9rem; font-weight: 600; letter-spacing: .04em; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; display: inline-block; margin-inline-start: 6px; border: 4px solid transparent; border-top-color: currentColor; vertical-align: middle; transform: translateY(2px); }
.lang summary:hover, .lang[open] summary { color: var(--ink); background: var(--band); }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 30; min-width: 170px; margin: 0; padding: 8px; list-style: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.lang ul a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.lang ul a:hover { background: var(--band); }
.lang ul a[aria-current] { color: var(--teal); font-weight: 600; }

@media (max-width: 900px) {
  .bar { grid-template-columns: 1fr auto auto; grid-template-areas: "brand lang book" "nav nav nav"; padding-bottom: 6px; gap: 6px 10px; }
  .brand img { height: 46px; }
  nav.main { justify-self: stretch; }
  nav.main ul { margin: 0 -9px; gap: 0; -webkit-mask-image: linear-gradient(to right, #000 88%, transparent);
    mask-image: linear-gradient(to right, #000 88%, transparent); padding-right: 24px; }   /* the fade says: more to swipe */
  nav.main a { padding: 8px 9px; font-size: .95rem; }
  .book { padding: 9px 16px; }
}

/* hero: light and calm, text centred (a wide photo can go below it later) */
.hero { padding: clamp(56px, 9vw, 128px) 0 clamp(56px, 8vw, 112px); text-align: center; }
.hero-text { max-width: 760px; margin: 0 auto; }
.hero h1 { margin-left: auto; margin-right: auto; max-width: 20ch; text-wrap: balance; }
.hero .lead { margin-left: auto; margin-right: auto; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 32px 0 0; }
.hero .actions { justify-content: center; }

/* sections */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section.band { background: var(--band); }
.center { text-align: center; }
.center .lead, .center.prose { margin-left: auto; margin-right: auto; }
.prose { max-width: 66ch; }
.ornament { width: 22px; height: auto; margin: 0 auto 20px; opacity: .85; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 28px; }
.head-row h2, .head-row p { margin-bottom: 0; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 48px; list-style: none; padding: 0; margin: 48px 0 0; }
.features li { border-top: 1px solid var(--line); padding-top: 22px; }
.features .num { display: block; font-family: var(--serif); font-style: italic; color: var(--teal); margin-bottom: 8px; }
.features p { color: var(--ink-soft); margin: 0; }

.page-head { padding: clamp(40px, 6vw, 80px) 0 8px; }
.page-head + .section { padding-top: clamp(24px, 4vw, 48px); }

/* cards */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); list-style: none; margin: 0 0 32px; padding: 0; }
.card { background: var(--card); border-radius: var(--radius); padding: 26px 26px 24px; box-shadow: var(--shadow); }
.card > :last-child { margin-bottom: 0; }
.card p { color: var(--ink-soft); }
.card h3 a { color: inherit; text-decoration: none; }
.room-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.room-card .pic { aspect-ratio: 16 / 7; background: linear-gradient(180deg, #F4E6D4 0%, #EEDCC4 62%, #D7E7E7 62%, #E6F0EF 100%); }
.room-card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.room-card .body > :last-child { margin-top: auto; margin-bottom: 0; }
.panel { background: var(--cream); border-radius: var(--radius); padding: 28px 30px; margin: 32px 0; }
.panel h2 { font-size: 1.5rem; }
.panel > :last-child { margin-bottom: 0; }

.ticks, .specs { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-inline-start: 1.6em; margin: 0 0 .5em; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: .25em; top: .4em; width: .4em; height: .7em;
  border: solid var(--teal); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cols2 { columns: 2 220px; column-gap: 40px; }
.cols2 li { break-inside: avoid; }
.specs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--ink-soft); font-size: .93rem; }
.specs li { border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; }

.places { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.places li { padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.15rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

.facts { display: grid; grid-template-columns: fit-content(45%) minmax(0, 1fr); gap: 8px 20px; margin: 0 0 1em; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; }
@media (max-width: 520px) { .facts { grid-template-columns: minmax(0, 1fr); row-gap: 2px; } .facts dd + dt { margin-top: 12px; } }
.getting { max-width: 66ch; margin: 0; }
.getting dt { font-family: var(--serif); font-size: 1.15rem; margin-top: 18px; }
.getting dd { margin: 2px 0 0; color: var(--ink-soft); }
.address { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 0 56px; }
.address p { margin: 0; }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal h2:first-child { margin-top: 0; }

/* footer: cream, the warm ending of every page */
footer.site { background: var(--cream); border-top: 1px solid var(--cream-line); color: var(--ink-soft); padding: 56px 0 28px; font-size: .95rem; }
footer.site a { color: var(--ink); text-decoration: none; }
footer.site a:hover { color: var(--teal); text-decoration: underline; }
footer.site ul { list-style: none; margin: 0 0 1em; padding: 0; }
footer.site li { margin: 6px 0; }
.foot-logo { height: 60px; width: auto; margin-bottom: 18px; }
.cols { display: grid; gap: 28px 48px; grid-template-columns: 1.3fr 1fr 1fr; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }
.fh { font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin: 0 0 12px; }
.copy { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px;
  border-top: 1px solid var(--cream-line); margin: 28px 0 0; padding-top: 18px; }
.copy p { margin: 0; }
footer.site a.admin-link { color: var(--ink-soft); font-size: .8rem; }

/* things to do: search, themes, places */
.guide-search { position: relative; display: flex; gap: 8px; max-width: 640px; margin: 28px 0 18px; }
.center .guide-search { margin-left: auto; margin-right: auto; }
.search-field { position: relative; flex: 1; min-width: 0; display: flex; }
.guide-search input { flex: 1; min-width: 0; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--card);
  padding-block: 14px; padding-inline: 46px 18px; border: 1px solid var(--band-line); border-radius: 999px; box-shadow: var(--shadow); }
.guide-search input:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.guide-search .search-icon { position: absolute; inset-inline-start: 17px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); display: flex; pointer-events: none; }
.guide-search .btn { padding-left: 22px; padding-right: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-center { justify-content: center; }
.chips a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--band-line); background: var(--card); color: var(--ink);
  text-decoration: none; font-size: .93rem; }
.chips a:hover { border-color: var(--teal); color: var(--teal); }
.chips a.chip-secret { background: var(--cream); border-color: var(--cream-line); }
.chips a[aria-current] { background: var(--teal); border-color: var(--teal); color: #fff; }
.home-search h2 { margin-bottom: .3em; }

.why-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px 56px; align-items: start; }
.times { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.times li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.times strong { font-weight: 600; }
.times span { color: var(--ink-soft); text-align: end; }
@media (max-width: 760px) {
  .why-grid { grid-template-columns: 1fr; }
  .times li { flex-direction: column; gap: 2px; }
  .times span { text-align: start; }
  .guide-search { flex-wrap: wrap; }
  .search-field { flex-basis: 100%; }
  .guide-search .btn { width: 100%; }
  /* phones: themes in one row to swipe, instead of five rows of buttons */
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -24px; padding: 2px 24px 6px; }
  .chips a { white-space: nowrap; }
  .chips-center { justify-content: flex-start; }
}

.result-count { color: var(--ink-soft); margin: 0 0 18px; }
.guide-list { margin-bottom: 28px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.place { display: flex; flex-direction: column; scroll-margin-top: 120px; }
.place.is-secret { box-shadow: var(--shadow), inset 0 3px 0 #E2C48F; }
.place:target { outline: 2px solid var(--teal); outline-offset: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 12px; padding: 0; }
.tags li { font-size: .76rem; letter-spacing: .03em; color: var(--teal-dark); background: var(--band); border-radius: 999px; padding: 2px 10px; }
.tags li.secret { background: var(--cream); color: #6A4B1F; }
.tags li.area { background: transparent; border: 1px solid var(--band-line); color: var(--ink-soft); }
.route { background: var(--page); border-radius: 12px; padding: 12px 14px; margin: 4px 0 14px; font-size: .94rem; }
.route p { margin: 0; color: var(--ink-soft); }
.route .route-title { display: flex; align-items: center; gap: 8px; color: var(--teal-dark); font-weight: 600; margin-bottom: 4px; }
.offer { border: 1px solid var(--cream-line); background: var(--cream); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; font-size: .94rem; }
.offer p { margin: 0 0 8px; color: var(--ink); }
.offer p:last-child { margin: 0; }
.place-links { margin-top: auto; margin-bottom: 0; font-size: .93rem; }
.reception { margin-top: 8px; }
.icon { flex: none; }

/* footer: the complaints book, visible and highlighted (DL 156/2005) */
footer.site a.lr { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1.5px solid var(--teal);
  border-radius: 10px; color: var(--teal-dark); font-weight: 600; background: var(--card); }
footer.site a.lr:hover { background: var(--band); text-decoration: none; }
.legal-id { line-height: 1.55; }

/* other scripts: system fonts only (nothing to download); Arabic reads right to left and is never letter-spaced */
html:lang(ar) { --sans: "Segoe UI", "Geeza Pro", "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma, system-ui, sans-serif;
  --serif: "Noto Naskh Arabic", "Geeza Pro", "Times New Roman", serif; }
html:lang(ja) { --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, "Noto Sans CJK JP", system-ui, sans-serif;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", serif; }
html:lang(ko) { --sans: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", system-ui, sans-serif;
  --serif: "AppleMyungjo", "Noto Serif CJK KR", serif; }
html:lang(zh-Hans) { --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --serif: "Songti SC", "SimSun", "Noto Serif CJK SC", serif; }
html:lang(ar) .eyebrow, html:lang(ar) .fh { letter-spacing: 0; }
html:lang(ja) .eyebrow, html:lang(ko) .eyebrow, html:lang(zh-Hans) .eyebrow { letter-spacing: .06em; }
/* line breaks: Korean never inside a word; Chinese and Japanese headings at punctuation or phrase ends (auto-phrase where
   the browser knows it), never with a sideways scroll */
html:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }
html:lang(zh) :is(h1, h2, h3), html:lang(ja) :is(h1, h2, h3) { word-break: keep-all; overflow-wrap: anywhere; }
html:lang(ja) :is(h1, h2, h3) { word-break: auto-phrase; }
[dir="rtl"] .link-arrow::after { content: " ←"; }
[dir="rtl"] nav.main ul { -webkit-mask-image: none; mask-image: none; }

@media (prefers-reduced-motion: no-preference) {
  a, .btn { transition: background-color .15s, color .15s, border-color .15s; }
}
@media print {
  header.site nav, .lang, .book, .actions { display: none; }
  header.site { position: static; }
}
