/* Redesigned parts of the public website: the surroundings page and the "explore" blocks of
   the villa and property pages. Scoped to zv-* classes so the UIkit styles stay untouched. */

.zv-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.zv-section {
    padding: 56px 0;
}

.zv-section--tight {
    padding-top: 8px;
}

.zv-section--muted {
    background: #f5f7fa;
}

/* Header: tall photo with the title on it. */
.zv-hero {
    position: relative;
    height: clamp(320px, 62vh, 600px);
    overflow: hidden;
    background: #1d3557;
}

.zv-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
    object-position: 65% 50%;
}

.zv-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 25, 50, 0.7) 0%, rgba(10, 25, 50, 0.15) 55%, rgba(10, 25, 50, 0) 100%);
}

.zv-hero__content {
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 48px;
    color: #fff;
}

.zv-hero__title {
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 6vw, 64px);
    font-weight: 300;
    letter-spacing: 0.08em;
    line-height: 1.1;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.zv-hero__subtitle {
    max-width: 640px;
    margin: 12px 0 0;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
}

/* Introduction. */
.zv-intro {
    max-width: 960px;
}

.zv-intro__lead {
    margin: 0 0 28px;
    font-size: clamp(18px, 2.2vw, 22px);
    line-height: 1.6;
    color: #2b2d31;
    text-align: center;
}

.zv-intro__columns {
    display: grid;
    gap: 16px 40px;
    color: #555;
    line-height: 1.7;
}

.zv-intro__columns p {
    margin: 0;
}

@media (min-width: 900px) {
    .zv-intro__columns {
        grid-template-columns: 1fr 1fr;
    }
}

/* Section headings. */
.zv-heading {
    margin: 0 0 12px !important;
    text-align: center;
    color: #2357a2;
    font-size: clamp(24px, 3.4vw, 34px);
    font-weight: 300;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.zv-heading + .zv-grid {
    margin-top: 28px;
}

.zv-heading__text {
    max-width: 860px;
    margin: 0 auto 32px !important;
    text-align: center;
    color: #555;
    line-height: 1.7;
}

/* Cards: full-colour photo, darkened only at the bottom behind the text. */
.zv-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 900px) {
    .zv-grid--three {
        gap: 24px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.zv-card {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 8px;
    background: #1d3557;
    box-shadow: 0 6px 20px rgba(16, 24, 40, 0.12);
    color: #fff;
    text-decoration: none;
}

/* On two columns, an odd last card takes the whole row instead of standing alone. */
@media (max-width: 899px) {
    .zv-grid > .zv-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        aspect-ratio: 16 / 9;
    }
}

@media (min-width: 640px) {
    .zv-card {
        aspect-ratio: 3 / 2;
    }
}

.zv-card:hover,
.zv-card:focus {
    color: #fff;
    text-decoration: none;
}

.zv-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.zv-card:hover .zv-card__image,
.zv-card:focus-visible .zv-card__image {
    transform: scale(1.06);
}

.zv-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0) 72%);
}

.zv-card__body {
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
}

.zv-card__title {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.25;
}

.zv-card__text {
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.88);
}

.zv-card__more {
    display: none;
}

@media (min-width: 640px) {
    .zv-card__body {
        padding: 22px 24px;
    }

    .zv-card__title {
        font-size: 20px;
    }

    .zv-card__text {
        font-size: 14px;
    }

    .zv-card__more {
        display: inline-block;
        margin-top: 6px;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        opacity: 0;
        transform: translateY(6px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .zv-card:hover .zv-card__more,
    .zv-card:focus-visible .zv-card__more {
        opacity: 1;
        transform: none;
    }
}

/* Webcams banner, on every screen size. */
.zv-banner {
    position: relative;
    display: block;
    height: clamp(240px, 40vw, 420px);
    overflow: hidden;
    color: #fff;
    text-decoration: none;
}

.zv-banner:hover,
.zv-banner:focus {
    color: #fff;
    text-decoration: none;
}

.zv-banner__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
    /* The house and the pool are on the right of the panorama. */
    object-position: 78% 50%;
    transition: transform 0.8s ease;
}

.zv-banner:hover .zv-banner__image {
    transform: scale(1.04);
}

.zv-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 50, 0.45);
}

