.malaga-guide-page {
    --coast-blue: #0069b2;
    --coast-ink: #102743;
    --coast-orange: #ff6600;
    --coast-line: #d6e1e9;
    --coast-light: #f2f7fb;
}

.coast {
    color: var(--coast-ink);
    font-family: "Noto Sans", Arial, sans-serif;
    margin-bottom: 56px;
}

.coast .coast-inner {
    width: min(1180px, 92%);
    margin-inline: auto;
}

.coast h1, .coast h2, .coast h3, .coast .tile {
    font-family: Montserrat, Arial, sans-serif;
    font-weight: 700;
}

.coast :is(a, summary):focus-visible, .guide-skip:focus-visible {
    outline: 3px solid var(--coast-blue);
    outline-offset: 3px;
}

.coast a {
    color: #07588f;
    text-underline-offset: .17em;
}

.guide-skip {
    position: absolute;
    left: 12px;
    top: -80px;
    z-index: 1050;
    background: white;
    padding: 10px;
}

.guide-skip:focus {
    top: 4px;
}

.coast-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    min-height: clamp(205px, 19vw, 284px);
    color: white;
    background: var(--coast-blue);
}

.coast-hero img {
    position: absolute;
    right: 0;
    z-index: -2;
    width: 80%;
    height: 100%;
    object-fit: cover;
    object-position: center 48%;
}

.coast-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, #005a9c 0%, #0069b2 18%, #0069b2e6 31%, #0069b224 58%, transparent 79%);
}

.coast-hero h1 {
    font-size: clamp(52px, 5.3vw, 78px);
    line-height: .99;
    letter-spacing: -.045em;
    margin: 0;
    color: white;
}

.coast-hero.city {
    min-height: clamp(155px, 14vw, 215px);
}

.coast .crumb {
    background: #eff6fb;
}

.coast .crumb .coast-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-size: 14px;
}

.coast .crumb a {
    font-weight: 700;
}

.coast-section {
    margin-block: 36px;
}

.coast-section.lead-cards {
    margin-top: 24px;
    margin-bottom: 20px;
}

.coast h2 {
    margin: 0 0 16px;
    font-size: clamp(21px, 2.1vw, 30px);
    letter-spacing: -.035em;
    line-height: 1.2;
}

.coast h2::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: .95em;
    margin-right: 10px;
    background: var(--coast-orange);
    vertical-align: -.04em;
}

.coast .tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.coast a.tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--coast-line);
    border-radius: 8px;
    overflow: hidden;
    color: var(--coast-ink);
    background: white;
    text-decoration: none;
}

.coast .tile img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2.05;
    object-fit: cover;
}

/* Keep the landmark in frame in both the compact and the illustrated guide cards. */
html:lang(es) .coast .tile[href$="huelva-monumentocolon.php"] img {
    object-position: 76% 0%;
}

html:lang(es) .coast .tile:is([href$="jaen-mbatallas.php"], [href$="cadiz-catedral.php"]) img {
    object-position: 55% 0%;
}

html:lang(es) .coast .tile[href$="jaen-catedral.php"] img {
    object-position: 55% 5%;
}

html:lang(es) .coast .tile[href$="about-cadiz.php"] img {
    object-position: 50% 1%;
}

html:lang(es) .coast .tile[href$="sevilla-torredeloro.php"] img {
    object-position: 52% 8%;
}

html:lang(es) .coast .tile[href$="cordoba-puente.php"] img {
    object-position: 85% 60%;
}

html:lang(es) .coast .tile[href$="almeria-cableingles.php"] img {
    object-position: 53% 80%;
}

html:lang(es) .coast .tile[href$="sevilla-islamagica.php"] img {
    object-position: 60% 70%;
}

html:lang(es) .coast :is(.tile, .sight-card)[href$="nerja-aqueduct.php"] img {
    object-position: 50% 58%;
}

html:lang(es) .coast :is(.tile, .sight-card)[href$="fuengirola-bioparc.php"] img {
    object-position: 56% 28%;
}

