/*
Theme Name: Explore Finnmark Redesign
Theme URI: https://explorefinnmark.com/
Description: A reversible ASAP child theme containing the Explore Finnmark editorial redesign. Existing posts and archive templates continue to inherit from ASAP.
Author: Explore Finnmark
Version: 1.5.4
Template: asap
Text Domain: explore-finnmark-redesign
Requires at least: 6.0
Requires PHP: 7.4
*/

/* WordPress integration helpers. Most page-specific styling lives in each
   recovered design template so it remains faithful to the supplied source. */

body.ef-redesign.admin-bar {
    --ef-admin-bar-offset: 32px;
}

/* Supplied Explore Finnmark brand mark. */

body.ef-redesign a.logo {
    display: block;
    flex: 0 0 auto;
    width: clamp(108px, 10vw, 150px);
    height: clamp(48px, 5vw, 68px);
    overflow: hidden;
    background: url("assets/images/explore-finnmark-logo.png") center / contain no-repeat;
    font-size: 0;
}

body.ef-redesign a.logo > * {
    display: none !important;
}

/* One real, shared header across every redesign template. */
body.ef-redesign > header:not(.ef-site-header),
body.ef-redesign > .mobile-menu {
    display: none !important;
}

/* Plan Your Trip opens directly on the four-step editorial planner. */
body.ef-plan-your-trip .hero,
body.ef-plan-your-trip .intro,
body.ef-plan-your-trip .planner {
    display: none !important;
}

body.ef-plan-your-trip .steps {
    padding: clamp(44px, 6vw, 82px) 0 70px !important;
}

body.ef-plan-your-trip .steps-header {
    margin-bottom: 70px !important;
}

body.ef-plan-your-trip .steps-grid {
    position: relative;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
    padding-top: 32px;
    border: 0 !important;
}

body.ef-plan-your-trip .steps-grid::before {
    position: absolute;
    top: 0;
    right: 10%;
    left: 10%;
    height: 1px;
    content: "";
    background: rgba(23, 63, 115, .25);
}

body.ef-plan-your-trip .step-card {
    position: relative;
    min-height: 410px !important;
    padding: 25px 24px 30px !important;
    background: rgba(255, 255, 255, .28);
    border: 1px solid rgba(23, 63, 115, .2) !important;
    border-radius: 16px;
}

body.ef-plan-your-trip .step-card::before {
    position: absolute;
    top: -41px;
    left: 50%;
    width: 15px;
    height: 15px;
    content: "";
    background: #f7f4ec;
    border: 1.5px solid #82a4d6;
    border-radius: 50%;
    transform: translateX(-50%);
}

body.ef-plan-your-trip .step-card:nth-child(n+5) {
    display: none !important;
}

body.ef-plan-your-trip .step-number {
    display: block;
    margin-bottom: 12px;
    font: 600 12px/1 Inter, Arial, sans-serif;
    letter-spacing: .1em;
}

body.ef-plan-your-trip .step-card .ef-card-icon {
    display: grid;
    width: 132px;
    height: 132px;
    margin: 0 auto 20px;
    place-items: center;
    background: rgba(130, 164, 214, .12);
    border-radius: 50%;
}

body.ef-plan-your-trip .step-card .ef-card-icon svg {
    width: 76px;
    height: 76px;
}

body.ef-plan-your-trip .step-card h3 {
    margin-top: 0 !important;
    font-size: clamp(27px, 2.1vw, 36px) !important;
}

@media (max-width: 980px) {
    body.ef-plan-your-trip .steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.ef-plan-your-trip .steps-grid::before,
    body.ef-plan-your-trip .step-card::before {
        display: none;
    }
}

@media (max-width: 600px) {
    body.ef-plan-your-trip .steps-header,
    body.ef-plan-your-trip .steps-grid {
        grid-template-columns: 1fr !important;
    }
}

body.ef-redesign .ef-site-header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    z-index: 100 !important;
    width: 100% !important;
    height: 92px !important;
    min-height: 92px !important;
    background: rgba(247, 244, 236, .96) !important;
    border-bottom: 1px solid rgba(23, 63, 115, .12) !important;
    backdrop-filter: blur(12px);
}

