/* ==========================================================================
   Sunshine Homes – main stylesheet
   Sections follow the order of templates/index.html.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face { font-family: "IBM Plex Serif"; src: url("../fonts/IBM_Plex_Serif/IBMPlexSerif-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "IBM Plex Serif"; src: url("../fonts/IBM_Plex_Serif/IBMPlexSerif-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Serif"; src: url("../fonts/IBM_Plex_Serif/IBMPlexSerif-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Serif"; src: url("../fonts/IBM_Plex_Serif/IBMPlexSerif-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Serif"; src: url("../fonts/IBM_Plex_Serif/IBMPlexSerif-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Serif"; src: url("../fonts/IBM_Plex_Serif/IBMPlexSerif-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

/* ---------- Design tokens ---------- */
:root {
  /* Palette: green (teal), yellow (sun) and white, as in the "Let's go!" button */
  --sun: #f3b33d;
  --sun-dark: #e09f22;
  --teal: #3f7f7d;
  --teal-dark: #326664;
  --teal-deep: #1f4746;   /* headings, footer */
  --cream: #faf6ef;       /* page background */
  --sand: #efe7da;        /* dividers */
  --ink: #213a39;         /* body text */
  --muted: #5a6d6b;       /* secondary text */
  --white: #fff;
  --radius-lg: 32px;
  --shadow: 0 18px 50px -20px rgba(31, 71, 70, .28);
  --font-serif: "IBM Plex Serif", Georgia, serif;
}

/* ---------- Base ---------- */
/* "Back to top" and the listing's section links scroll smoothly */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-serif);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* Italic accent words, e.g. "special" */
.accent { font-style: italic; }

/* Line icons from the SVG sprite; they take the current text colour */
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Buttons ---------- */
/* Yellow pill – main call to action ("Find my stay") */
.btn-sun {
  background: var(--sun); color: var(--teal-deep); border: 0; border-radius: 999px;
  padding: 1rem 1.75rem; font: inherit; font-weight: 600; font-size: 1.05rem;
  display: inline-flex; align-items: center; gap: .6rem; white-space: nowrap;
  transition: background-color .2s ease;
}
.btn-sun:hover { background: var(--sun-dark); }
.btn-sun:disabled { background: var(--sun); opacity: .5; cursor: not-allowed; }

/* Green pill – secondary links ("Explore all homes") */
.btn-teal {
  background: var(--teal); color: var(--white); border-radius: 999px; text-decoration: none;
  padding: .95rem 1.75rem; display: inline-flex; align-items: center; gap: .7rem; font-weight: 500;
  transition: background-color .2s ease;
}
.btn-teal:hover { background: var(--teal-dark); color: var(--white); }
.btn-teal .icon { color: var(--sun); }

/* White circle with a single icon (menu, carousel arrow) */
.btn-round {
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  display: inline-grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: var(--teal-deep);
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .35);
  transition: background-color .2s ease;
}
.btn-round:hover { background: var(--white); }

/* ---------- Wavy section edges ----------
   <svg class="wave wave-top|wave-bottom"> stretched across a section.
   The SVG paths use currentColor, so the colour is set here; the
   faint .wave-back layer gives the layered-shoreline look. */
.wave { position: absolute; left: 0; width: 100%; height: 160px; display: block; z-index: 1; color: var(--cream); }
.wave-top { top: -1px; }
.wave-bottom { bottom: -1px; }
.wave-back { opacity: .45; }

/* ==========================================================================
   1. Site header
   ========================================================================== */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  padding: 1.5rem 0;
}
.site-header .logo img { height: 84px; width: auto; display: block; }

/* Sits on the logo's baseline: the wordmark's small caps end ~15px above the
   bottom of the 84px logo image, and are about the same height as this text. */
.main-nav { gap: 2.25rem; align-self: flex-end; margin-bottom: 5px; }
.main-nav a {
  color: var(--white); text-decoration: none; font-size: 1.05rem; font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6), 0 2px 14px rgba(0, 0, 0, .55);
  position: relative; padding: .25rem 0;
}
/* Yellow underline that slides in on hover */
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--sun); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }
.owner-login {
  position: absolute; top: -.5rem; right: calc(var(--bs-gutter-x) * .5); align-items: center; gap: .35rem;
  color: var(--white); text-decoration: none; font-size: .85rem; font-weight: 500; text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}
.owner-login:hover { text-decoration: underline; }

/* The menu button is a <details>; its links open below the header */
.site-header .container { position: relative; }
.mobile-menu summary { list-style: none; cursor: pointer; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-nav {
  position: absolute; left: .75rem; right: .75rem;
  background: var(--white); border-radius: 24px; margin-top: 1rem;
  padding: 1rem 1.5rem; box-shadow: var(--shadow);
}
.mobile-nav a { display: block; padding: .7rem 0; color: var(--teal-deep); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--sand); }
.mobile-nav a:last-child { border-bottom: 0; }

/* ==========================================================================
   2. Hero
   ========================================================================== */
.hero {
  position: relative; min-height: 760px; height: 100vh; max-height: 980px;
  color: var(--white); overflow: hidden;
  display: flex; align-items: center;
}
.hero-image {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
/* Dark gradient over the image so the white text stays readable */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(20, 50, 49, .72) 0%, rgba(20, 50, 49, .45) 45%, rgba(20, 50, 49, .05) 80%),
    linear-gradient(180deg, rgba(20, 50, 49, .55) 0%, rgba(20, 50, 49, 0) 28%);
}
.hero .container { position: relative; z-index: 2; padding-bottom: 170px; }
.hero .wave { height: 170px; z-index: 2; }

.hero-tagline { font-size: clamp(1.2rem, 1.8vw, 1.5rem); color: var(--white); display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.hero-tagline .icon { color: var(--sun); width: 1.3em; height: 1.3em; }
.hero-title {
  font-weight: 600; font-size: clamp(3rem, 7vw, 5.6rem); line-height: 1.02; letter-spacing: -.02em;
  margin: 0 0 1.5rem; text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}
.hero-lead { font-size: 1.25rem; line-height: 1.6; max-width: 26rem; font-weight: 400; text-shadow: 0 1px 2px rgba(0, 0, 0, .6), 0 2px 16px rgba(0, 0, 0, .55); }

/* ==========================================================================
   3. Search bar
   ========================================================================== */
/* Pulled up so the bar overlaps the hero's wavy edge */
.search-section { position: relative; z-index: 5; margin-top: -150px; }
.search-bar {
  background: var(--white); border-radius: 999px; box-shadow: var(--shadow);
  padding: 1rem 1rem 1rem 2.25rem;
  display: flex; align-items: center; gap: 0;
}
.search-field {
  flex: 1 1 0; min-width: 0; padding: .25rem 1.25rem; border-right: 1px solid var(--sand);
}
.search-field:first-child { padding-left: 0; }
.search-field:nth-last-child(2) { border-right: 0; }  /* last field before the button */
.search-field label { display: block; font-size: .85rem; font-weight: 600; color: var(--teal-deep); margin-bottom: .35rem; }
.search-input { display: flex; align-items: center; gap: .6rem; color: var(--muted); }
.search-input .icon { color: var(--teal-deep); }
.search-input input, .search-input select, .search-input .date-range-toggle {
  border: 0; background: transparent; font: inherit; font-size: .95rem; color: var(--ink);
  width: 100%; min-width: 0; padding: .2rem 0; outline: none; appearance: none; -webkit-appearance: none;
}
.search-input select { cursor: pointer; padding-right: 1.4rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6d6b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right center / 16px;
}
.search-input input:focus-visible, .search-input select:focus-visible, .search-input .date-range-toggle:focus-visible { box-shadow: 0 2px 0 var(--sun); }

/* ==========================================================================
   4. Homes
   ========================================================================== */
.homes-section { padding: 6rem 0 7rem; overflow-x: clip; }  /* the carousel bleeds past the container edges */

/* Small italic line above a section title */
.eyebrow { font-style: italic; color: var(--teal); font-size: 1.15rem; display: inline-flex; align-items: center; gap: .4rem; }
.section-title { font-weight: 400; font-size: clamp(2.2rem, 3.6vw, 2.9rem); color: var(--teal-deep); line-height: 1.1; margin: .25rem 0 1.5rem; }
.section-title .accent { color: var(--teal); display: block; }
.homes-intro p { color: var(--muted); font-size: 1.1rem; line-height: 1.7; max-width: 22rem; }

/* Carousel: a horizontally scrolling grid that snaps to each card.
   The extra padding (cancelled by negative margin) leaves room for the
   card shadows and the lifted card on hover, which would otherwise be
   clipped by the scroll container. */
.homes-carousel { position: relative; }
.homes-carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 2.5rem) / 3);
  gap: 2.5rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 2.5rem 1.75rem 4rem; margin: -2.5rem -1.75rem -4rem; scroll-padding-inline: 1.75rem;  /* narrower than the gap less the photos' 10px overhang, so no sliver of the next card shows */
  /* the shadows fade out at the sides instead of ending in a hard edge */
  --fade: 1rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
}
/* With home.js running, only the arrows (or a swipe on a touch screen) move it */
.homes-carousel.is-ready .homes-carousel-track { overflow-x: hidden; }
@media (hover: none) and (pointer: coarse) {
  .homes-carousel.is-ready .homes-carousel-track { overflow-x: auto; scrollbar-width: none; }
  .homes-carousel.is-ready .homes-carousel-track::-webkit-scrollbar { display: none; }
}

