/* The big slogan is a paragraph and the smaller line under it is the page's <h1> (2026-10-11): the
   heading a search engine reads says what the site offers and where, and the look is unchanged -
   each carries here what the h1/h3 it replaced took from main/style.css. */
.container.top .hero-slogan, .container.top .hero-title {
    color: white;
    position: absolute;
    text-align: center;
    font-weight: 400;
}

.container.top .hero-slogan {
    top: 18%;
    letter-spacing: 1px;
    font-family: var(--primary-font);
    font-size: 3.2em;
    margin: 0.67em 0 30px;
}

.container.top .hero-title {
    top: 30%;
    font-family: var(--tertiary-font);
    font-size: 1.2em;
    margin: 1em 0;
}

.container.top form.toolbar.availability.lite {
    position: absolute;
    text-align: center;
    top: 38%;
    left: 50%;
    transform: translateX(-50%);
}

.container.text-boxes.iconic,
.container.text-boxes.services {
    height: 30vh;
}

.container.text-boxes.iconic .text-box,
.container.text-boxes.services .text-box {
    top: 10%;
    padding: 0;
}

.container.text-boxes.iconic .text-box h2,
.container.text-boxes.services .text-box h2 {
    /* Same hex as the icon above it (var(--secondary-color), #946700) - font-weight: 200 was
       thin enough that the identical color read as pale/washed-out next to the icon's bold 2px
       stroke (2026-09-11, per Thomas: "change the titles... to fit with the changed colour").
       500 gives it equal visual saturation/presence without going heavy. */
    font-weight: 500;
    font-size: 1.5em;
    margin: 15px 0 0 0;
}

.container.text-boxes.iconic .text-box-content,
.container.text-boxes.services .text-box-content {
    line-height: 1.6;
    margin: 0;
}

.container.text-boxes.memorable,
.container.text-boxes.not-all {
    height: fit-content;
}

.container.text-boxes.memorable .text-box.wide h3,
.container.text-boxes.not-all .text-box.wide h3 {
    color: var(--primary-color);
    /* Same pale-at-large-size issue the icon titles had (2026-09-11) - 200 read washed out at
       2em. 400 (vs. the icon titles' 500) keeps more of this section's softer, pull-quote feel
       while still giving the blue real presence. */
    font-weight: 400;
    font-size: 2.0em;
    margin: 0;

}
.container.text-boxes.memorable .text-box.wide,
.container.text-boxes.not-all .text-box.wide {
    width: 100%;
    padding: 0 20px;
}

.container.text-boxes.memorable .text-box.wide p {
    line-height: 1.7;
}

/* The link under each icon box, to the page that says more (13 November 2026, per Thomas): the
   same look as "See all reviews on Google" below. */
/* margin-top: auto, so the three links of a row share a line however the paragraphs above wrap
   (they differ by a line in Portuguese and French): the boxes of a row are equally tall. */
.container.text-boxes .text-box-link {
    margin-top: auto;
    padding-top: 12px;
    color: var(--primary-color);
    font-family: var(--secondary-font);
    font-size: 0.9em;
    text-decoration: none;
}

.container.text-boxes .text-box-link:hover {
    text-decoration: underline;
}

/* With the link, a box is taller than the row's fixed 30vh on an ordinary laptop screen, and the
   link ran into the gap before the next section. On a wide screen the row is now as tall as its
   boxes, never less than the 30vh it was, with the boxes' 10% offset as padding (a percentage
   "top" is nothing once the height is auto). Narrower screens already had height: auto. */
@media (min-width: 1001px) {
    .container.text-boxes.iconic,
    .container.text-boxes.services {
        height: auto;
        min-height: 30vh;
        box-sizing: border-box;
        padding-top: 3vh;
    }

    .container.text-boxes.iconic .text-box,
    .container.text-boxes.services .text-box {
        top: 0;
    }
}

/* "Why book direct with us": four reasons in a row, no icons, so the row is only as tall as its
   text (13 November 2026, per Thomas). From a tablet up the row is a grid and each reason shares its
   two rows (subgrid), so the four paragraphs start on one line even when a title takes two, as two
   do in Portuguese and French; a one-line title then sits on the lower line, next to its text. Two
   reasons to a row on a tablet; one on a phone, by the rule for every icon row further down. */
/* Both sections with a heading over a row ("Why book direct" and "And that's not all...") keep
   40px from heading to row, and the row inside adds nothing below it, so the section ends at its
   links and the usual 60px follows (18 November 2026, per Thomas: the last one had 144px above its
   row and 120px below it, from the top icon row's 30vh/3vh and the inner .container's own 60px
   bottom margin; only "Why book direct" had been given these). */
.container.text-boxes.not-all {
    row-gap: 40px;
}

.container.text-boxes.not-all > .container.text-boxes.services {
    min-height: 0;
    padding-top: 0;
    margin-bottom: 0;
}

/* A line under the heading ("From booking to check-out...") ends without the paragraph's default
   bottom margin, so the 40px above is the whole gap, as under "Why book direct with us". */