body.ef-redesign .ef-site-header {
    position: relative !important;
    z-index: 10000 !important;
    display: block !important;
    height: 92px !important;
    min-height: 92px !important;
    font-family: Inter, Arial, sans-serif !important;
}

body.ef-redesign .ef-site-header,
body.ef-redesign .ef-site-header * {
    box-sizing: border-box !important;
}

body.ef-redesign .ef-site-nav {
    display: flex !important;
    align-items: center !important;
    width: min(92%, 1360px) !important;
    height: 92px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    gap: 28px !important;
}

body.ef-redesign .ef-site-logo.logo {
    width: 138px !important;
    height: 60px !important;
    min-width: 138px !important;
    margin: 0 !important;
}

body.ef-journal .masthead,
body.ef-journal .category-nav {
    display: none !important;
}

body.ef-journal .ef-notebook-journal {
    min-height: calc(100vh - 92px);
}

body.ef-redesign .ef-site-links {
    display: flex !important;
    align-items: center !important;
    gap: clamp(20px, 2.25vw, 38px) !important;
    margin-left: auto !important;
}

body.ef-redesign .ef-site-links a,
body.ef-redesign .ef-mobile-navigation a {
    color: #173f73 !important;
    font: 600 10px/1.2 Inter, Arial, sans-serif !important;
    letter-spacing: 1px !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
}

body.ef-redesign .ef-site-links a[aria-current="page"] {
    position: relative;
}

body.ef-redesign .ef-site-links a[aria-current="page"]::after {
    position: absolute;
    right: 0;
    bottom: -12px;
    left: 0;
    height: 2px;
    content: "";
    background: #82a4d6;
}

body.ef-redesign .ef-site-cta {
    flex: 0 0 auto;
    padding: 16px 23px !important;
    color: #fff !important;
    background: #82a4d6 !important;
    border-radius: 999px !important;
    font: 600 10px/1 Inter, Arial, sans-serif !important;
    letter-spacing: .8px !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
}

body.ef-redesign .ef-menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 12px;
    place-content: center;
    gap: 4px;
    color: #173f73;
    background: transparent;
    border: 1px solid #82a4d6;
    border-radius: 50%;
    cursor: pointer;
}

body.ef-redesign .ef-menu-toggle span {
    display: block;
    width: 17px;
    height: 1px;
    background: currentColor;
}

body.ef-redesign .ef-mobile-navigation {
    position: absolute;
    z-index: 10001;
    top: 92px;
    right: 0;
    left: 0;
    padding: 1.25rem 4% 1.5rem;
    background: #f7f4ec;
    border-top: 1px solid rgba(23, 63, 115, .12);
    border-bottom: 1px solid rgba(23, 63, 115, .12);
}

body.ef-redesign .ef-mobile-navigation:not([hidden]) {
    display: grid;
    gap: 1.1rem;
}

body.ef-redesign header .nav,
body.ef-redesign header .navbar {
    width: min(92%, 1360px) !important;
    height: 92px !important;
    min-height: 92px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 30px !important;
}

body.ef-redesign header .nav-links,
body.ef-redesign header .navlinks,
body.ef-redesign header .links {
    display: flex;
    align-items: center;
    gap: 38px !important;
    margin-left: auto !important;
    font-size: 10px !important;
    font-weight: 600;
    letter-spacing: 1px !important;
    text-transform: uppercase;
}

body.ef-redesign header .plan-button,
body.ef-redesign header .plan,
body.ef-redesign header .nav-cta,
body.ef-redesign header .primary-button,
body.ef-redesign header .pill {
    padding: 15px 22px !important;
    color: #fff !important;
    background: #82a4d6 !important;
    border-radius: 30px !important;
    font-size: 10px !important;
    letter-spacing: .8px !important;
    text-transform: uppercase;
}

body.ef-redesign > header + .hero,
body.ef-redesign > header + main .hero {
    padding-top: 0 !important;
}