/* Arrows on the carousel's sides, level with the middle of the photos
   (home.js sets --arrow-y); they fade out at either end */
.carousel-arrow, .carousel-dots { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.carousel-arrow {
  position: absolute; top: var(--arrow-y, 30%); z-index: 2; width: 54px; height: 54px;
  transform: translateY(-50%); transition: opacity .25s ease, background-color .2s ease, transform .2s ease;
}
.carousel-arrow:hover { background: var(--sun); transform: translateY(-50%) scale(1.06); }
.carousel-arrow:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.carousel-arrow[aria-disabled="true"] { opacity: 0; pointer-events: none; }
.carousel-arrow[aria-disabled="true"]:focus-visible { opacity: .5; }
.carousel-prev { left: -27px; }
.carousel-prev .icon { transform: scaleX(-1); }
.carousel-next { right: -27px; }

/* A dot per place the carousel can stop at; the current one is a sun pill */
.carousel-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 2rem; }
.carousel-dots button {
  position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px;
  background: rgba(63, 127, 125, .25); transition: width .3s ease, background-color .3s ease;
}
.carousel-dots button::after { content: ""; position: absolute; inset: -8px -4px; }  /* easier to hit */
.carousel-dots button:hover { background: var(--teal); }
.carousel-dots button.is-active { width: 28px; background: var(--sun); }

/* Apartment card */
.home-card {
  position: relative;
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  scroll-snap-align: start; display: flex; flex-direction: column;
  transition: transform .3s ease;
}
.home-card:hover { transform: translateY(-6px); }

