/* Landing pages: editorial copy above a filtered listing.
   The container is 1200px wide, which is right for a grid of cards and far too wide for prose,
   so the written part is given its own measure. Everything below the copy keeps the full width. */

/* .footer-content-page sets color:white for its background image, and .container inside it is
   white, so prose inherits white on white. Cards and widgets set their own colours, which is why
   no other page shows it. Every text element here states its colour explicitly. */
.landing-intro,
.landing-body {
    color: #1f2937;
}

.landing-intro h1,
.landing-body h2,
.landing-body h3,
.landing-body strong {
    color: #1e3c72;
}

.landing-intro {
    max-width: 48rem;
    margin-bottom: 1.5rem;
}

.landing-intro h1 {
    margin-bottom: 0.5rem;
}

.landing-lede {
    font-size: 1.15rem;
    line-height: 1.5;
    color: #475569;
    margin: 0;
}

.landing-body {
    max-width: 48rem;      /* roughly 70 characters a line */
    line-height: 1.7;
}

/* above the grid */
.landing-intro-body {
    margin-bottom: 2rem;
}

/* .search-section carries margin-top:-80px so it can ride up over a hero image. On a landing page
   there is body copy above it instead, which it then covers. .search-section-compact already
   resets that, but new_style.css declares .search-section a second time at line 2054 - after the
   compact rule - so the reset never wins. Scoped here rather than fixing the duplicate, because
   the villa and apartment overviews are compact too and have been laid out around the pull-up.  */
.landing-page .search-section {
    margin-top: 0;
}

/* below the grid, so it needs air above it rather than below */
.landing-body:not(.landing-intro-body) {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.landing-body h2 {
    font-size: 1.35rem;
    line-height: 1.3;
    margin: 2rem 0 0.75rem;
}

.landing-body h2:first-child {
    margin-top: 0;
}

.landing-body p {
    margin: 0 0 1rem;
}

.landing-body p:last-child {
    margin-bottom: 0;
}

.landing-body a {
    color: var(--primary-blue, #1e40af);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.landing-body strong {
    font-weight: 600;
}

@media (max-width: 768px) {
    .landing-lede {
        font-size: 1.05rem;
    }

    .landing-body h2 {
        font-size: 1.2rem;
        margin-top: 1.5rem;
    }
}