@media (max-width: 980px) {
    body.ef-redesign header .nav-links,
    body.ef-redesign header .navlinks,
    body.ef-redesign header .links { display: none !important; }

    body.ef-redesign .ef-site-links,
    body.ef-redesign .ef-site-cta { display: none !important; }

    body.ef-redesign .ef-menu-toggle { margin-left: auto; }
}

@media (min-width: 981px) {
    body.ef-redesign .ef-menu-toggle,
    body.ef-redesign .ef-mobile-navigation { display: none !important; }
}

body.home .stays-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.home .stay-card {
    text-decoration: none;
}

body.home .journal {
    display: none !important;
}

body.ef-redesign.admin-bar .header,
body.ef-redesign.admin-bar .site-header {
    top: var(--ef-admin-bar-offset, 0);
}

.ef-live-journal {
    padding: 7rem 0;
    background: #f7f4ec;
    color: #173f73;
}

.ef-live-journal .section-heading {
    margin-bottom: 2.5rem;
}

.ef-live-journal .section-heading > span {
    display: block;
    margin-bottom: 0.75rem;
    font: 600 0.75rem/1.2 Inter, sans-serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ef-live-journal .section-heading h2 {
    margin: 0;
    font: 500 clamp(3rem, 7vw, 6.5rem)/0.92 "Cormorant Garamond", serif;
}

.ef-live-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.ef-live-card {
    overflow: hidden;
    background: #fff;
}

.ef-live-card > a {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.ef-live-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.ef-live-card-copy {
    padding: 1.5rem;
}

.ef-live-card-copy span,
.ef-live-card-copy strong {
    font: 600 0.72rem/1.4 Inter, sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ef-live-card-copy h3 {
    margin: 0.65rem 0;
    font: 600 2rem/1 "Cormorant Garamond", serif;
}

.ef-live-card-copy p {
    margin: 0 0 1rem;
    font: 400 0.95rem/1.65 Inter, sans-serif;
}

/* Interactive editorial notebook used by the live Journal posts. */
.ef-notebook-journal {
    position: relative;
    display: grid;
    grid-template-columns: 64px minmax(520px, 760px) 64px minmax(230px, 320px);
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: 700px;
    padding: 48px clamp(24px, 5vw, 80px) 90px !important;
    background: linear-gradient(105deg, #edf4fa, #d9e8f4 74%, #f7f4ec 74%);
}

.ef-notebook-shell {
    position: relative;
    padding: 12px 18px 14px 22px;
    background: #173f73;
    border-radius: 22px;
    box-shadow: 0 24px 45px rgba(16, 45, 79, .28);
}

.ef-notebook-shell::after {
    position: absolute;
    z-index: 0;
    top: 7px;
    right: 8px;
    bottom: 7px;
    left: 16px;
    content: "";
    background: repeating-linear-gradient(90deg, #f3eee3 0 3px, #d8d0c3 4px 5px);
    border-radius: 15px;
}

.ef-notebook-pages {
    position: relative;
    z-index: 1;
    min-height: 560px;
}

.ef-notebook-page {
    display: none;
    min-height: 560px;
    padding: 27px 42px 24px 50px;
    color: #173f73;
    background-color: #f8f5ec;
    background-image: radial-gradient(rgba(23, 63, 115, .045) .7px, transparent .7px);
    background-size: 4px 4px;
    border-radius: 13px;
}

.ef-notebook-page.is-active {
    display: block;
    animation: ef-page-turn .35s ease both;
}

@keyframes ef-page-turn {
    from { opacity: .2; transform: perspective(1000px) rotateY(-5deg); }
    to { opacity: 1; transform: perspective(1000px) rotateY(0); }
}

.ef-notebook-meta,
.ef-notebook-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font: 600 10px/1.3 Inter, sans-serif;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.ef-notebook-image {
    display: block;
    margin: 18px 0 14px;
}

.ef-notebook-image img,
.ef-notebook-placeholder {
    display: block;
    width: 100%;
    height: 285px;
    object-fit: cover;
    background: linear-gradient(145deg, #dce9f3, #82a4d6);
}

.ef-notebook-page h2 {
    margin: 0 0 5px;
    font: 500 clamp(30px, 3vw, 43px)/.95 "Cormorant Garamond", serif;
}

.ef-notebook-page > p {
    max-width: 590px;
    margin: 0 0 12px;
    color: #425773;
    font: 400 14px/1.55 Inter, sans-serif;
}

.ef-notebook-footer {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    padding-top: 8px;
}

.ef-notebook-footer a {
    color: #173f73;
    text-decoration: none;
}

.ef-notebook-footer b {
    position: absolute;
    right: 0;
    bottom: -6px;
    font: 500 18px/1 "Cormorant Garamond", serif;
}

.ef-book-rings {
    position: absolute;
    z-index: 3;
    top: 20%;
    bottom: 20%;
    left: -19px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ef-book-rings i {
    width: 42px;
    height: 13px;
    background: #213c58;
    border: 4px solid #102a45;
    border-radius: 8px;
    box-shadow: 1px 2px 2px rgba(0,0,0,.25);
}

.ef-book-tabs {
    position: absolute;
    z-index: 3;
    top: 45px;
    right: -53px;
    display: grid;
    gap: 5px;
}

.ef-book-tabs span {
    width: 55px;
    padding: 12px 7px;
    color: #173f73;
    background: #aac4e5;
    border-radius: 0 6px 6px 0;
    font: 600 9px/1 Inter, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

.ef-book-arrow {
    display: grid;
    width: 54px;
    height: 54px;
    padding: 0;
    place-items: center;
    color: #173f73;
    background: #f7f4ec;
    border: 1px solid #8ca4bd;
    border-radius: 50%;
    cursor: pointer;
    font-size: 25px;
}

.ef-issue-list {
    align-self: stretch;
    padding: 34px 0 0 28px;
}

.ef-issue-list h2 {
    margin: 0 0 25px;
    font: 600 11px/1 Inter, sans-serif;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.ef-issue-list ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ef-issue-list button {
    display: grid;
    width: 100%;
    grid-template-columns: 35px 1fr;
    gap: 8px;
    padding: 15px 0;
    color: #30445d;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(23,63,115,.2);
    cursor: pointer;
    font: 500 17px/1.15 "Cormorant Garamond", serif;
    text-align: left;
}

.ef-issue-list button span {
    color: #173f73;
}

.ef-issue-list button.is-active {
    color: #173f73;
    font-weight: 600;
}

.ef-book-progress {
    position: absolute;
    bottom: 26px;
    left: 50%;
    display: grid;
    width: min(340px, 40vw);
    gap: 8px;
    color: #173f73;
    text-align: center;
    transform: translateX(-68%);
}

.ef-book-progress strong,
.ef-book-progress small {
    font: 600 10px/1 Inter, sans-serif;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.ef-book-progress i {
    height: 2px;
    overflow: hidden;
    background: rgba(23,63,115,.2);
}

.ef-book-progress i span {
    display: block;
    width: 0;
    height: 100%;
    background: #2e6eb5;
    transition: width .3s ease;
}

@media (max-width: 1050px) {
    .ef-notebook-journal {
        grid-template-columns: 48px minmax(0, 760px) 48px;
    }
    .ef-issue-list { display: none; }
    .ef-book-progress { transform: translateX(-50%); }
}

@media (max-width: 720px) {
    .ef-notebook-journal {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        gap: 8px;
        padding: 28px 8px 82px !important;
        background: #e5eff7;
    }
    .ef-notebook-shell { padding: 7px; border-radius: 12px; }
    .ef-notebook-page { min-height: 520px; padding: 22px 19px; }
    .ef-notebook-pages { min-height: 520px; }
    .ef-notebook-image img,
    .ef-notebook-placeholder { height: 230px; }
    .ef-book-tabs,
    .ef-book-rings { display: none; }
    .ef-book-arrow { width: 40px; height: 40px; }
    .ef-notebook-meta { font-size: 8px; }
    .ef-notebook-footer { grid-template-columns: 1fr; font-size: 8px; }
    .ef-book-progress { width: 70vw; }
}

/* Long-form Journal articles share the landing-page palette and typography. */
body.ef-article {
    margin: 0;
    color: #173f73;
    background: #f7f4ec;
    font-family: Inter, Arial, sans-serif;
}

.ef-article-main {
    padding: clamp(55px, 8vw, 110px) 0 100px;
}

.ef-article-heading,
.ef-article-hero,
.ef-article-layout {
    width: min(88%, 1180px);
    margin-right: auto;
    margin-left: auto;
}

.ef-article-heading {
    max-width: 980px;
    text-align: center;
}

.ef-article-kicker,
.ef-article-byline,
.ef-article-layout aside span {
    color: #82a4d6;
    font: 600 11px/1.35 Inter, Arial, sans-serif;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.ef-article-heading h1 {
    margin: 20px 0;
    font: 500 clamp(48px, 7vw, 96px)/.88 "Cormorant Garamond", Georgia, serif;
    letter-spacing: -.035em;
}

.ef-article-heading > p {
    max-width: 760px;
    margin: 0 auto 24px;
    color: #405b7d;
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.65;
}

.ef-article-hero {
    margin-top: 55px;
}

.ef-article-hero img {
    display: block;
    width: 100%;
    max-height: 680px;
    object-fit: cover;
    border-radius: 18px;
}

.ef-article-layout {
    display: grid;
    grid-template-columns: 190px minmax(0, 720px);
    justify-content: center;
    gap: clamp(35px, 7vw, 90px);
    margin-top: 70px;
}

.ef-article-layout aside {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-top: 9px;
}

.ef-article-layout aside a {
    color: #173f73;
    font: 600 10px/1.5 Inter, Arial, sans-serif;
    letter-spacing: .1em;
    text-decoration: none;
    text-transform: uppercase;
}

.ef-article-content {
    color: #263f5f;
    font: 400 17px/1.85 Inter, Arial, sans-serif;
}

.ef-article-content > p:first-child::first-letter {
    float: left;
    margin: 3px 10px 0 0;
    color: #82a4d6;
    font: 500 74px/.72 "Cormorant Garamond", Georgia, serif;
}

.ef-article-content h2,
.ef-article-content h3 {
    color: #173f73;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 500;
    line-height: 1;
}

.ef-article-content h2 { margin: 2.3em 0 .6em; font-size: 48px; }
.ef-article-content h3 { margin: 2em 0 .55em; font-size: 34px; }
.ef-article-content img { max-width: 100%; height: auto; border-radius: 10px; }
.ef-article-content a { color: #4f7fbd; }
.ef-article-content blockquote {
    margin: 2.5rem 0;
    padding: 1.2rem 0 1.2rem 2rem;
    color: #173f73;
    border-left: 3px solid #82a4d6;
    font: 500 30px/1.2 "Cormorant Garamond", Georgia, serif;
}

.ef-article-footer {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    align-items: center;
    gap: 35px;
    padding: 48px max(6%, calc((100% - 1360px) / 2));
    color: #fff;
    background: #82a4d6;
}

body.ef-article .ef-article-footer .logo {
    filter: brightness(0) invert(1);
}

.ef-article-footer p { margin: 0; }
.ef-article-footer > a:last-child { color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }

@media (max-width: 760px) {
    .ef-article-layout { grid-template-columns: 1fr; margin-top: 45px; }
    .ef-article-layout aside { padding-bottom: 25px; border-bottom: 1px solid rgba(23,63,115,.18); }
    .ef-article-footer { grid-template-columns: 1fr; }
    .ef-article-content { font-size: 16px; }
}

@media (max-width: 900px) {
    .ef-live-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 782px) {
    body.ef-redesign.admin-bar {
        --ef-admin-bar-offset: 46px;
    }
}

@media (max-width: 640px) {
    .ef-live-grid {
        grid-template-columns: 1fr;
    }
}

/* Interactive editorial details used by Places, Experiences and Stays. */

body.ef-detail-open {
    overflow: hidden;
}

.ef-detail-trigger {
    cursor: pointer;
}

.ef-detail-trigger:focus-visible {
    outline: 3px solid #82a4d6;
    outline-offset: 5px;
}

.ef-detail-trigger img {
    transition: transform 0.55s ease, filter 0.55s ease;
}

.ef-detail-trigger:hover img,
.ef-detail-trigger:focus-visible img {
    transform: scale(1.035);
    filter: saturate(1.06) contrast(1.02);
}

.ef-card-icon {
    display: inline-grid;
    width: 2.7rem;
    height: 2.7rem;
    margin-bottom: 1rem;
    place-items: center;
    color: #173f73;
    border: 1px solid rgba(23, 63, 115, 0.35);
    border-radius: 50%;
}

.ef-card-icon svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.step-card .ef-card-icon {
    margin: 0 0 1.25rem;
    color: #82a4d6;
}

.ef-detail-modal[hidden] {
    display: none;
}

.ef-detail-modal {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 4vw, 3rem);
}

.ef-detail-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 31, 57, 0.76);
    backdrop-filter: blur(8px);
}

.ef-detail-dialog {
    position: relative;
    display: grid;
    width: min(100%, 1050px);
    max-height: min(88vh, 780px);
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    overflow: auto;
    background: #f7f4ec;
    box-shadow: 0 28px 90px rgba(12, 31, 57, 0.35);
}

.ef-detail-image-wrap {
    min-height: 520px;
    background: #dfe7f0;
}

.ef-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ef-detail-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4.5rem);
    color: #173f73;
}

.ef-detail-kicker {
    margin-bottom: 1rem;
    font: 600 0.72rem/1.2 Inter, sans-serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ef-detail-copy h2 {
    margin: 0 0 1.25rem;
    font: 500 clamp(2.8rem, 6vw, 5.3rem)/0.9 "Cormorant Garamond", serif;
    letter-spacing: -0.035em;
}

.ef-detail-copy p {
    margin: 0 0 1.5rem;
    color: #334f72;
    font: 400 1rem/1.75 Inter, sans-serif;
}

.ef-detail-facts {
    display: grid;
    gap: 0;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(23, 63, 115, 0.2);
}

.ef-detail-facts li {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(23, 63, 115, 0.2);
    font: 400 0.85rem/1.45 Inter, sans-serif;
}

.ef-detail-facts strong {
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ef-detail-link {
    align-self: flex-start;
    padding: 0.9rem 1.2rem;
    color: #fff;
    background: #173f73;
    font: 600 0.75rem/1 Inter, sans-serif;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.ef-detail-close {
    position: absolute;
    z-index: 2;
    top: 1rem;
    right: 1rem;
    display: grid;
    width: 2.8rem;
    height: 2.8rem;
    padding: 0;
    place-items: center;
    color: #173f73;
    background: rgba(247, 244, 236, 0.94);
    border: 1px solid rgba(23, 63, 115, 0.25);
    border-radius: 50%;
    cursor: pointer;
    font: 400 1.5rem/1 Inter, sans-serif;
}

/* Pale blue cartography matching the supplied editorial reference. */

body.ef-redesign #map {
    min-height: 560px;
    background: #e9eff6;
    border: 1px solid rgba(23, 63, 115, 0.16);
}

body.ef-redesign #map .leaflet-tile-pane {
    opacity: 0.76;
    filter: grayscale(1) sepia(0.22) hue-rotate(168deg) saturate(0.8) brightness(1.1) contrast(0.86);
}

body.ef-redesign #map .leaflet-control-zoom a {
    color: #173f73;
    background: #f7f4ec;
}

.ef-map-detail {
    padding: 0;
    color: #173f73;
    background: transparent;
    border: 0;
    cursor: pointer;
    font: 600 0.72rem/1.4 Inter, sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

@media (max-width: 760px) {
    .ef-detail-dialog {
        grid-template-columns: 1fr;
    }

    .ef-detail-image-wrap {
        min-height: 260px;
    }

    .ef-detail-copy {
        padding: 2rem;
    }

    body.ef-redesign #map {
        min-height: 440px;
    }
}