/* Photo with a wavy outline that sticks out 10px past the card edges */
.home-photo { position: relative; aspect-ratio: 4 / 4.3; clip-path: url(#photo-shape); margin: -10px -10px 0; }
.home-card:nth-child(2) .home-photo { clip-path: url(#photo-shape-alt); }
.home-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.home-card:hover .home-photo img { transform: scale(1.05); }

.home-details { padding: 1rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }

/* Title: always two lines tall so cards line up; longer names end in "…" */
.home-title {
  font-size: 1.35rem; font-weight: 500; color: var(--teal-deep); margin: 0 0 .4rem; line-height: 1.25; min-height: 2.5em;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.home-title a { text-decoration: none; }
.home-title a::after { content: ""; position: absolute; inset: 0; }  /* makes the whole card clickable */

.home-location { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .9rem; margin: 0 0 .85rem; }
.home-facts { display: flex; gap: 1.5rem; padding: 0 0 1rem; list-style: none; color: var(--muted); font-size: .9rem; border-bottom: 1px solid var(--sand); margin: 0 0 1rem; }
.home-facts li { display: inline-flex; align-items: center; gap: .4rem; }
.home-price { margin: auto 0 0; color: var(--muted); }
.home-price strong { color: var(--teal-deep); font-weight: 600; font-size: 1.1rem; }

/* ==========================================================================
   5. Newsletter
   ========================================================================== */
.newsletter {
  position: relative; color: var(--white);
  background: url("../img/istockphoto-831479234-1024x1024.jpg") center 55% / cover no-repeat;
  padding: 13rem 0 15rem;
}
/* Teal gradient over the photo so the text stays readable */
.newsletter::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20, 50, 49, .55) 0%, rgba(20, 50, 49, .28) 45%, rgba(20, 50, 49, 0) 100%);
}
.newsletter .container { position: relative; z-index: 2; }
.newsletter-title { font-weight: 500; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1.05; margin-bottom: 1rem; }
.newsletter-title .icon { color: var(--sun); width: .8em; height: .8em; vertical-align: middle; }
.newsletter-text { font-size: 1.1rem; line-height: 1.6; max-width: 22rem; margin: 0; }

/* Email field and button joined in one white pill */
.signup-form {
  display: flex; background: var(--white); border-radius: 999px; padding: .4rem; box-shadow: var(--shadow); max-width: 30rem; margin-left: auto;
}
.signup-form:focus-within { box-shadow: var(--shadow), 0 0 0 3px rgba(243, 179, 61, .6); }
.signup-form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .8rem 1.25rem; font: inherit; color: var(--ink); outline: none; }
.signup-form button {
  border: 0; border-radius: 999px; background: var(--teal); color: var(--white); font: inherit; font-weight: 600;
  padding: .8rem 1.5rem; display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
  transition: background-color .2s ease;
}
.signup-form button:hover { background: var(--teal-dark); }
.signup-form button .icon { color: var(--sun); }

/* ==========================================================================
   6. Features
   ========================================================================== */
/* Pulled up so the card overlaps the newsletter band */
.features-section { position: relative; z-index: 3; margin-top: -9rem; }
.features-card { background: var(--white); border-radius: 40px; box-shadow: var(--shadow); padding: 2.75rem 2.5rem; }
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature-icon { width: 48px; height: 48px; color: var(--teal); stroke-width: 1.3; }
.feature h3 { font-size: 1.05rem; font-weight: 600; color: var(--teal-deep); margin: 0 0 .35rem; line-height: 1.25; }
.feature p { font-size: .9rem; color: var(--muted); line-height: 1.55; margin: 0; }

/* ==========================================================================
   7. Site footer
   ========================================================================== */
.site-footer { background: var(--teal-deep); color: rgba(255, 255, 255, .82); margin-top: 9rem; position: relative; padding: 5rem 0 2rem; }
.site-footer .wave { color: var(--teal-deep); top: -159px; }  /* sits just above the footer */
.site-footer .wave-back { opacity: .35; }
.site-footer .logo img { height: 72px; width: auto; }
.site-footer a { text-decoration: none; color: rgba(255, 255, 255, .9); }
.site-footer a:hover { color: var(--sun); }
.site-footer address, .site-footer ul { font-style: normal; line-height: 1.8; margin: 0; padding: 0; list-style: none; }

.footer-about { max-width: 20rem; margin: 0; }
.footer-heading { font-weight: 500; color: var(--sun); font-size: 1.15rem; margin-bottom: .75rem; }

.contact-link { display: inline-flex; align-items: center; gap: .6rem; }
.contact-link .icon { color: var(--sun); }

.site-footer .btn-whatsapp {
  display: inline-flex; align-items: center; gap: .6rem; margin-top: 1rem;
  background: #25d366; color: #fff; font-weight: 600; border-radius: 999px; padding: .7rem 1.3rem;
  transition: background-color .2s ease;
}
.site-footer .btn-whatsapp:hover { background: #1ebe5b; color: #fff; }

.footer-copyright { border-top: 1px solid rgba(255, 255, 255, .15); margin: 3rem 0 0; padding-top: 1.5rem; font-size: .85rem; color: rgba(255, 255, 255, .6); }

/* Round WhatsApp button that stays in the bottom-right corner while scrolling */
.whatsapp-floating-button {
  position: fixed; right: 2%; bottom: 4%; z-index: 998;
  width: 57px; height: 57px; border-radius: 50%; display: grid; place-items: center;
  background: #03e676; color: #fff; box-shadow: 0 2px 10px 0 rgba(0, 0, 0, .15);
  transition: background-color .2s ease;
}
.whatsapp-floating-button:hover { background: #1ebe5b; color: #fff; }
.whatsapp-floating-button .icon { width: 32px; height: 32px; }

/* ==========================================================================
   8. About page (templates/about.html)
   ========================================================================== */
/* Shorter hero for inner pages */
.hero-short { height: 70vh; min-height: 520px; max-height: 680px; }
.hero-short .container { padding-top: 9rem; }  /* keeps the title clear of the logo */

.about-section { padding: 2rem 0 3rem; }
.about-section .section-title .accent { display: inline; }
.about-section p { color: var(--teal-deep); font-size: 1.2rem; line-height: 1.8; margin-bottom: 1.5rem; }

/* ==========================================================================
   9. Contact page (templates/contact.html)
   ========================================================================== */
/* Pulled up so the card overlaps the hero's wavy edge */
.contact-section { position: relative; z-index: 3; margin-top: -12rem; }
.contact-card { background: var(--white); border-radius: 40px; box-shadow: var(--shadow); padding: 3rem; }
.contact-card .section-title .accent { display: inline; }
.contact-card .form-label { font-size: .9rem; font-weight: 600; color: var(--teal-deep); margin-bottom: .4rem; }
.contact-card .form-control {
  font: inherit; color: var(--ink); background: var(--cream); border: 1px solid var(--sand); border-radius: 16px; padding: .8rem 1.1rem;
}
.contact-card .form-control:focus { border-color: var(--sun); box-shadow: 0 0 0 3px rgba(243, 179, 61, .35); background: var(--white); }
.contact-card .form-check-input { border-color: var(--teal); }
.contact-card .form-check-input:checked { background-color: var(--teal); border-color: var(--teal); }
.contact-card .form-check-input:focus { box-shadow: 0 0 0 3px rgba(243, 179, 61, .35); }
.contact-card .form-check-label { color: var(--muted); }

.faq-section { padding: 5rem 0 2rem; }
.faq-section .section-title .accent { display: inline; }
.faq-list { margin-bottom: 4rem; }
.faq-item { border-bottom: 1px solid var(--sand); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
  font-size: 1.15rem; font-weight: 500; color: var(--teal-deep);
}
.faq-item summary::-webkit-details-marker { display: none; }
/* Plus sign that turns into a cross when open */
.faq-item summary::after {
  content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.8rem; font-weight: 300; line-height: 1; color: var(--teal); transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--teal); }
.faq-item p, .faq-item ul { color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.faq-item p:last-child, .faq-item ul:last-child { margin-bottom: 1.5rem; }
.faq-outro { color: var(--teal-deep); font-size: 1.15rem; margin: 0; }

/* ==========================================================================
   10. Property Management page (templates/property_management.html)
   ========================================================================== */
/* Ten numbered steps */
.steps-section { padding: 2rem 0 4rem; }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
/* One card per row, alternating left and right with a margin on the other side */
.step { position: relative; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 2rem 2rem 1.75rem 6.25rem; margin-right: 18%; }
.step:nth-child(even) { margin-right: 0; margin-left: 18%; }
.step-number {
  position: absolute; left: 2rem; top: 1.75rem; width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--sun); color: var(--teal-deep); font-weight: 600; font-size: 1.2rem;
}
.step:nth-child(even) .step-number { background: var(--teal-deep); color: var(--white); }
.step h3 { font-size: 1.3rem; font-weight: 500; color: var(--teal-deep); margin: .6rem 0 .6rem; line-height: 1.25; }
.step p { color: var(--muted); line-height: 1.7; margin: 0; }

/* "Once these steps are completed, we go online" */
.online-section { padding: 2rem 0 4rem; }
.online-card { background: var(--teal-deep); color: rgba(255, 255, 255, .88); border-radius: 40px; padding: 3.5rem 2rem; text-align: center; }
.online-card > .icon { width: 64px; height: 64px; color: var(--sun); margin-bottom: 1rem; }
.online-card .section-title { color: var(--white); }
.online-card .section-title .accent { color: var(--sun); display: inline; }
.online-card p { font-size: 1.15rem; line-height: 1.7; max-width: 32rem; margin: 0 auto; }
.online-card .online-relax { font-style: italic; color: var(--sun); margin-top: 1.5rem; }

.pm-contact-section { padding: 2rem 0; }

/* ==========================================================================
   11. Rentals page (templates/rentals.html)
   ========================================================================== */
/* Keep the villa's lit front and the top of the pool in the short hero */
.rentals-hero .hero-image { object-position: 50% 45%; }
/* Dates and town need more room than the small number pickers */
.rentals-search .search-field { flex: .8 1 0; }
.rentals-search .search-field:nth-child(-n+2) { flex-grow: 1.4; }

/* Map at the bottom of the page, full-bleed. Its top is masked with a wavy
   edge, and the footer's wave (which is 9rem below the page content, see
   .site-footer) is pulled up over its bottom with a negative margin, so the
   map flows into the footer. */
.map-section {
  --map-wave: 120px;            /* wavy mask over the top of the map */
  --map-wave-bottom: 160px;     /* the footer's wave over the bottom (.site-footer .wave) */
  margin: 4rem 0 -9rem;         /* cancels .site-footer's margin-top */
}
.rentals-map {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 160' preserveAspectRatio='none'%3E%3Cpath d='M0,90 C180,50 360,50 540,82 S900,128 1080,96 S1320,58 1440,70 L1440,160 L0,160 Z'/%3E%3C/svg%3E") top / 100% var(--map-wave) no-repeat,
                linear-gradient(#000 0 0) bottom / 100% calc(100% - var(--map-wave) + 1px) no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 160' preserveAspectRatio='none'%3E%3Cpath d='M0,90 C180,50 360,50 540,82 S900,128 1080,96 S1320,58 1440,70 L1440,160 L0,160 Z'/%3E%3C/svg%3E") top / 100% var(--map-wave) no-repeat,
                linear-gradient(#000 0 0) bottom / 100% calc(100% - var(--map-wave) + 1px) no-repeat;
}
/* Keep the zoom buttons below the top curve and the attribution above the footer's wave */
.rentals-map .leaflet-top { top: var(--map-wave); }
.rentals-map .leaflet-bottom { bottom: var(--map-wave-bottom); }
/* Full-bleed map. .leaflet-container is repeated to win over leaflet.css,
   which loads after this file. Keep within VIEW_PX in
   scripts/download_osm_tiles.py (2560 x 1000), the largest map the tiles fill. */
.rentals-map.leaflet-container {
  /* visible height, plus the parts tucked under the waves */
  height: calc(min(25.6vw, 48vh, 800px) + var(--map-wave) + var(--map-wave-bottom));
  min-height: calc(288px + var(--map-wave) + var(--map-wave-bottom));
  background: #aad3df;  /* OSM sea colour, shown while tiles load */
  font-family: var(--font-serif); z-index: 0;  /* keep Leaflet's panes under the header and WhatsApp button */
}
/* OpenStreetMap credit (required by their licence): a small cream pill in the site's type */
.rentals-map .leaflet-control-attribution.leaflet-control {
  margin: 0 0 6px 12px; padding: .1rem .6rem; border-radius: 999px;
  background: rgba(250, 246, 239, .8); color: var(--muted);
  font-family: var(--font-serif); font-size: .72rem; line-height: 1.6;
}
.rentals-map .leaflet-control-attribution a { color: var(--teal-deep); text-decoration: none; }
.rentals-map .leaflet-control-attribution a:hover { text-decoration: underline; }
/* Map pin popups: the home's name and price */
.map-popup .leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: var(--shadow); font-family: var(--font-serif); }
.map-popup .leaflet-popup-content { margin: .7rem 1rem; line-height: 1.4; }
.map-popup-title { display: block; color: var(--teal-deep); font-weight: 600; text-decoration: none; }
.map-popup-title:hover { text-decoration: underline; }
.map-popup-price { display: block; color: var(--muted); font-size: .85rem; margin-top: .15rem; }
/* Home markers: green pin with a yellow centre */
.map-pin { background: none; border: 0; }
.map-pin svg { display: block; filter: drop-shadow(0 3px 4px rgba(31, 71, 70, .35)); }
.map-pin-body { fill: var(--teal); stroke: var(--white); stroke-width: 2; }
.map-pin-dot { fill: var(--sun); }
/* Numbered bubbles for grouped pins (Leaflet.markercluster's 40px icon):
   a soft yellow halo around a green circle */
.marker-cluster { background: rgba(243, 179, 61, .45); border-radius: 50%; }
.marker-cluster div {
  width: 30px; height: 30px; margin: 5px; border-radius: 50%; border: 2px solid var(--white);
  display: grid; place-items: center; background: var(--teal); color: var(--white);
  font-weight: 600; font-size: .9rem; box-shadow: 0 3px 6px rgba(31, 71, 70, .35);
}

/* "What makes your stay special?" – feature pills. Each pill is a label
   around a hidden checkbox; a selected pill turns green. */
/* Stacked above the hero's wave (.hero .wave is z-index 2): on wide screens
   the one-line search bar is shorter than the 150px it's pulled up by, so
   this section starts just inside the hero, and the wave would cover the pills */
.features-filter { position: relative; z-index: 3; padding: 3rem 0 1.25rem; }
.filter-title { display: flex; align-items: center; gap: .75rem; font-size: 1.35rem; font-weight: 500; color: var(--teal-deep); line-height: 1.3; margin: 0; }
.filter-title .icon { color: var(--sun); width: 2rem; height: 2rem; }
.feature-pills { display: flex; flex-wrap: wrap; gap: .75rem; }
.feature-pill {
  position: relative; display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; user-select: none;
  padding: .6rem 1.15rem; border-radius: 999px; background: var(--white); border: 1px solid var(--sand);
  color: var(--teal-deep); font-size: .95rem; box-shadow: 0 6px 16px -10px rgba(31, 71, 70, .3);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.feature-pill input { position: absolute; opacity: 0; pointer-events: none; }
.feature-pill .icon { color: var(--teal); }
.feature-pill:hover { border-color: var(--teal); }
.feature-pill:has(input:checked) { background: var(--teal); border-color: var(--teal); color: var(--white); }
.feature-pill:has(input:checked) .icon { color: var(--sun); }
.feature-pill:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(243, 179, 61, .6); }

/* "N homes found", sort menu and the grid/map switch */
.results-section { padding: 1rem 0 0; }
.results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.results-count { font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 500; color: var(--teal-deep); margin: 0; }
/* The number, larger and bold */
.results-number { font-size: 1.9em; font-weight: 700; color: var(--teal); line-height: 1; margin-right: .1em; }
.results-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.results-sort { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .95rem; }
.results-sort select {
  font: inherit; font-size: .95rem; color: var(--teal-deep); cursor: pointer; appearance: none; -webkit-appearance: none;
  border: 1px solid var(--sand); border-radius: 999px; padding: .55rem 2.5rem .55rem 1.1rem;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6d6b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1rem center / 16px;
}
.results-sort select:focus-visible { outline: none; border-color: var(--sun); box-shadow: 0 0 0 3px rgba(243, 179, 61, .35); }
.view-toggle { display: flex; gap: .5rem; }
.view-option {
  display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--sand); background: var(--white); color: var(--teal-deep); text-decoration: none; font-size: .95rem;
}
a.view-option:hover { border-color: var(--teal); }
.view-option.is-active { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--white); }

/* Home cards: a large photo with three thumbnails beside it */
.rentals-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.rental-card {
  position: relative; display: flex; flex-direction: column; padding: .6rem;
  background: var(--white); border-radius: 28px; box-shadow: var(--shadow); transition: transform .3s ease;
}
.rental-card:hover { transform: translateY(-6px); }
.rental-card[hidden] { display: none; }
.rental-gallery { display: grid; grid-template-columns: 3fr 1fr; gap: 10px; aspect-ratio: 16 / 10; }
.rental-gallery img { object-fit: cover; display: block; }
.rental-photo { position: relative; border-radius: 20px; overflow: hidden; }
.rental-photo img { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .6s ease; }
.rental-card:hover .rental-photo img { transform: scale(1.05); }
/* Thumbnails as small polaroids: a white frame (deeper at the bottom), each
   a little bigger than a third of the column so they overlap each other,
   the main photo and the card's right edge, at a slight tilt. They fan out
   on hover. */
.rental-thumbs { position: relative; }
.rental-thumb {
  position: absolute; left: -10px; width: calc(100% + 34px); height: 42%; box-sizing: border-box;
  padding: 5px 5px 15px; background: var(--white); border-radius: 4px;
  box-shadow: 0 6px 14px -6px rgba(31, 71, 70, .45);
  transform: rotate(var(--tilt)); transition: transform .3s ease;
}
.rental-thumb:nth-child(1) { --tilt: 4deg; top: -5%; }
.rental-thumb:nth-child(2) { --tilt: -3deg; top: 29%; }
.rental-thumb:nth-child(3) { --tilt: 2.5deg; top: 63%; }
.rental-card:hover .rental-thumb { transform: rotate(calc(var(--tilt) * 1.6)) translateX(3px); }

/* "Top pick" label in the photo's top-left corner */
.rental-badge {
  position: absolute; top: .75rem; left: .75rem; z-index: 2; display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .85rem .3rem .55rem; border-radius: 999px; background: var(--teal-deep); color: var(--white); font-size: .85rem; font-weight: 500;
}
.rental-badge .icon, .rental-rating .icon { fill: var(--sun); stroke: var(--sun-dark); }

/* Text below the photos; reuses .home-title, .home-location, .home-facts
   and .home-price from the homepage cards */
.rental-details { padding: 1rem .9rem .5rem; display: flex; flex-direction: column; flex: 1; }
.rental-card .home-title { font-size: 1.2rem; }
.rental-card .home-facts { flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .85rem; padding: 0; border: 0; margin: 0 0 .9rem; }
.rental-amenities { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 1rem; }
.rental-amenities li {
  display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem; border-radius: 999px;
  background: var(--cream); border: 1px solid var(--sand); color: var(--teal-deep); font-size: .78rem;
}
.rental-amenities .icon { color: var(--teal); }
.rental-footer { margin-top: auto; padding-top: .85rem; border-top: 1px solid var(--sand); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.rental-footer .home-price { margin: 0; }
.rental-rating { display: inline-flex; align-items: center; gap: .3rem; color: var(--muted); font-size: .88rem; margin: 0; }
.rental-rating strong { color: var(--teal-deep); font-weight: 600; }
.rentals-empty { text-align: center; color: var(--muted); font-size: 1.1rem; padding: 2rem 0; margin: 0; }

/* Pagers above and below the homes, filled in by rentals.js: round buttons,
   the current page in dark green */
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem; margin: 0 0 2rem; }
.pager[hidden] { display: none; }
.pager-bottom { margin: 2.5rem 0 0; }
.back-to-top { text-align: center; margin: 2rem 0 0; }
.back-to-top .icon { transform: rotate(-90deg); }  /* the right arrow, pointing up */
.pager-btn {
  min-width: 42px; height: 42px; padding: 0 .6rem; border-radius: 999px; display: inline-grid; place-items: center;
  border: 1px solid var(--sand); background: var(--white); color: var(--teal-deep); font: inherit; font-weight: 500;
  transition: background-color .2s ease, border-color .2s ease;
}
.pager-btn:hover:not(:disabled):not([aria-current]) { border-color: var(--teal); }
.pager-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(243, 179, 61, .6); }
.pager-btn[aria-current="page"] { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--white); font-weight: 600; }
.pager-btn:disabled { opacity: .4; cursor: default; }
.pager-prev .icon { transform: scaleX(-1); }
.pager-gap { color: var(--muted); padding: 0 .2rem; }