.zv-banner__content {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 24px;
    text-align: center;
}

.zv-banner__title {
    max-width: 760px;
    font-size: clamp(18px, 2.6vw, 28px);
    font-weight: 300;
    letter-spacing: 0.04em;
    line-height: 1.35;
}

.zv-banner__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background 0.3s ease, color 0.3s ease;
}

.zv-banner:hover .zv-banner__button {
    background: #fff;
    color: #2357a2;
}

@media (prefers-reduced-motion: reduce) {
    .zv-card__image,
    .zv-banner__image,
    .zv-card__more {
        transition: none;
    }
}

/* Webcams banner on phones: room for the title and the button. */
@media (max-width: 639px) {
    .zv-banner {
        height: auto;
        min-height: 300px;
    }

    .zv-banner__content {
        position: relative;
        min-height: 300px;
        padding: 40px 20px;
    }

    .zv-banner__title {
        font-size: 18px;
    }
}

/* Footer on this page: the banner above already separates it, and its icons and legal links
   (black on dark grey in the shared stylesheet) need contrast. */
.uk-background-footer {
    border-top: 0 !important;
}

.uk-background-footer .enlaces_pie {
    color: rgba(255, 255, 255, 0.75) !important;
}

.uk-background-footer .enlaces_pie:hover {
    color: #fff !important;
}

.uk-background-footer .uk-text-10px {
    font-size: 12px !important;
}

/* Compact cards, six in a row on wide screens (activities on the villa page). */
.zv-grid--six {
    gap: 12px;
}

@media (min-width: 640px) {
    .zv-grid--six {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .zv-grid--six {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 16px;
    }
}

.zv-grid--six .zv-card {
    aspect-ratio: 4 / 5;
}

.zv-grid--six .zv-card__body {
    padding: 14px;
}

.zv-grid--six .zv-card__title {
    font-size: 15px;
}

.zv-grid--six .zv-card__text {
    font-size: 12px;
}

.zv-grid--six .zv-card__more {
    display: none;
}

/* "Explore" block at the end of the villa and property pages. */
.zv-explore {
    padding: 40px 0 56px;
}

.zv-explore__heading {
    margin: 0 0 20px !important;
    color: #2357a2;
    font-size: clamp(22px, 2.6vw, 28px);
    font-weight: 300;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Feature card: the zone of a property, photo beside the text. */
.zv-feature {
    display: grid;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(16, 24, 40, 0.1);
}

@media (min-width: 768px) {
    .zv-feature {
        grid-template-columns: 1.2fr 1fr;
    }
}

.zv-feature__media {
    position: relative;
    display: block;
    min-height: 220px;
    overflow: hidden;
}

.zv-feature__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.zv-feature__media:hover img {
    transform: scale(1.05);
}

.zv-feature__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 28px;
}

.zv-feature__eyebrow {
    margin: 0 !important;
    color: #2357a2;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.zv-feature__title {
    margin: 0 !important;
    color: #2b2d31;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 300;
    line-height: 1.2;
}

.zv-feature__text {
    margin: 0 !important;
    color: #555;
    line-height: 1.6;
}

.zv-feature__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.zv-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 999px;
    background: #2357a2;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.zv-button:hover {
    background: #1b4682;
}

.zv-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid #d5dce8;
    border-radius: 999px;
    color: #2357a2 !important;
    font-size: 14px;
    text-decoration: none !important;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.zv-chip:hover {
    border-color: #2357a2;
    background: #f2f6fc;
}

/* Card listings (villas for rent): every card of a row equally tall, photos in the same
   proportion and the buttons aligned at the bottom, whatever the photo or the name length. */
.zv-cards > div > .uk-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.zv-cards .uk-card-media-top img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    height: auto;
    object-fit: cover;
}

.zv-cards .uk-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.zv-cards .uk-card-body > :last-child {
    margin-top: auto !important;
}

/* Narrow screens: the data chips and buttons of a card stay on one line each. */
@media (max-width: 959px) {
    .zv-cards .uk-card-body .uk-button {
        overflow: hidden;
        padding-right: 6px;
        padding-left: 6px;
        font-size: 12px;
        line-height: 30px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
