/* Vacaciones en Lanzarote — Notion's page look, rebuilt by hand. */

:root {
  --text: #37352f;
  --text-2: rgba(55, 53, 47, 0.65);
  --text-3: rgba(55, 53, 47, 0.45);
  --border: rgba(55, 53, 47, 0.09);
  --border-2: rgba(55, 53, 47, 0.16);
  --hover: rgba(55, 53, 47, 0.06);
  --bg: #ffffff;
  --bg-2: #f7f7f5;
  --blue: #2383e2;
  --today: #eb5757;
  --shadow-card: rgba(15, 15, 15, 0.07) 0 0 0 1px, rgba(15, 15, 15, 0.06) 0 2px 4px;
  --shadow-pop: rgba(15, 15, 15, 0.05) 0 0 0 1px, rgba(15, 15, 15, 0.1) 0 3px 6px, rgba(15, 15, 15, 0.2) 0 9px 24px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Helvetica,
    "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
  --mono: "SFMono-Regular", Menlo, Consolas, "PT Mono", "Liberation Mono", Courier, monospace;

  /* Notion's text / background colour pairs */
  --gray: #787774;   --gray-bg: #f1f1ef;
  --brown: #9f6b53;  --brown-bg: #f4eeee;
  --orange: #d9730d; --orange-bg: #fbecdd;
  --yellow: #cb912f; --yellow-bg: #fbf3db;
  --green: #448361;  --green-bg: #edf3ec;
  --blue-t: #337ea9; --blue-bg: #e7f3f8;
  --purple: #9065b0; --purple-bg: #f6f3f9;
  --pink: #c14c8a;   --pink-bg: #faf1f5;
  --red: #d44c47;    --red-bg: #fdebec;

  /* availability + listing pages */
  --busy: #ebeae7;
  --l-ink: #222222;
  --l-ink2: #6a6a6a;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip; /* wide photo grids break out of the text column; clip keeps the sticky header working */
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: auto;
}
img, video { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---------- top bar ------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 45px;
  padding: 0 12px 0 10px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  transition: box-shadow 0.2s;
}
.topbar.is-scrolled { box-shadow: 0 1px 0 var(--border); }

.crumbs { display: flex; align-items: center; min-width: 0; flex: 1 1 auto; font-size: 14px; }
.crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 2px 6px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  color: var(--text);
}
.crumb span { overflow: hidden; text-overflow: ellipsis; }
.crumb:hover { background: var(--hover); }
.crumb-sep { color: var(--text-3); margin: 0 1px; }
.crumb-icon { width: 16px; height: 16px; object-fit: contain; flex: none; }

.site-nav { display: flex; align-items: center; gap: 2px; flex: none; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  color: var(--text);
}
.nav-link:hover { background: var(--hover); }
.nav-link--on { background: var(--hover); }
.nav-icon { width: 16px; height: 16px; object-fit: contain; }