/* ==========================================================================
   12. Listing page (templates/listing.html)
   ========================================================================== */
/* Hero: title, location and rating, and the action buttons */
.listing-hero .hero-image { object-position: 50% 55%; }
/* Taller than the other short heroes, so the buttons clear the photo mosaic
   that is pulled up over the bottom of the hero */
.listing-hero { height: 82vh; min-height: 640px; max-height: 820px; }
.listing-hero .container { padding-bottom: 230px; }
.listing-title { font-size: clamp(2.3rem, 4.6vw, 3.8rem); max-width: 48rem; margin-bottom: 1rem; }
.listing-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: 1.05rem; margin-bottom: 1.75rem; text-shadow: 0 1px 2px rgba(0, 0, 0, .6), 0 2px 14px rgba(0, 0, 0, .5); }
.listing-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.icon-star-filled { fill: var(--sun); stroke: var(--sun-dark); }
.listing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.listing-actions .btn-sun { text-decoration: none; }
/* Dark green pill with white text, for the secondary buttons over the photo */
.btn-deep {
  display: inline-flex; align-items: center; gap: .5rem; padding: .9rem 1.3rem; border: 0; border-radius: 999px;
  background: var(--teal-deep); color: var(--white); font: inherit; font-weight: 500;
  transition: background-color .2s ease;
}
.btn-deep:hover { background: var(--teal-dark); }
.btn-deep .icon { color: var(--sun); }
.btn-deep[aria-pressed="true"] .icon { fill: var(--sun); }