.container.text-boxes.not-all > .text-box.wide p {
    margin-bottom: 0;
}

.container.text-boxes.services.reasons {
    min-height: 0;
    padding-top: 0;
    margin-bottom: 0;
    row-gap: 36px;
}

.container.text-boxes.services.reasons .text-box h2 {
    margin-top: 0;
    padding-top: 0;
}

@media (min-width: 769px) {
    .container.text-boxes.services.reasons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 32px;
        row-gap: 0;
    }

    .container.text-boxes.services.reasons .text-box {
        width: auto;
        display: grid;
        grid-template-rows: subgrid;
        grid-row: span 2;
        justify-items: center;
        align-items: start;
    }

    .container.text-boxes.services.reasons .text-box h2 {
        align-self: end;
    }

    .container.text-boxes.services.reasons .text-box:nth-child(-n+2) {
        margin-bottom: 36px;
    }
}

/* Four in a row only from 1300px: below that a column is too narrow for even the English titles
   ("Pay in euros or pounds." took two lines at 1001-1299px), and a row of one- and two-line titles
   looked uneven (18 November 2026, per Thomas, from the Portuguese page). With two to a row, and the
   Portuguese and French titles shortened the same day, every title fits on one line at every width
   from 769px. */
@media (min-width: 1300px) {
    .container.text-boxes.services.reasons {
        grid-template-columns: repeat(4, 1fr);
    }

    .container.text-boxes.services.reasons .text-box:nth-child(-n+2) {
        margin-bottom: 0;
    }
}

.container.text-boxes .text-box-link.reasons-more {
    width: 100%;
    margin-top: 0;
    padding-top: 0;
    text-align: center;
}

/* The picture tiles are links too: the picture brightens under the pointer, the title stays. */
.container.mosaic.ornate a.tile img {
    transition: filter 0.3s ease;
}

.container.mosaic.ornate a.tile:hover img {
    filter: brightness(0.85);
}

/* "From €75 a night" under a complex's name (13 November 2026, per Thomas). The name is centred on
   the tile by the tile's flex; this sits a line below the middle, and goes with the name on hover. */