html:lang(es) .coast .tile:is([href$="recomendamos-roy22.php"], [href$="jaen-museo.php"]) img {
    object-fit: contain;
    background-color: white;
}

/* The original photograph of the entrance is only 220 pixels wide. */
html:lang(es) .coast :is(.tile, .sight-photo) img[src*="/town-torremolinos-pinar-de-los-manantiales-"] {
    object-fit: scale-down;
    background-color: #eef2ed;
}

.coast .tile span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 16px;
    font-size: clamp(18px, 1.65vw, 24px);
    letter-spacing: -.035em;
    line-height: 1.25;
}

.coast .tile span::after, .coast .text-links a::after {
    content: "→" / "";
    color: var(--coast-orange);
    font-family: Arial,sans-serif;
    font-weight: 400;
    font-size: 1.3em;
}

.coast a.tile:hover {
    color: var(--coast-blue);
    border-color: var(--coast-blue);
    box-shadow: 0 3px 12px #00385b14;
}

.coast .text-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
}

.coast .text-links a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    text-decoration: none;
    font-weight: 700;
}

.coast .text-links a:hover {
    text-decoration: underline;
}

.coast .prose {
    max-width: 78ch;
    font-size: 16px;
    line-height: 1.65;
}

.coast details {
    border-block-end: 1px solid var(--coast-line);
}

.coast summary {
    padding: 13px 4px;
    font-weight: 700;
    color: #07588f;
}

.coast details .prose {
    padding: 2px 4px 14px;
    margin: 0;
}

.coast .directory {
    padding: 20px 0;
    border-top: 1px solid var(--coast-line);
}

.coast .directory h2 {
    font-size: 21px;
    margin-bottom: 4px;
}

@media (min-width: 768px) and (max-width: 991px) {
    .malaga-guide-page .navbar-brand img {
        width: 170px;
        height: auto;
    }

    .malaga-guide-page .navbar.navbar-light .navbar-nav > li > a {
        font-size: 14px;
        padding-inline: 5px;
    }

}

@media (max-width: 767px) {
    .malaga-guide-page .navbar {
        min-height: 64px;
        padding-block: 4px;
    }

    .malaga-guide-page .navbar-brand img {
        max-width: 49vw;
        height: auto;
    }

    .malaga-guide-page .navbar .navbar-nav > li > a {
        min-height: 44px;
        line-height: 44px;
    }

    .malaga-guide-page .dropdown-bandera {
        position: relative;
    }

    .malaga-guide-page .dropdown-menu-bandera {
        transform: none;
        right: 0;
        left: auto;
    }

    .coast .coast-inner {
        width: calc(100% - 28px);
    }

    .coast-hero {
        min-height: 146px;
    }

    .coast-hero.city {
        min-height: 118px;
    }

    .coast-hero h1 {
        font-size: clamp(36px, 9vw, 54px);
    }

    .coast-hero img {
        width: 93%;
        object-position: 62% center;
    }

    .coast-hero::after {
        background: linear-gradient(90deg, #005a9cf5, #005e9ed4 28%, #0069b230 65%, transparent);
    }

    .coast .tiles {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .coast a.tile {
        flex-direction: row;
        justify-content: flex-start;
        align-items: stretch;
    }

    .coast .tile img {
        width: clamp(92px, 31%, 154px);
        height: 79px;
    }

    html:lang(es) .coast .tile img {
        height: auto;
        min-height: 79px;
        align-self: stretch;
    }

    .coast .tile span {
        flex: 1;
        padding: 8px 13px;
        font-size: 18px;
    }

    .coast-section {
        margin-block: 26px;
    }

    .coast-section.lead-cards {
        margin-top: 13px;
        margin-bottom: 14px;
    }

    .coast .crumb .coast-inner {
        font-size: 13px;
    }

}

@media (max-width: 390px) {
    .malaga-guide-page .img-iconos-cabecera-mail {
        width: 118px;
    }

    .malaga-guide-page header .col-2 {
        padding-inline: 4px;
    }

}

.coast .sight-note {
    margin-top: 22px;
    scroll-margin-top: 16px;
}

.coast .sight-note h3 {
    font-size: 19px;
}

.coast .province-intro {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(0, 3fr);
    gap: 24px;
    margin-top: 28px;
    padding: 28px 32px;
    background: #f2f7fb;
    border-left: 4px solid #ff6600;
    border-radius: 0 8px 8px 0;
}

.coast .province-intro h2 {
    margin: 0;
    color: #07588f;
    font-size: clamp(24px, 2.2vw, 31px);
    line-height: 1.2;
}

.coast .province-intro h2::before {
    display: none;
}

.coast .province-intro-text {
    max-width: 78ch;
    font-size: 16px;
    line-height: 1.7;
}

.coast .province-intro-text p {
    margin: 0 0 14px;
}

.coast .province-intro-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .coast .province-intro {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 18px;
        padding: 20px 18px;
    }

}

.coast .province-intro.has-photo {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
}

.coast .province-intro.has-photo h2 {
    grid-column: 1 / -1;
}

.coast .province-intro-visual {
    position: relative;
    min-width: 0;
}

.coast .province-intro-visual img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

@media (max-width: 767px) {
    .coast .province-intro.has-photo {
        grid-template-columns: 1fr;
    }

    .coast .province-intro-visual {
        aspect-ratio: 480 / 283;
    }

}

@media (min-width: 992px) {
    .coast .visitor-tiles {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

}

.coast .sight-list {
    display: grid;
    gap: 22px;
}

.coast .sight-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr);
    overflow: hidden;
    background: white;
    border: 1px solid #d6e1e9;
    border-radius: 8px;
    scroll-margin-top: 24px;
}