/* Photo mosaic on the hero's wavy edge: one large photo and four small ones */
.listing-gallery-section { position: relative; z-index: 5; margin-top: -150px; }
.listing-gallery {
  display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px;
  height: clamp(320px, 34vw, 460px); padding: .6rem; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.listing-gallery-item { position: relative; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--sand); display: block; cursor: zoom-in; }
.listing-gallery-item:first-child { grid-row: 1 / -1; border-radius: 24px 12px 12px 24px; }
.listing-gallery-item:nth-child(3) { border-top-right-radius: 24px; }
.listing-gallery-item:last-child { border-bottom-right-radius: 24px; }
.listing-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.listing-gallery-item:hover img { transform: scale(1.05); }
.listing-gallery-item:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
/* "Show all N photos": a white pill on the mosaic's bottom-right corner */
.listing-gallery-frame { position: relative; }
.gallery-show-all {
  position: absolute; right: 1.5rem; bottom: 1.5rem;
  display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.15rem; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: var(--teal-deep); font-size: .92rem; font-weight: 600; text-decoration: none;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .45); transition: background-color .2s ease, transform .2s ease;
}
.gallery-show-all:hover { background: var(--white); color: var(--teal-deep); transform: translateY(-2px); }
.gallery-show-all:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.gallery-show-all .icon { color: var(--teal); }

/* Photo viewer: fills the window, with the count, name and close button on
   top, the photo and arrows in the middle and the thumbnails underneath */
.photo-viewer {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--white); overflow: hidden;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;  /* clicking fast doesn't select (and paint blue) the page */
}
.photo-viewer[open] { display: grid; grid-template: auto minmax(0, 1fr) auto / minmax(0, 1fr); animation: photo-viewer-in .25s ease; }
.photo-viewer::backdrop { background: rgba(16, 38, 37, .95); }
@keyframes photo-viewer-in { from { opacity: 0; } }
body:has(.photo-viewer[open]) { overflow: hidden; }  /* the page stays put behind it */
.photo-viewer-bar { display: flex; align-items: center; gap: 1rem; padding: 1rem 1rem 0; }
.photo-viewer-count { margin: 0; min-width: 4.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.photo-viewer-title { margin: 0; flex: 1; min-width: 0; text-align: center; color: rgba(255, 255, 255, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-viewer-close { margin-left: calc(4.5rem - 48px); }  /* balances the count, so the name is centred */
/* Every photo is scaled, up or down, to fill the stage with its own
   proportions (--ratio, set by listing.js): as wide as the stage, or as tall,
   whichever comes first */
.photo-viewer-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 1.25rem 5.5rem; container-type: size; }
.photo-viewer-stage img {
  --ratio: 1.5;
  width: min(100cqw, 100cqh * var(--ratio)); height: auto; aspect-ratio: var(--ratio); object-fit: cover; border-radius: 16px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6); transition: opacity .2s ease;
}
.photo-viewer-stage img.is-loading { opacity: .35; }
.photo-viewer-prev, .photo-viewer-next { position: absolute; top: 50%; transform: translateY(-50%); }
.photo-viewer-prev { left: 1.25rem; }
.photo-viewer-prev .icon { transform: scaleX(-1); }
.photo-viewer-next { right: 1.25rem; }
.photo-viewer .btn-round:hover { background: var(--sun); }
.photo-viewer .btn-round:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
/* Thumbnails: centred, scrolling sideways when they don't fit */
.photo-viewer-thumbs { list-style: none; display: flex; gap: .5rem; margin: 0; padding: .4rem 1.5rem 1.25rem; overflow-x: auto; scrollbar-width: none; }
.photo-viewer-thumbs::-webkit-scrollbar { display: none; }
.photo-viewer-thumbs li:first-child { margin-left: auto; }
.photo-viewer-thumbs li:last-child { margin-right: auto; }
.photo-viewer-thumbs button {
  display: block; width: 76px; height: 56px; padding: 0; border: 0; border-radius: 10px; overflow: hidden;
  background: rgba(255, 255, 255, .08); opacity: .5; outline: 2px solid transparent; outline-offset: 2px;
  transition: opacity .2s ease, outline-color .2s ease;
}
.photo-viewer-thumbs button:hover { opacity: .85; }
.photo-viewer-thumbs button[aria-current] { opacity: 1; outline-color: var(--sun); }
.photo-viewer-thumbs button:focus-visible { opacity: 1; outline-color: var(--white); }
.photo-viewer-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-facts { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2rem; padding: 0; margin: 1.75rem 0 0; color: var(--muted); }
.listing-facts li { display: inline-flex; align-items: center; gap: .5rem; }
.listing-facts .icon { color: var(--teal); }
.listing-facts strong { color: var(--teal-deep); font-weight: 600; }

/* Section links that stick to the top of the window */
.listing-nav {
  position: sticky; top: 0; z-index: 10; margin-top: 2.5rem;
  background: rgba(250, 246, 239, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--sand);
}
.listing-nav .container { display: flex; gap: 2rem; overflow-x: auto; scrollbar-width: none; }
.listing-nav .container::-webkit-scrollbar { display: none; }
.listing-nav a { flex-shrink: 0; padding: 1rem 0; color: var(--muted); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; }
.listing-nav a:hover { color: var(--teal-deep); }
.listing-nav a[aria-current] { color: var(--teal-deep); border-color: var(--sun); }

/* Sections beside the booking card */
.listing-section { padding: 3rem 0; border-bottom: 1px solid var(--sand); scroll-margin-top: 3.5rem; }
.listing-section:last-child { border-bottom: 0; }
.listing-heading { font-size: clamp(1.7rem, 2.6vw, 2.1rem); font-weight: 500; color: var(--teal-deep); margin: 0 0 1.25rem; }
.listing-subheading { font-size: 1.1rem; font-weight: 600; color: var(--teal-deep); margin: 1.75rem 0 .75rem; }
.listing-text { color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
/* White pills, like the Rentals page's feature pills */
.listing-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.5rem 0 0; }
.listing-chips li {
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: 999px;
  background: var(--white); border: 1px solid var(--sand); color: var(--teal-deep); font-size: .92rem;
}
.listing-chips .icon { color: var(--teal); }
.bedroom-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; padding: 0; margin: 0; }
.bedroom-list li { display: flex; flex-direction: column; gap: .25rem; padding: 1.1rem 1.2rem; border-radius: 20px; background: var(--white); border: 1px solid var(--sand); color: var(--muted); font-size: .92rem; }
.bedroom-list .icon { width: 1.7em; height: 1.7em; color: var(--teal); margin-bottom: .25rem; }
.bedroom-list strong { color: var(--teal-deep); font-weight: 600; font-size: 1rem; }