.container.mosaic.simple .tile .tile-price {
    top: calc(50% + 2.2rem);
    margin: 0;
    font-family: var(--secondary-font);
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

/* Reviews (2026-09-11, per Thomas) - real, verified Google reviews from the business's own
   Google Business Profile (https://share.google/XqNo5hNeTk9uLXnMk), pasted in and trimmed for
   length where noted, never invented - see the "See all reviews on Google" link at the bottom,
   which lets a visitor verify these against the live listing directly.

   Block-level override of .container's own flex/100vh base (same reasoning as
   .container.mosaic.simple above) - a heading followed by a card grid doesn't fit that shape.
   The card grid itself uses the same repeat(auto-fit, minmax(...)) technique as
   .container.mosaic.simple's tiles, for the same reason: 5 reviews is again not a clean multiple
   of any fixed column count, and auto-fit tiles them evenly at whatever count exists (3, 5, or a
   future 4/6) without ever needing a redesign. */
.container.reviews {
    display: block;
    height: auto;
    box-sizing: border-box;
    /* No top padding - every .container already carries a 60px bottom margin (see
       --primary-margin-bottom) as the standard inter-section gap; adding 40px here on top of
       that gave this one section a 100px gap instead of the usual 60px (2026-09-11, per Thomas -
       spotted it looked bigger than the gap above it). Horizontal padding stays, for the heading/
       cards' own breathing room at narrow viewports where .container.center's max-width isn't
       actually constraining anything. */
    padding: 0 20px;
}

.container.reviews h2 {
    margin-bottom: 30px;
}

/* "5.0 on Google, from 32 reviews" (13 November 2026, per Thomas): tucked up under the heading,
   keeping the heading's 30px to the cards. The star is the cards' own. */
.reviews-rating {
    margin: -18px 0 30px;
    text-align: center;
    font-family: var(--secondary-font);
    color: #555;
}

.reviews-rating .review-stars {
    margin: 0 2px 0 0;
    letter-spacing: 0;
}

/* auto-fit alone reproduces the exact problem it solved for the location tiles: 5 reviews at
   min 260px only fits 4 per row inside this section's 1200px max-width (.container.center), so
   the 5th sat alone on its own row - the same stranded-tile look, just with an extra step
   (2026-09-11, confirmed via screenshot at 1400px viewport before adding the fixed-5 rule below).
   auto-fit still drives the default (narrow-viewport) case, where wrapping to fewer per row as
   the viewport shrinks is normal reflow, not a leftover - only above 1240px (where the 1200px
   container has room for 5 real columns without cramming them under ~220px each) does a fixed
   5-column row take over, matching the exact review count today. */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

/* With guests' own reviews added under the five from Google the count changes (5 to 11, or 1 to 6
   with Google's switched off), and five fixed columns left 8 cards as 5 and a row of 3 with two
   empty places (13 November 2026). From two cards to a row upwards the cards are a flex row, so a
   last row that is short sits centred, which a grid cannot do; on a wide screen the view picks the
   columns that make the rows even (index/views.py::review_columns: 8 cards are 4 + 4). */
@media (min-width: 600px) {
    .reviews-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .reviews-grid .review-card {
        box-sizing: border-box;
        flex: 0 0 calc((100% - 20px) / 2);
    }
}

@media (min-width: 900px) {
    .reviews-grid .review-card {
        flex-basis: calc((100% - 40px) / 3);
    }
}

@media (min-width: 1240px) {
    .reviews-grid .review-card {
        flex-basis: calc((100% - 80px) / 5);
    }

    .reviews-grid.reviews-cols-4 .review-card {
        flex-basis: calc((100% - 60px) / 4);
    }

    .reviews-grid.reviews-cols-3 .review-card {
        flex-basis: calc((100% - 40px) / 3);
    }
}

.review-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--primary-box-shadow);
    padding: 24px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.review-stars {
    color: var(--secondary-color);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.review-quote {
    color: #555;
    line-height: 1.6;
    flex-grow: 1;
    margin: 0 0 16px 0;
}

.review-quote::before {
    content: "\201C";
}

.review-quote::after {
    content: "\201D";
}

.review-author {
    font-family: var(--secondary-font);
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.review-source {
    font-weight: 400;
    color: #888;
}

.reviews-see-all {
    display: inline-block;
    margin: 30px 0 10px;
    color: var(--primary-color);
    font-family: var(--secondary-font);
    text-decoration: none;
}

.reviews-see-all:hover {
    text-decoration: underline;
}

/* =========================
   RESPONSIVE (2026-10-03, per Thomas)
   Everything above is sized for a wide screen: fixed-height sections (30vh/50vh) holding
   three or five columns. On a narrow screen the text outgrew those heights and ran over the
   section below, and the hero's absolutely-placed heading ran under the search card.
   ========================= */

/* The location tiles' 320px minimum is wider than the smallest phones. */
.container.mosaic.simple {
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}

@media (max-width: 1000px) {
    /* Three columns still fit here, but not inside 30vh. */
    .container.text-boxes.iconic,
    .container.text-boxes.services {
        height: auto;
    }
}

@media (max-width: 768px) {
    /* Hero: heading, strapline and search card stacked in normal flow, so a strapline that
       wraps pushes the card down instead of sliding under it. */
    .container.top {
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
        /* As tall as its content, not the full screen (2026-10-05, per Thomas): 100vh on a
           phone is the screen with the address bar hidden, so the card sat low under a band of
           empty sky. Now the heading opens just under the header and the card is in view. */
        height: auto;
        min-height: 0;
        padding: 48px 16px 56px;
    }

    .container.top .background-image {
        object-position: 50% 70%;
    }

    .container.top .hero-slogan,
    .container.top .hero-title {
        position: static;
        text-shadow: 0 1px 12px rgba(0, 40, 80, 0.45);
    }

    .container.top .hero-slogan {
        font-size: clamp(2.1rem, 9.5vw, 3.2rem);
        line-height: 1.15;
        margin: 0 0 12px 0;
    }

    .container.top .hero-title {
        font-size: 1.05rem;
        line-height: 1.45;
        max-width: 22em;
        margin: 0 0 28px 0;
    }

    /* Icon rows: one per line. */
    .container.text-boxes.iconic,
    .container.text-boxes.services {
        row-gap: 44px;
        box-sizing: border-box;
        padding: 0 24px;
    }

    .container.text-boxes.iconic .text-box,
    .container.text-boxes.services .text-box {
        width: 100%;
    }

    .container.text-boxes.iconic .text-box-content,
    .container.text-boxes.services .text-box-content {
        max-width: 30em;
        padding: 12px 0 0 0;
    }

    .container.text-boxes .text-box-icon {
        width: 72px;
        height: 72px;
    }

    /* Picture mosaic: the tall tile on top, the other four in a 2 x 2 grid under it. */
    .container.mosaic.ornate {
        height: auto;
    }

    .container.mosaic.ornate .left,
    .container.mosaic.ornate .right {
        width: 100%;
        height: auto;
    }

    .container.mosaic.ornate .left .tile {
        height: 38vh;
    }

    .container.mosaic.ornate .right .tile {
        height: 24vh;
    }

    .container.mosaic.ornate .tile {
        border-width: 4px;
    }

    .container.mosaic.ornate .tile h2 {
        font-size: 1.35em;
        line-height: 1.2;
        margin: 0;
        padding: 0 8px;
    }

    .container.mosaic.simple .tile {
        height: 34vh;
    }

    .container.text-boxes.memorable .text-box.wide,
    .container.text-boxes.not-all .text-box.wide {
        box-sizing: border-box;
        padding: 0 24px;
    }

    .container.text-boxes.memorable .text-box.wide h3,
    .container.text-boxes.not-all .text-box.wide h3 {
        font-size: 1.6em;
        line-height: 1.25;
    }

    .container.text-boxes.not-all {
        row-gap: 44px;
    }
}