.coast .sight-photo {
    position: relative;
    min-height: 230px;
}

.coast .sight-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coast .sight-copy {
    padding: 26px 30px;
}

.coast .sight-copy h3 {
    margin: 0 0 12px;
    font-size: clamp(23px, 2vw, 28px);
    line-height: 1.2;
    letter-spacing: -.025em;
}

.coast a.sight-card {
    color: var(--coast-ink);
    text-decoration: none;
}

.coast a.sight-card h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.coast a.sight-card h3::after {
    content: "→" / "";
    flex-shrink: 0;
    font: 28px/1 Arial, sans-serif;
    color: #ff6600;
}

.coast a.sight-card:is(:hover, :focus-visible) h3 {
    color: var(--coast-blue);
    text-decoration: underline;
}

.coast .sight-copy p {
    color: #2b4355;
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 767px) {
    .coast .sight-list {
        gap: 20px;
    }

    .coast .sight-card {
        grid-template-columns: 1fr;
    }

    .coast .sight-photo {
        min-height: 0;
        aspect-ratio: 1.9;
    }

    .coast .sight-copy {
        padding: 20px;
    }

}

.malaga-guide-page .coast {
    margin-bottom: 0;
}
.coast .guide-explore {
    margin-top: 48px;
    padding-block: 48px 56px;
    background: #eff6fb;
    border-top: 3px solid #d6e5ef;
}
.coast .guide-explore-heading {
    margin-bottom: 36px;
    max-width: 720px;
}
.coast .guide-explore-heading h2 {
    font-size: clamp(29px, 3vw, 40px);
    margin-bottom: 14px;
}
.coast .guide-explore-heading p {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    color: #3e5262;
}
.coast .guide-explore-group + .guide-explore-group {
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid #d1e0eb;
}
.coast .guide-explore-group h3 {
    font-size: clamp(21px, 2vw, 27px);
    margin: 0 0 8px;
    line-height: 1.25;
}
.coast .guide-explore-description {
    color: #3e5262;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 20px;
    max-width: 75ch;
}
@media (max-width: 767px) {
    .coast .guide-explore {
        margin-top: 32px;
        padding-block: 30px 36px;
    }
    .coast .guide-explore-heading {
        margin-bottom: 28px;
    }
    .coast .guide-explore-heading p {
        font-size: 16px;
    }
}