/* Amenities in three columns of ticked lists; notes in small type underneath */
.amenity-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2rem; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; align-items: flex-start; gap: .6rem; padding: .3rem 0; color: var(--ink); }
.check-list .icon { color: var(--teal); stroke-width: 2.2; margin-top: .1em; }
.check-list small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.info-card { height: 100%; padding: 1.5rem; border-radius: 24px; background: var(--white); border: 1px solid var(--sand); }
.info-card .listing-subheading { margin-top: 0; }
/* Two-column rows: label on the left, value on the right */
.price-list { margin: 0; }
.price-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--sand); }
.price-list > div:last-child { border-bottom: 0; }
.price-list dt { font-weight: 400; color: var(--ink); }
.price-list dd { margin: 0; color: var(--teal-deep); font-weight: 600; text-align: right; white-space: nowrap; }
.cancellation-list dd { white-space: normal; }

/* Check-in, check-out and deposit tiles */
.schedule { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 0; margin: 0 0 .5rem; }
.schedule li { display: flex; gap: .9rem; padding: 1.25rem; border-radius: 20px; background: var(--white); border: 1px solid var(--sand); color: var(--muted); font-size: .9rem; }
.schedule .icon { width: 1.8em; height: 1.8em; color: var(--teal); }
.schedule strong { display: block; color: var(--teal-deep); font-size: 1.15rem; font-weight: 600; margin: .1rem 0; }
.schedule small { display: block; font-size: .8rem; line-height: 1.4; }

/* Prices */
/* Rounded with the corner cells rather than overflow: hidden, which would clip the caption */
.rates-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: 1px solid var(--sand); border-radius: 20px; }
.rates-table th:first-child { border-top-left-radius: 19px; }
.rates-table th:last-child { border-top-right-radius: 19px; }
.rates-table caption { caption-side: top; color: var(--muted); font-size: .9rem; padding: 0 0 .6rem; }
.rates-table th { font-weight: 600; font-size: .85rem; color: var(--muted); background: var(--cream); padding: .75rem 1.25rem; text-align: left; }
.rates-table td { padding: .75rem 1.25rem; border-top: 1px solid var(--sand); }
.rates-table th:last-child, .rates-table td:last-child { text-align: right; }
.rates-table strong { color: var(--teal-deep); font-weight: 600; }
.offer-card { display: flex; align-items: center; gap: 1.25rem; padding: 1.5rem; border-radius: 24px; background: var(--teal-deep); color: rgba(255, 255, 255, .85); margin-top: 1.9rem; }
.offer-amount { font-size: 2.6rem; font-weight: 700; color: var(--sun); line-height: 1; text-align: center; }
.offer-amount small { display: block; font-size: .9rem; font-weight: 500; color: var(--white); }
.offer-card p { margin: 0; font-size: .92rem; line-height: 1.5; }
.offer-card strong { display: block; color: var(--white); font-size: 1.05rem; font-weight: 600; margin-bottom: .2rem; }

/* Availability: months side by side in a scrolling track */

.calendar-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 1.5rem) / 3); gap: 1.5rem;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem;
}
.calendar-month { width: 100%; border-collapse: separate; border-spacing: 3px; scroll-snap-align: start; table-layout: fixed; }
.calendar-month caption { caption-side: top; color: var(--teal-deep); font-weight: 600; padding: 0 3px .4rem; }
.calendar-month th { color: var(--muted); font-size: .75rem; font-weight: 500; text-align: center; padding-bottom: .2rem; }
.calendar-month td { padding: 0; }
.calendar-day {
  display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--white); color: var(--teal-deep); font-size: .85rem;
}
.calendar-day.is-past { background: transparent; color: #b9c4c3; }
.calendar-day.is-booked { background: var(--sand); color: var(--muted); text-decoration: line-through; }
.calendar-legend { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 0; margin: 1.25rem 0 0; color: var(--muted); font-size: .9rem; }
.calendar-legend li { display: inline-flex; align-items: center; gap: .5rem; }
.calendar-legend .calendar-day { width: 1.2rem; height: 1.2rem; border-radius: 5px; border: 1px solid var(--sand); }

.listing-licences { margin-top: 1rem; }
.listing-licences dl { margin: 0; color: var(--muted); font-size: .85rem; }
.listing-licences dl > div { display: flex; flex-wrap: wrap; gap: .25rem 1rem; padding: .2rem 0; }
.listing-licences dd { margin: 0; color: var(--teal-deep); word-break: break-all; }

/* Booking card: sticks below the section links on large screens */
.booking-card { position: sticky; top: 5rem; z-index: 4; margin: 3rem 0; padding: 1.75rem; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); scroll-margin-top: 4.5rem; }
.booking-price { color: var(--muted); margin: 0; }
.booking-price strong { color: var(--teal-deep); font-size: 1.9rem; font-weight: 600; }
.booking-rating { display: flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .9rem; margin: .25rem 0 1.25rem; }
.booking-rating strong { color: var(--teal-deep); }
.booking-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.booking-fields label { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--teal-deep); }
.booking-dates { grid-column: 1 / -1; }
.booking-fields input, .booking-fields select, .booking-fields .date-range-toggle {
  font: inherit; font-size: .95rem; font-weight: 400; color: var(--ink); background: var(--cream);
  border: 1px solid var(--sand); border-radius: 14px; padding: .65rem .8rem; width: 100%; min-width: 0;
}
.booking-fields input:focus, .booking-fields select:focus, .booking-fields .date-range-toggle:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 3px rgba(243, 179, 61, .35); background: var(--white); }
.booking-summary { margin: 1.25rem 0; }
.booking-hint { color: var(--muted); font-size: .92rem; margin: 0; }
.booking-error { color: #a8432c; font-size: .92rem; margin: 0; }
.booking-summary .price-list dt { color: var(--muted); }

.booking-total dt, .booking-total dd { font-weight: 700; color: var(--teal-deep); font-size: 1.1rem; }
.booking-form .btn-sun { width: 100%; justify-content: center; }
.booking-contact { display: flex; gap: .75rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--sand); }
.booking-contact a {
  flex: 1; display: inline-flex; justify-content: center; align-items: center; gap: .5rem; padding: .65rem;
  border: 1px solid var(--sand); border-radius: 999px; color: var(--teal-deep); text-decoration: none; font-weight: 500;
}
.booking-contact a:hover { border-color: var(--teal); }
.booking-contact .icon { color: var(--teal); }

/* Location: distances, then the map running into the footer */
.listing-location { padding: 3rem 0 0; border-top: 1px solid var(--sand); scroll-margin-top: 3.5rem; }
.distance-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 2.5rem; }
.listing-map { margin-top: 2rem; }

/* ==========================================================================
   13. Live data, forms and states (homes from Avantio, HTMX updates)
   ========================================================================== */