.topbar-auth { display: flex; align-items: center; gap: 6px; flex: none; margin-left: 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background 0.12s;
}
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--border-2); color: var(--text); }
.btn--ghost:hover { background: var(--hover); }
.btn--dark { background: #2f2f2f; color: #fff; }
.btn--dark:hover { background: #1f1f1f; }
.btn--primary { background: var(--blue); color: #fff; height: 36px; font-size: 14px; }
.btn--primary:hover { background: #0077d4; }
.btn--primary:disabled { opacity: 0.6; cursor: default; }
.btn--block { width: 100%; }

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle:hover { background: var(--hover); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute;
  left: 9px;
  width: 14px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  content: "";
}
.nav-toggle span { top: 15px; }
.nav-toggle span::before { top: -5px; left: 0; }
.nav-toggle span::after { top: 5px; left: 0; }

@media (max-width: 860px) {
  .nav-toggle { display: block; order: 3; }
  .topbar-auth { order: 2; }
  .site-nav {
    position: absolute;
    top: 44px;
    right: 8px;
    flex-direction: column;
    align-items: stretch;
    min-width: 220px;
    padding: 6px;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow-pop);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav-link { height: 34px; padding: 0 10px; }
}
@media (max-width: 480px) {
  .crumb--current:not(:first-child) span { max-width: 38vw; }
  .crumbs .crumb:not(.crumb--current):not(:first-child), .crumbs .crumb-sep:not(:last-of-type) { display: none; }
}

/* ---------- page ---------------------------------------------------------- */

.n-cover { height: 30vh; min-height: 180px; max-height: 280px; overflow: hidden; background: var(--bg-2); }
.n-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 50%; display: block; }

.n-page-content {
  width: 100%;
  max-width: calc(708px + 2 * 96px);
  margin: 0 auto;
  padding: 0 96px 30vh;
}
.n-page--full .n-page-content { max-width: none; }

.n-page:not(.has-cover) .n-page-content { padding-top: 80px; }
.n-page.has-cover:not(.has-icon) .n-page-content { padding-top: 36px; }
.n-page.has-cover.has-icon .n-page-head-icon { margin-top: -42px; }

.n-page-head-icon { position: relative; height: 78px; margin-bottom: 4px; }
.n-big-icon { width: 78px; height: 78px; object-fit: contain; display: block; }
.n-big-icon.n-emoji { font-size: 70px; line-height: 1.1; width: auto; }

.n-page-title {
  margin: 0 0 4px;
  padding: 3px 2px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  word-break: break-word;
}

@media (max-width: 720px) {
  .n-page-content, .n-page--full .n-page-content { padding-left: 24px; padding-right: 24px; }
  .n-page:not(.has-cover) .n-page-content { padding-top: 48px; }
  .n-page-title { font-size: 32px; }
  .n-cover { height: 22vh; min-height: 150px; }
}

/* properties */
.n-props { margin: 8px 0 0; font-size: 14px; }
.n-prop { display: flex; align-items: flex-start; min-height: 34px; padding: 4px 0; }
.n-prop-key { display: flex; align-items: center; gap: 6px; flex: 0 0 160px; color: var(--text-2); line-height: 1.5; padding-top: 1px; }
.n-prop-val { flex: 1 1 auto; min-width: 0; padding: 1px 2px; line-height: 1.5; }
.n-props-rule { margin: 12px 0 18px; }
.pi { display: inline-block; width: 16px; height: 16px; background: currentColor; opacity: 0.7; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.pi-pin { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.2a4.8 4.8 0 0 0-4.8 4.8c0 3.4 4.1 8.2 4.3 8.4a.66.66 0 0 0 1 0c.2-.2 4.3-5 4.3-8.4A4.8 4.8 0 0 0 8 1.2Zm0 6.8a2 2 0 1 1 0-4 2 2 0 0 1 0 4Z'/%3E%3C/svg%3E"); }
.pi-card { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 3h11A1.5 1.5 0 0 1 15 4.5v7a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 1 11.5v-7A1.5 1.5 0 0 1 2.5 3Zm-.2 2.4v1.4h11.4V5.4Zm0 3.6v2.5c0 .1.1.2.2.2h11c.1 0 .2-.1.2-.2V9ZM3.5 10h3v1.2h-3Z'/%3E%3C/svg%3E"); }
@media (max-width: 480px) { .n-prop-key { flex-basis: 110px; } }

/* ---------- blocks -------------------------------------------------------- */

.n-blocks { padding-top: 6px; }
.n-text { margin: 1px 0; padding: 3px 2px; min-height: 1.5em; word-break: break-word; }
.n-empty { height: calc(1.5em + 6px); }
.n-indent { padding-left: 1.5em; }

.n-h { margin: 0; padding: 3px 2px; font-weight: 600; line-height: 1.3; word-break: break-word; }
.n-h1 { font-size: 1.875em; margin-top: 1.6em; margin-bottom: 4px; }
.n-h2 { font-size: 1.5em; margin-top: 1.1em; margin-bottom: 1px; }
.n-h3 { font-size: 1.25em; margin-top: 1em; margin-bottom: 1px; }
.n-blocks > .n-h:first-child, .n-column > .n-h:first-child { margin-top: 0.6em; }

.n-list { margin: 1px 0; padding-left: 1.7em; }
.n-list li { padding: 3px 0 3px 2px; }
ul.n-list > li::marker { font-size: 1.2em; }
.n-list li > .n-list { margin-top: 2px; }
.n-list li > .n-image { margin-top: 6px; }

.n-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(55, 53, 47, 0.4);
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.12s;
}
.n-link:hover { text-decoration-color: currentColor; }

code {
  font-family: var(--mono);
  font-size: 85%;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  background: rgba(135, 131, 120, 0.15);
  color: #eb5757;
}
.n-code { margin: 4px 0; padding: 32px 16px 32px 32px; background: var(--bg-2); border-radius: 4px; overflow-x: auto; font-size: 85%; }
.n-code code { background: none; color: inherit; padding: 0; }

.n-divider { border: 0; border-top: 1px solid var(--border-2); margin: 12px 0; }

.n-quote { margin: 4px 0; padding: 3px 2px 3px 14px; border-left: 3px solid currentColor; font-size: 1.2em; }

.n-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 4px;
  padding: 16px 16px 16px 12px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--border-2);
}
.n-callout[class*="bg-"] { box-shadow: none; }
.n-callout-icon { width: 22px; height: 22px; flex: none; object-fit: contain; margin-top: 1px; }
.n-callout-icon.n-emoji { font-size: 19px; line-height: 22px; text-align: center; }
.n-callout-body { min-width: 0; flex: 1; }
.n-callout-body .n-link { text-decoration-color: currentColor; }

.n-todo { display: flex; gap: 8px; align-items: flex-start; padding: 3px 2px; }
.n-check { width: 16px; height: 16px; margin-top: 4px; border: 1.5px solid currentColor; border-radius: 3px; flex: none; }
.n-todo.done .n-check { background: var(--blue); border-color: var(--blue); }
.n-todo.done > span:last-child { color: var(--text-3); text-decoration: line-through; }

.n-toggle > summary { padding: 3px 2px; cursor: pointer; }

.n-image, .n-video { margin: 6px 0; }
.n-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  cursor: zoom-in;
  background: var(--bg-2);
}
.n-video video { display: block; width: 100%; max-height: 80vh; border-radius: 2px; background: #000; }
figcaption { padding: 6px 2px 0; font-size: 14px; color: var(--text-2); }

.n-columns { display: flex; gap: 46px; margin: 2px 0; }
.n-column { flex: 1 1 0; min-width: 0; }
@media (max-width: 720px) {
  .n-columns { flex-direction: column; gap: 0; }
}

.n-page-link {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 1px 0;
  padding: 3px 2px;
  border-radius: 4px;
  text-decoration: none;
  color: var(--text);
  line-height: 1.5;
  transition: background 0.1s;
}
.n-page-link:hover { background: var(--hover); }
.n-page-icon { width: 19px; height: 19px; object-fit: contain; flex: none; }
.n-page-icon--blank { background: no-repeat center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2337352f' stroke-opacity='.6' stroke-width='1.2'%3E%3Cpath d='M4 1.8h5.2L12.2 5v9.2H4Z'/%3E%3Cpath d='M9 2v3.2h3'/%3E%3C/svg%3E"); }
.n-page-link-title {
  font-weight: 500;
  border-bottom: 1px solid var(--border-2);
  line-height: 1.3;
  transition: border-color 0.12s;
}
.n-page-link:hover .n-page-link-title { border-bottom-color: var(--text-3); }

.n-bookmark { display: block; margin: 4px 0; padding: 12px 14px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--border-2); font-size: 14px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.n-bookmark:hover { background: var(--hover); }

.n-table-wrap { overflow-x: auto; margin: 4px 0; }
.n-table { border-collapse: collapse; font-size: 14px; }
.n-table td, .n-table th { border: 1px solid var(--border-2); padding: 7px 9px; text-align: left; vertical-align: top; }
.n-table th { background: var(--bg-2); font-weight: 500; }

/* colours */
.c-gray { color: var(--gray); } .bg-gray { background: var(--gray-bg); }
.c-brown { color: var(--brown); } .bg-brown { background: var(--brown-bg); }
.c-orange { color: var(--orange); } .bg-orange { background: var(--orange-bg); }
.c-yellow { color: var(--yellow); } .bg-yellow { background: var(--yellow-bg); }
.c-green { color: var(--green); } .bg-green { background: var(--green-bg); }
.c-blue { color: var(--blue-t); } .bg-blue { background: var(--blue-bg); }
.c-purple { color: var(--purple); } .bg-purple { background: var(--purple-bg); }
.c-pink { color: var(--pink); } .bg-pink { background: var(--pink-bg); }
.c-red { color: var(--red); } .bg-red { background: var(--red-bg); }
span.bg-gray, span.bg-brown, span.bg-orange, span.bg-yellow, span.bg-green, span.bg-blue, span.bg-purple, span.bg-pink, span.bg-red { border-radius: 3px; padding: 0 2px; }

/* ---------- gallery ------------------------------------------------------- */

/* Holiday-rental cards: the photo carries the card, text sits underneath. */
.n-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px 24px;
  margin: 16px 0 12px;
}
.n-gallery--large { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
@media (max-width: 720px) { .n-gallery, .n-gallery--large { grid-template-columns: 1fr; gap: 28px; } }

.n-card { display: flex; flex-direction: column; color: var(--l-ink); text-decoration: none; }
.n-card-cover { aspect-ratio: 20 / 17; overflow: hidden; border-radius: 12px; background: var(--bg-2); }
.n-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.n-card:hover .n-card-cover img { transform: scale(1.03); }
.n-card-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 2px 0; }
.n-card-title { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 600; line-height: 1.35; }
.n-card-icon { width: 16px; height: 16px; object-fit: contain; flex: none; opacity: 0.85; }
.n-card-prop { margin-top: 4px; font-size: 15px; line-height: 1.35; }
.n-card-prop strong { font-weight: 600; }
.n-card-avail { display: flex; align-items: center; gap: 7px; min-height: 20px; font-size: 14px; line-height: 1.4; color: var(--l-ink2); }
.n-card-avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--busy); flex: none; }
.n-card-avail:empty::before { display: none; }
.n-card-avail.is-free::before { background: #3aa672; }
.n-card-avail.is-busy::before { background: #e0676c; }
.n-card-avail.is-blocked::before { background: #b0aea8; }

/* ---------- map ----------------------------------------------------------- */

.n-map {
  position: relative;
  height: 520px;
  margin: 12px 0 4px;
  border-radius: 6px;
  overflow: hidden;
  background: #eef0ec;
  box-shadow: inset 0 0 0 1px var(--border);
  z-index: 0;
}
@media (max-width: 720px) { .n-map { height: 380px; } }
/* OSM's default style is loud; greyed out it reads like Notion's calm map and
   the red house pin is the only colour left. */
.n-map .leaflet-tile-pane { filter: grayscale(0.9) contrast(0.88) brightness(1.07); }
.map-pin-label.is-hidden { visibility: hidden; }
.n-map .leaflet-container { font: 13px/1.4 var(--font); }
/* The marker element sits on the coordinate; the pin is shifted so the dot's
   centre is exactly there and the label floats above it. */
.map-pin { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; transform: translate(-50%, calc(-100% + 6px)); cursor: pointer; }
.map-pin-label {
  padding: 3px 8px;
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow-pop);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text);
}
.map-pin-dot { width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; background: var(--today); box-shadow: 0 0 0 3px #fff, 0 1px 4px rgba(0, 0, 0, 0.3); }
.map-pin--poi .map-pin-dot { background: #37352f; }
.leaflet-popup-content-wrapper { border-radius: 8px !important; box-shadow: var(--shadow-pop) !important; }
.leaflet-popup-content { margin: 12px 14px !important; }
.map-pop-title { font-weight: 600; margin-bottom: 2px; }
.map-pop-links a { margin-right: 10px; }
.map-pop-addr { color: var(--text-2); font-size: 12px; margin: 2px 0 6px; }

/* ---------- house pages: listing layout ----------------------------------- */

.is-listing { --l-ink: #222222; --l-ink2: #6a6a6a; --l-line: #dddddd; --l-soft: #f7f7f7; color: var(--l-ink); }
.l-wrap { max-width: 1128px; margin: 0 auto; padding: 24px 40px 96px; }
.l-ico { width: 26px; height: 26px; flex: none; }
.l-ico--sm { width: 18px; height: 18px; }

.l-titlebar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.l-title.n-page-title { margin: 0; padding: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.01em; }
.l-where { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 14px; color: var(--l-ink2); }
.l-where .n-link { color: var(--l-ink); font-weight: 500; }
.l-share {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 8px 10px; border: 0; border-radius: 8px; background: transparent;
  font-size: 14px; font-weight: 600; text-decoration: underline; cursor: pointer;
}
.l-share:hover { background: var(--l-soft); }

/* photos: 1 large + 4 small on desktop, a swipeable strip on phones */
.l-photos { position: relative; }
.l-mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  height: clamp(320px, 36vw, 470px);
  overflow: hidden;
  border-radius: 12px;
}
.l-mosaic--few { grid-template-columns: 2fr 1fr; }
.l-m-item { position: relative; display: block; padding: 0; border: 0; overflow: hidden; background: var(--bg-2); cursor: pointer; }
.l-m-item:first-child { grid-row: 1 / 3; }
.l-m-item:nth-child(n+6) { display: none; }
.l-mosaic--few .l-m-item:nth-child(n+4) { display: none; }
.l-m-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: filter 0.2s; }
.l-m-item:hover img { filter: brightness(0.88); }
.l-m-item:focus-visible { outline: 3px solid #222; outline-offset: -3px; }
.l-allbtn {
  position: absolute; right: 24px; bottom: 24px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border: 1px solid #222; border-radius: 8px; background: #fff;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.l-allbtn:hover { background: var(--l-soft); }
.l-count { display: none; }

.l-body { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 72px; margin-top: 36px; }
.l-main { min-width: 0; }
.l-main > section + section { border-top: 1px solid var(--l-line); }
.l-sec { padding: 32px 0; }
.l-intro { padding-bottom: 28px; }
.l-intro h2 { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.3; }
.l-facts { margin: 6px 0 0; font-size: 16px; }
.l-sec h2 { margin: 0 0 6px; font-size: 22px; font-weight: 600; line-height: 1.3; }
.l-muted { margin: 0 0 22px; font-size: 14px; color: var(--l-ink2); }

.l-hls { display: flex; flex-direction: column; gap: 24px; }
.l-hl { display: flex; align-items: flex-start; gap: 22px; }
.l-hl .l-ico { margin-top: 1px; }
.l-hl-title { font-size: 16px; font-weight: 600; line-height: 1.4; }
.l-hl-sub { margin-top: 2px; font-size: 14px; color: var(--l-ink2); }

/* rooms: one group per Notion column, groups with few rooms share a row */
.l-room-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 32px; margin-top: 20px; }
.l-room-sec--wide { grid-column: 1 / -1; }
.l-room-sec h3 { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
.l-room-sec .n-tiles { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); margin: 0; }
.l-room-extra { margin-top: 10px; font-size: 15px; color: var(--l-ink2); }
.l-room-extra .n-text { padding: 0; }
#prices .n-list { margin-top: 10px; }
@media (max-width: 900px) { .l-room-grid { grid-template-columns: 1fr; } }

/* booking card */
.l-side { position: relative; }
.l-card {
  position: sticky; top: 104px;
  padding: 24px; border: 1px solid var(--l-line); border-radius: 12px; background: #fff;
  box-shadow: rgba(0, 0, 0, 0.12) 0 6px 16px;
}
.l-card-head { margin-bottom: 20px; font-size: 16px; }
.l-card-price strong { font-size: 22px; font-weight: 600; }
.l-fields { position: relative; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #b0b0b0; border-radius: 8px; }
.l-field {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0;
  padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer;
}
.l-field + .l-field { border-left: 1px solid #b0b0b0; border-radius: 0 8px 0 0; }
.l-field:first-child { border-radius: 8px 0 0 0; }
.l-field > span { font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.l-field b { max-width: 100%; overflow: hidden; font-size: 14px; font-weight: 400; color: var(--l-ink2); text-overflow: ellipsis; white-space: nowrap; }
.l-field.has-value b { color: var(--l-ink); }
.l-field.is-active { box-shadow: inset 0 0 0 2px #222; }
.l-field--guests { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid #b0b0b0; border-radius: 0 0 8px 8px !important; cursor: pointer; }
.l-field--guests select { width: 100%; padding: 0; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--l-ink); cursor: pointer; }
.l-cta {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; margin-top: 16px;
  border: 0; border-radius: 8px; background: linear-gradient(90deg, #e5484d 0%, #e23d5c 55%, #d6376f 100%);
  color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; transition: filter 0.15s;
}
.l-cta:hover { filter: brightness(0.94); }
.l-cta:focus-visible { outline: 3px solid #222; outline-offset: 2px; }
.l-cta--sm { width: auto; height: 42px; margin: 0; padding: 0 22px; font-size: 15px; }
.l-cta--block { width: 100%; }
.l-break { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; font-size: 15px; font-variant-numeric: tabular-nums; }
.l-break-row { display: flex; justify-content: space-between; gap: 12px; }
.l-break-row > span:first-child { text-decoration: underline; text-decoration-color: rgba(0, 0, 0, 0.25); text-underline-offset: 3px; }
.l-break-total { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--l-line); font-size: 16px; font-weight: 600; }
.l-break-total > span:first-child { text-decoration: none; }
.l-break-warn { font-size: 14px; color: #c13515; }
.l-card-note { margin: 14px 0 0; font-size: 13px; text-align: center; color: var(--l-ink2); }

/* date popover (desktop) */
.l-pop {
  position: absolute; top: -14px; right: -25px; z-index: 30; width: 690px;
  padding: 24px 32px 18px; border-radius: 16px; background: #fff; box-shadow: rgba(0, 0, 0, 0.22) 0 8px 28px;
}
.l-pop-head { margin-bottom: 14px; }
.l-pop-head b { display: block; font-size: 22px; font-weight: 600; }
.l-pop-head span { font-size: 14px; color: var(--l-ink2); }
.l-pop-foot { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-top: 12px; }

/* date range calendar */
.dr { display: grid; grid-template-columns: repeat(var(--m, 2), minmax(0, 1fr)); gap: 44px; }
.dr-month { min-width: 0; }
.dr-head { position: relative; display: flex; align-items: center; justify-content: center; height: 36px; margin-bottom: 12px; font-size: 16px; font-weight: 600; }
.dr-nav {
  position: absolute; top: 0; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; font-size: 22px; line-height: 1; color: var(--l-ink); cursor: pointer;
}
.dr-prev { left: -6px; }
.dr-next { right: -6px; }
.dr-nav:hover:not(:disabled) { background: var(--l-soft); }
.dr-nav:disabled { color: #dddddd; cursor: default; }
.dr-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 2px; }
.dr-dow { padding-bottom: 8px; font-size: 12px; font-weight: 600; text-align: center; color: var(--l-ink2); }
.dr-d { position: relative; height: 46px; padding: 0; border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--l-ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.dr-d > span { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 44px; max-width: 100%; height: 44px; border-radius: 50%; }
.dr-d:hover:not(:disabled) > span { box-shadow: inset 0 0 0 1.5px var(--l-ink); }
.dr-d:disabled { font-weight: 400; color: #b0b0b0; cursor: default; }
.dr-d.is-busy:disabled { text-decoration: line-through; }
.dr-d.in-range::before, .dr-d.is-start.has-end::before, .dr-d.is-end::before { content: ""; position: absolute; top: 1px; bottom: 1px; background: var(--l-soft); }
.dr-d.in-range::before { left: 0; right: 0; }
.dr-d.is-start.has-end::before { left: 50%; right: 0; }
.dr-d.is-end::before { left: 0; right: 50%; }
.dr-d.is-start > span, .dr-d.is-end > span { background: var(--l-ink); color: #fff; }
.dr-d.is-today > span::after { content: ""; position: absolute; bottom: 7px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.dr-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; font-size: 14px; color: var(--l-ink2); }
.dr-legend s { color: #b0b0b0; margin-right: 4px; }
.dr-clear { padding: 8px; border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--l-ink); text-decoration: underline; cursor: pointer; }

/* map + things to know */
.l-map { height: 460px; margin: 0; border-radius: 12px; }
.map-home { position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: #222; color: #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35); transform: translate(-50%, -50%); }
.map-home svg { width: 22px; height: 22px; }
.l-know { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 18px; }
.l-know h3 { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
.l-know ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.l-know li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.l-know .l-ico--sm { margin-top: 1px; }
.l-know p { margin: 0 0 10px; font-size: 14px; }

/* sticky section bar, appears once the photos are scrolled away */
.l-subnav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--l-line); }
.l-subnav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1128px; height: 76px; margin: 0 auto; padding: 0 40px; }
.l-subnav nav { display: flex; gap: 26px; height: 100%; }
.l-subnav nav a { display: flex; align-items: center; padding-top: 4px; border-bottom: 4px solid transparent; font-size: 14px; font-weight: 600; color: var(--l-ink); text-decoration: none; }
.l-subnav nav a:hover { border-bottom-color: var(--l-ink); }
.l-subnav-side { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.l-subnav-side strong { font-size: 16px; }
.l-mbar { display: none; }

/* all photos, grouped by room */
.tour { position: fixed; inset: 0; z-index: 110; overflow-y: auto; background: #fff; animation: fade 0.18s ease-out; }
.tour-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 24px; background: #fff; border-bottom: 1px solid #ebebeb; }
.tour-close { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; }
.tour-close:hover { background: #f7f7f7; }
.tour-title { font-size: 16px; font-weight: 600; }
.tour-body { max-width: 1040px; margin: 0 auto; padding: 24px 24px 96px; }
.tour-index { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 18px; border-bottom: 1px solid #ebebeb; scrollbar-width: thin; }
.tour-chip { display: flex; flex: none; flex-direction: column; gap: 8px; width: 116px; font-size: 14px; color: #222; text-decoration: none; }
.tour-chip img { width: 116px; height: 86px; object-fit: cover; border-radius: 8px; }
.tour-chip:hover img { filter: brightness(0.9); }
.tour-sec { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 36px 0 8px; scroll-margin-top: 72px; }
.tour-sec-head h3 { margin: 0 0 6px; font-size: 22px; font-weight: 600; }
.n-photos--tour { --row: 220px; margin: 0; }

/* booking request */
.modal--req { width: min(480px, 100%); }
.req-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field--area { height: auto; min-height: 84px; padding: 8px 10px; resize: vertical; line-height: 1.45; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.req-note { margin: 10px 0 0; font-size: 12px; text-align: center; color: var(--text-2); }

@media (max-width: 1120px) {
  .l-body { grid-template-columns: minmax(0, 1fr) 336px; gap: 44px; }
  .l-pop { width: 640px; }
}
@media (max-width: 900px) {
  .l-wrap { display: flex; flex-direction: column; padding: 0 0 110px; }
  .l-photos { order: -1; }
  .l-mosaic { display: flex; gap: 0; height: 68vw; max-height: 460px; overflow-x: auto; border-radius: 0; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .l-mosaic::-webkit-scrollbar { display: none; }
  .l-m-item, .l-m-item:nth-child(n+6), .l-mosaic--few .l-m-item:nth-child(n+4) { display: block; flex: 0 0 100%; scroll-snap-align: start; }
  .l-m-item:hover img { filter: none; }
  .l-allbtn { right: 12px; bottom: 12px; padding: 5px 10px; font-size: 13px; border-color: transparent; background: rgba(255, 255, 255, 0.92); }
  .l-allbtn span { display: none; }
  .l-count { display: block; position: absolute; left: 12px; bottom: 14px; padding: 3px 10px; border-radius: 12px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
  .l-titlebar { padding: 20px 24px 0; margin-bottom: 0; }
  .l-title.n-page-title { font-size: 26px; }
  .l-body { display: block; margin-top: 0; padding: 0 24px; }
  .l-intro { padding-top: 16px; }
  .l-side, .l-subnav { display: none !important; }
  .l-mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--l-line);
  }
  .l-mbar .l-cta { width: auto; height: 48px; margin: 0; padding: 0 22px; }
  .l-mbar-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 14px; }
  .l-mbar-dates { font-size: 13px; font-weight: 600; text-decoration: underline; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dr { gap: 24px; }
  .l-know { grid-template-columns: 1fr; }
  .tour-sec { grid-template-columns: 1fr; gap: 12px; padding: 24px 0 4px; }
  .tour-body { padding: 16px 16px 64px; }
  .n-photos--tour { --row: 110px; }
  .req-two { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 420px) {
  .dr-d { height: 42px; }
  .dr-d > span { width: 40px; height: 40px; }
}

/* ---------- login modal --------------------------------------------------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16vh 16px 16px;
  background: rgba(15, 15, 15, 0.45);
  animation: fade 0.15s ease-out;
}
.modal {
  position: relative;
  width: min(380px, 100%);
  padding: 28px 28px 24px;
  border-radius: 12px;
  background: #fff;
  box-shadow: rgba(15, 15, 15, 0.05) 0 0 0 1px, rgba(15, 15, 15, 0.1) 0 5px 10px, rgba(15, 15, 15, 0.2) 0 15px 40px;
  animation: pop 0.18s ease-out;
}
.modal-title { font-size: 20px; font-weight: 600; line-height: 1.3; }
.modal-sub { margin: 4px 0 18px; font-size: 14px; color: var(--text-2); }
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  color: var(--text-3);
  cursor: pointer;
}
.modal-close:hover { background: var(--hover); color: var(--text); }
.field-label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 500; color: var(--text-2); }
.field {
  display: block;
  width: 100%;
  height: 36px;
  margin-bottom: 14px;
  padding: 4px 10px;
  border: 0;
  border-radius: 6px;
  background: rgba(242, 241, 238, 0.6);
  box-shadow: inset 0 0 0 1px rgba(15, 15, 15, 0.1);
  font: inherit;
  font-size: 15px;
  color: var(--text);
  outline: none;
}
.field:focus { box-shadow: inset 0 0 0 1px rgba(35, 131, 226, 0.57), 0 0 0 2px rgba(35, 131, 226, 0.35); }
.modal-error { margin: -6px 0 12px; font-size: 13px; color: var(--red); }
.modal.shake { animation: shake 0.3s; }

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(0.98); } }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ---------- photo grids --------------------------------------------------- */

/* Justified rows: every photo grows in proportion to its aspect ratio, so a
   row ends flush without cropping; the ::after soaks up the last row's slack. */
.n-photos { --row: 210px; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.n-photos::after { content: ""; flex-grow: 1000000; }
.n-photos--wide {
  --row: 280px;
  --w: min(1180px, calc(100vw - 48px));
  width: var(--w);
  margin-left: calc((100% - var(--w)) / 2);
  gap: 8px;
}
.n-column .n-photos, .n-list .n-photos { --row: 150px; }
.n-photo {
  position: relative;
  flex: var(--ar) 1 calc(var(--ar) * var(--row));
  aspect-ratio: var(--ar);
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-2);
  cursor: zoom-in;
}
.n-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.n-photo:hover img { transform: scale(1.03); }
/* Phones: two landscape photos per row — the viewer is where they get big. */
@media (max-width: 720px) {
  .n-photos, .n-photos--wide, .n-column .n-photos, .n-list .n-photos { --row: 104px; gap: 4px; }
  .n-photo { border-radius: 3px; }
}

/* ---------- room tiles ---------------------------------------------------- */

.n-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; margin: 10px 0 6px; }
.n-tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.15s, transform 0.15s;
}
.n-tile:hover { box-shadow: rgba(15, 15, 15, 0.1) 0 0 0 1px, rgba(15, 15, 15, 0.12) 0 4px 12px; transform: translateY(-1px); }
.n-tile:focus-visible, .n-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.n-tile-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.n-tile-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.n-tile:hover .n-tile-img img { transform: scale(1.04); }
.n-tile-img--empty { display: flex; align-items: center; justify-content: center; }
.n-tile-img .n-tile-fallback { width: 34px; height: 34px; object-fit: contain; opacity: 0.3; transform: none; }
.n-tile-play {
  position: absolute;
  inset: 0;
  width: 40px;
  height: 40px;
  margin: auto;
  border-radius: 50%;
  background: rgba(15, 15, 15, 0.55) no-repeat 55% 50% / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Cpath fill='%23fff' d='M0 0v16l14-8z'/%3E%3C/svg%3E");
}
.n-tile-body { display: flex; align-items: center; gap: 7px; padding: 9px 10px 2px; font-size: 14px; font-weight: 500; line-height: 1.35; }
.n-tile-icon { width: 16px; height: 16px; object-fit: contain; flex: none; opacity: 0.8; }
.n-tile-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.n-tile-meta { padding: 1px 10px 10px 33px; font-size: 12px; color: var(--text-3); }
.n-tile-body:last-child { padding-bottom: 10px; }

/* ---------- photo viewer -------------------------------------------------- */

.lb {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  background: rgba(13, 13, 12, 0.97);
  color: #fff;
  animation: fade 0.18s ease-out;
}
.lb-top { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 12px 12px 20px; font-size: 14px; }
.lb-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-count { color: rgba(255, 255, 255, 0.55); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.2); }
.lb-btn:focus-visible, .lb-thumb:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-btn svg { width: 18px; height: 18px; }
.lb-close { margin-left: auto; flex: none; }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 84px 10px; overflow: hidden; touch-action: pan-y pinch-zoom; }
.lb-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 0.2s ease;
}
.lb-img.is-loading { opacity: 0.3; }
.lb-img.is-dragging { transition: none; }
.lb-nav { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -29px; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-caption { padding: 0 20px 6px; font-size: 14px; text-align: center; color: rgba(255, 255, 255, 0.75); }
.lb-caption:empty { display: none; }
.lb-thumbs { display: flex; gap: 6px; padding: 8px 20px 18px; overflow-x: auto; justify-content: safe center; scrollbar-width: none; }
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumb {
  flex: none;
  width: 76px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #222;
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.15s, box-shadow 0.15s;
}
.lb-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lb-thumb:hover { opacity: 0.8; }
.lb-thumb.is-active { opacity: 1; box-shadow: 0 0 0 2px #fff; }
@media (max-width: 720px) {
  .lb-top { padding: 8px 8px 8px 16px; }
  .lb-stage { padding: 0 0 8px; }
  .lb-nav { display: none; }
  .lb-thumbs { padding: 6px 12px 14px; }
  .lb-thumb { width: 54px; height: 40px; }
}
@media (hover: none) { .lb-nav { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- toast --------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 130;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: 8px;
  background: #222;
  color: #fff;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.18s, transform 0.18s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 900px) { .is-listing .toast { bottom: 96px; } }

/* Anchor jumps land below the sticky header (and the section bar on desktop). */
.l-sec, .l-photos { scroll-margin-top: 88px; }
@media (max-width: 900px) { .l-sec, .l-photos { scroll-margin-top: 56px; } }