/* Where a home has no photo yet: sand with the sun */
.photo-placeholder {
  width: 100%; height: 100%; min-height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--sand), #f6efe3); color: var(--sun);
}
.photo-placeholder .icon { width: 3.25rem; height: 3.25rem; stroke-width: 1.2; }
.home-photo .photo-placeholder, .rental-photo .photo-placeholder { position: absolute; inset: 0; }
.rental-gallery.is-single { grid-template-columns: 1fr; }
.listing-gallery-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; height: clamp(220px, 24vw, 300px); }
.listing-gallery-empty .photo-placeholder { border-radius: 24px; height: auto; flex: 1; }
.listing-gallery-empty p { margin: 0 0 .25rem; color: var(--muted); }
/* Mosaics with fewer than five photos */
.listing-gallery[data-count="1"] { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.listing-gallery[data-count="1"] .listing-gallery-item:first-child { border-radius: 24px; }
.listing-gallery[data-count="2"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.listing-gallery[data-count="2"] .listing-gallery-item:last-child { border-radius: 12px 24px 24px 12px; }
.listing-gallery[data-count="3"] { grid-template-columns: 2fr 1fr; }
.listing-gallery[data-count="3"] .listing-gallery-item:nth-child(2) { border-top-right-radius: 24px; }
.listing-gallery[data-count="3"] .listing-gallery-item:nth-child(3) { border-radius: 12px 12px 24px 12px; }
.listing-gallery[data-count="4"] { grid-template-columns: 2fr 1fr 1fr; }
.listing-gallery[data-count="4"] .listing-gallery-item:nth-child(2) { grid-row: 1 / -1; border-radius: 12px; }
/* A hero without a photo: the dark green behind the usual gradient */
.hero-no-photo { background: var(--teal-deep); }
.homes-message { grid-column: 1 / -1; align-self: center; color: var(--muted); font-size: 1.1rem; line-height: 1.7; max-width: 32rem; margin: 0; }

/* Children's ages, under the Rentals search bar (white pills) and in the
   booking card (its own field style) */
.search-ages { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 1rem 0 0; padding: .75rem 1.5rem; background: var(--white); border-radius: 999px; box-shadow: var(--shadow); }
.search-ages-title { font-size: .85rem; font-weight: 600; color: var(--teal-deep); }
.search-ages .child-age { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; color: var(--muted); }
.search-ages select {
  font: inherit; font-size: .9rem; color: var(--ink); border: 1px solid var(--sand); border-radius: 999px; padding: .3rem 2rem .3rem .8rem; cursor: pointer; appearance: none; -webkit-appearance: none;
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6d6b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .6rem center / 14px;
}
.booking-ages { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }

/* Messages next to the controls they're about, in the site's palette */
.search-feedback { margin: 1rem 0 0; }
.form-error, .form-success { margin: 0 0 1rem; font-size: .95rem; line-height: 1.5; }
.form-error { color: #a8432c; }

.form-success { display: flex; align-items: flex-start; gap: .6rem; color: var(--teal-deep); font-size: 1.1rem; }
.form-success .icon { color: var(--teal); stroke-width: 2.2; margin-top: .15em; }

.form-about { display: flex; align-items: center; gap: .5rem; color: var(--muted); margin: -.5rem 0 1.5rem; }
.form-about .icon { color: var(--teal); }
.form-about a { color: var(--teal-deep); font-weight: 600; }

/* Loading: the old results are dimmed and a turning sun says it's busy */
@keyframes sunshine-turn { to { transform: rotate(360deg); } }
.results-loading { display: none; align-items: center; gap: .45rem; color: var(--muted); font-size: .95rem; }
.results-loading .icon { color: var(--sun); animation: sunshine-turn 1.6s linear infinite; }
.results-section.htmx-request .results-loading { display: inline-flex; }
.results-body { transition: opacity .2s ease; }
.results-section.htmx-request .results-body { opacity: .45; pointer-events: none; }

/* Pager links are links now (they work without JavaScript) */
a.pager-btn { text-decoration: none; }

/* Listing page: what the API adds */
.listing-lead { color: var(--teal-deep); font-size: 1.2rem; font-weight: 500; margin-bottom: 1rem; }
.price-hint { font-size: .95rem; margin: 1rem 0 0; }

.price-note { display: block; color: var(--muted); font-size: .8rem; }
.schedule { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.calendar-day.is-request { background: var(--white); box-shadow: inset 0 0 0 1.5px rgba(243, 179, 61, .9); }
.calendar-legend .calendar-day.is-request { border-color: var(--sun); box-shadow: none; }
/* The booking card's price: dimmed while a new one is asked for */
.booking-summary { position: relative; transition: opacity .2s ease; }
.booking-summary.htmx-request > * { opacity: .4; }
.booking-summary.htmx-request::after {
  content: "Checking the price…"; position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--teal-deep); font-size: .92rem; font-weight: 600;
}

/* Reviews */
.review-score { display: flex; align-items: center; gap: .4rem; color: var(--muted); margin: 0 0 1.25rem; }
.review-score strong { color: var(--teal-deep); font-size: 1.4rem; font-weight: 600; }
.review-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.review-card { padding: 1.25rem 1.5rem; border-radius: 24px; background: var(--white); border: 1px solid var(--sand); }
.review-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.review-title { color: var(--teal-deep); font-weight: 600; font-size: 1.05rem; }
.review-rating { display: inline-flex; align-items: center; gap: .3rem; color: var(--teal-deep); font-weight: 600; white-space: nowrap; }
.review-meta { color: var(--muted); font-size: .85rem; margin: .2rem 0 .75rem; }
.review-text { color: var(--ink); line-height: 1.65; margin: 0 0 .5rem; }
.review-label { color: var(--teal); font-weight: 600; }
.review-response { margin: .75rem 0 0; padding: .75rem 1rem; border-radius: 16px; background: var(--cream); color: var(--muted); font-size: .92rem; line-height: 1.6; }

/* Newsletter sign-up answers, on the photo band */
.signup-done, .signup-error { margin: .85rem 0 0; font-size: 1.05rem; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.signup-done { display: flex; align-items: center; gap: .5rem; padding: .9rem 1.4rem; border-radius: 999px; background: var(--white); color: var(--teal-deep); text-shadow: none; box-shadow: var(--shadow); }
.signup-done .icon { color: var(--sun); }
.signup-error { color: #ffe1d6; padding-left: 1.25rem; }

/* Blog */
.blog-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.blog-card { padding: 1.75rem 2rem; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.blog-date { color: var(--muted); font-size: .9rem; margin: 0 0 .35rem; }
.about-section .blog-date { font-size: .95rem; margin-bottom: 1rem; }
.blog-title { font-size: 1.4rem; font-weight: 500; color: var(--teal-deep); margin: 0 0 .5rem; }
.blog-title a { text-decoration: none; }
.blog-title a:hover { text-decoration: underline; }
.about-section .blog-summary { color: var(--muted); font-size: 1.05rem; margin: 0; }

@media (max-width: 767.98px) {
  .listing-gallery[data-count] .listing-gallery-item { grid-row: auto; border-radius: 12px; }
  .listing-gallery[data-count="1"] .listing-gallery-item, .listing-gallery[data-count="2"] .listing-gallery-item { grid-column: 1 / -1; border-radius: 24px; }
}
@media (max-width: 575.98px) {
  .search-ages { border-radius: 24px; padding: .75rem 1rem; }
  .blog-card { padding: 1.5rem; }
}

/* ==========================================================================
   14. Dates (partials/date_range.html, static/js/dates.js)
   ========================================================================== */
/* One field for check-in and check-out; the calendar opens under it */
.date-range { position: relative; flex: 1; min-width: 0; }
.date-range-toggle { cursor: pointer; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.date-range-toggle.is-empty { color: var(--muted); }
.date-range-panel {
  position: absolute; top: calc(100% + 1rem); left: 0; right: auto; z-index: 30; margin: 0; padding: 0;
  width: max-content; max-width: none; border: 0; border-radius: 24px; background: var(--white); color: var(--ink); box-shadow: var(--shadow);
}
.booking-card .date-range-panel { left: auto; right: 0; }  /* opens over the details beside the card */
.date-range-sheet { padding: 1.25rem 1.5rem; }
.date-range-head { display: flex; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.date-range-status { flex: 1; margin: 0; text-align: center; font-weight: 600; color: var(--teal-deep); }
.date-range-prev, .date-range-next {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 1px solid var(--sand); border-radius: 50%;
  background: var(--white); color: var(--teal-deep); cursor: pointer;
}
.date-range-prev .icon { transform: scaleX(-1); }
.date-range-prev:disabled, .date-range-next:disabled { opacity: .35; cursor: default; }
.date-range-months { display: grid; grid-template-columns: repeat(2, 17.5rem); gap: 2.5rem; }
.date-range-month { width: 100%; border-collapse: separate; border-spacing: 0 2px; table-layout: fixed; }
.date-range-month caption { caption-side: top; text-align: center; color: var(--teal-deep); font-weight: 600; padding-bottom: .5rem; }
.date-range-month th { color: var(--muted); font-size: .75rem; font-weight: 500; text-align: center; padding-bottom: .25rem; }
.date-range-month td { padding: 0; }
/* Free days in bold; on request with a sun ring; booked ones crossed out */
.date-range-day {
  display: grid; place-items: center; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--teal-deep); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
}
.date-range-day:hover:not(.is-disabled) { box-shadow: inset 0 0 0 1.5px var(--teal-deep); }
.date-range-day.is-request:not(.is-disabled) { box-shadow: inset 0 0 0 1.5px var(--sun); }
.date-range-day.is-disabled { color: #b9c4c3; font-weight: 400; cursor: default; }
.date-range-day.is-booked.is-disabled { text-decoration: line-through; }
.date-range-day.is-between { background: var(--cream); border-radius: 0; }
.date-range-day.is-start, .date-range-day.is-end { background: var(--teal-deep); color: var(--white); }
.date-range-day:focus-visible { outline: 2px solid var(--sun); outline-offset: 1px; }
.date-range-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .75rem 1.25rem;
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--sand);
}
.date-range-legend { display: flex; gap: 1rem; margin: 0 auto 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .85rem; }
.date-range-legend li { display: flex; align-items: center; gap: .4rem; }
.date-range-legend .date-range-day { width: 1.6rem; font-size: .75rem; cursor: default; }
.date-range-clear { border: 0; background: none; padding: 0; color: var(--teal-deep); font-weight: 500; text-decoration: underline; cursor: pointer; }
.date-range-panel::backdrop { background: rgba(31, 71, 70, .45); }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Below xl: the Rentals search bar has more fields, so it wraps sooner */
@media (max-width: 1199.98px) {
  .rentals-search .search-bar { flex-wrap: wrap; border-radius: 28px; padding: 1.25rem; gap: 1rem 0; }
  .rentals-search .search-field { flex: 1 1 25%; border-right: 0; padding: 0 .75rem; }
  .rentals-search .search-field:first-child { padding-left: .75rem; }
  .rentals-search .btn-sun { flex: 1 1 100%; justify-content: center; }
}

/* Below lg: tablet */
@media (max-width: 991.98px) {
  .site-header .logo img { height: 60px; }
  .hero { height: auto; min-height: 640px; }
  .hero .container { padding-top: 8rem; padding-bottom: 180px; }
  .listing-hero { height: auto; }
  .listing-hero .container { padding-bottom: 210px; }
  .hero-short { min-height: 480px; }
  .contact-section { margin-top: -10rem; }
  .contact-card { padding: 2rem 1.5rem; border-radius: 28px; }
  .steps-list { gap: 1.5rem; }
  .step { margin-right: 8%; }
  .step:nth-child(even) { margin-left: 8%; }
  .rentals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-section { margin-top: -170px; }
  .search-bar { flex-wrap: wrap; border-radius: 28px; padding: 1.25rem; gap: 1rem 0; }
  .search-field { flex: 1 1 50%; border-right: 0; padding: 0 .75rem; }
  .search-field:first-child { padding-left: .75rem; }
  .search-bar .btn-sun { flex: 1 1 100%; justify-content: center; }
  .homes-section { padding-top: 4rem; }
  .homes-carousel-track { grid-auto-columns: 46%; }
  .signup-form { margin: 2rem 0 0; }
  .features-card { padding: 2rem; }
  .amenity-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking-card { position: static; margin: 0 0 3rem; }
}

/* Below md: one home card per row */
@media (max-width: 767.98px) {
  .rentals-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .listing-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
  .listing-gallery-item { aspect-ratio: 4 / 3; }
  .listing-gallery-item:first-child { grid-row: auto; grid-column: 1 / -1; border-radius: 24px 24px 12px 12px; }
  .listing-gallery-item:nth-child(3) { border-top-right-radius: 12px; }
  .listing-gallery-item:nth-child(4) { border-bottom-left-radius: 24px; }
  .amenity-groups, .schedule { grid-template-columns: minmax(0, 1fr); }
  .calendar-track { grid-auto-columns: calc((100% - 1.5rem) / 2); }
  .date-range-months { grid-template-columns: 17.5rem; }
  .date-range-month + .date-range-month { display: none; }
  .offer-card { margin-top: 0; }
}

/* Below sm: phone */
@media (max-width: 575.98px) {
  .container { --bs-gutter-x: 2.75rem; }
  .wave, .hero .wave { height: 90px; }
  .map-section { --map-wave: 90px; --map-wave-bottom: 90px; }
  .rentals-search .search-bar { padding: 1rem .75rem; }
  .rentals-search .search-field, .rentals-search .search-field:first-child { flex-basis: 50%; padding: 0 .4rem; }
  .rentals-search .search-field-wide, .rentals-search .search-field-dates { flex-basis: 100%; }
  .site-footer .wave { top: -89px; }
  .search-field { flex-basis: 100%; }
  /* Two even columns, so the pills line up instead of wrapping raggedly */
  .feature-pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .feature-pill { padding: .5rem .8rem; font-size: .9rem; line-height: 1.2; }
  .feature-pill .icon { flex-shrink: 0; }
  .homes-carousel-track { grid-auto-columns: 84%; padding-inline: 1.25rem; margin-inline: -1.25rem; scroll-padding-inline: 1.25rem; --fade: .5rem; }
  .carousel-arrow { width: 44px; height: 44px; }
  .carousel-prev { left: -12px; }
  .carousel-next { right: -12px; }
  .gallery-show-all { right: 1.1rem; bottom: 1.1rem; padding: .5rem .95rem; font-size: .85rem; }
  .photo-viewer-stage { padding: 1rem .75rem; }
  .photo-viewer-prev, .photo-viewer-next { width: 42px; height: 42px; }
  .photo-viewer-prev { left: 1.1rem; }
  .photo-viewer-next { right: 1.1rem; }
  .photo-viewer-thumbs { padding-inline: 1rem; }
  .photo-viewer-thumbs button { width: 60px; height: 44px; }
  .newsletter { padding: 8rem 0 12rem; }
  .signup-form { flex-direction: column; border-radius: 24px; gap: .4rem; }
  .signup-form button { justify-content: center; }
  .step, .step:nth-child(even) { padding: 1.75rem 1.5rem; margin-inline: 0; }
  .step-number { position: static; margin-bottom: .25rem; }
  .online-card { padding: 2.5rem 1.5rem; border-radius: 28px; }
  .listing-gallery-item:nth-child(n+3):not(:last-child) { display: none; }  /* main photo, one more and the last */
  .listing-gallery-item:nth-child(2) { border-bottom-left-radius: 24px; }
  .listing-gallery-item:last-child { border-top-right-radius: 12px; }
  .calendar-track { grid-auto-columns: 100%; }
  .date-range-panel { position: fixed; inset: auto 0 0; width: 100%; border-radius: 24px 24px 0 0; }
  .date-range-months { grid-template-columns: minmax(0, 1fr); }
  .btn-deep { padding: .75rem 1.1rem; }
}

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