:root {
    --sp-bg: #f7fafc;
    --sp-white: #ffffff;
    --sp-text: #0f172a;
    --sp-muted: #475569;
    --sp-primary: #54dd4a;
    --sp-primary-dark: #002d0c;
    --sp-border: #dbe4ef;
    --sp-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
    --sp-anchor-wrap-h: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    color: var(--sp-text);
    background: var(--sp-bg);
    line-height: 1.6;
}

a { color: #0e5642; text-decoration: none; }
a:hover { text-decoration: underline; }

#page.site { overflow-x: clip; }
.spain-page { padding-bottom: 84px; }
.spain-wrap { max-width: 1180px; margin: 0 auto; padding: 0 18px; }

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 30;
    display: flex;
    justify-content: center;
    padding: 6px 0;
}
.logo_header { color: #fff; text-decoration: none; }
.logo_text_wrapper { line-height: 1; text-align: center; }
.logo_main_text {
    font-family: 'Bangers', cursive;
    font-size: clamp(16px, 4.5vw, 26px);
    letter-spacing: 1.4px;
    color: #ffffff;
    text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}

.spain-hero {
    position: relative;
    min-height: calc(100svh - var(--sp-anchor-wrap-h));
    display: flex;
    align-items: center;
    background:
            linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.2)),
    url('/static/images/bg/catalunya-church-opt.webp') center/cover no-repeat,
      #0f172a;
}

.spain-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
    min-height: calc(100svh - 12px);
    padding: 120px 0 max(30px, env(safe-area-inset-bottom));
    max-width: 760px;
}

.spain-hero-heading {
    margin: 0;
    display: grid;
    gap: 0;
}

.spain-hero-kicker {
    color: #b7f5b1;
    font-size: clamp(20px, 4vw, 30px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1;
}

.spain-hero-main {
    margin: 0;
    color: #fff;
    font-family: 'Bangers', cursive;
    letter-spacing: 3px;
    font-size: clamp(44px, 9.4vw, 88px);
    line-height: 0.9;
}

.spain-hero-subline {
    margin: -4px 0 0;
    color: #ffffff;
    font-size: clamp(14px, 2.6vw, 18px);
    line-height: 1.4;
    max-width: 650px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

.spain-hero-facts {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 8px;
    margin-top: 14px;
    margin-bottom: 34px;
    max-width: 840px;
}

.spain-hero-fact {
    display: block;
    text-align: left;
}

.spain-hero-fact-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spain-hero-fact-icon {
    width: 18px;
    height: 18px;
    color: #b7f5b1;
    flex-shrink: 0;
}

.spain-hero-fact-main {
    color: #ffffff;
    font-size: clamp(14px, 1.75vw, 16px);
    font-weight: 700;
    line-height: 1.3;
}

.spain-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    margin-top: auto;
}

.spain-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease;
}
.spain-btn:hover { transform: translateY(-2px); text-decoration: none; }

.spain-btn--primary {
    background: var(--sp-primary);
    color: var(--sp-primary-dark);
    padding: 15px 24px;
    min-width: 184px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.04em;
}
.spain-btn--primary:hover { background: #4fce47; }

.spain-btn--outline {
    background: rgba(0,0,0,0.35);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.62);
}
.spain-btn--outline:hover { background: rgba(0,0,0,0.5); }

.spain-anchorbar-wrap {
    background: #0f172a;
    border-top: 1px solid rgba(255,255,255,0.09);
    border-bottom: 1px solid rgba(255,255,255,0.09);
    min-height: var(--sp-anchor-wrap-h);
    display: flex;
    align-items: center;
}

.spain-anchorbar-wrap {
    display: none;
}

.spain-anchorbar-label {
    margin: 0 0 4px;
    color: rgba(219,229,241,0.72);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
}

.spain-anchorbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 0;
    border: 1px solid rgba(219,229,241,0.22);
}

.spain-anchorbar a {
    display: block;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #dbe5f1;
    border-right: 1px solid rgba(219,229,241,0.2);
    border-bottom: 1px solid rgba(219,229,241,0.2);
    padding: 14px 8px;
    min-height: 56px;
    text-align: center;
}
.spain-anchorbar a:nth-child(2n) { border-right: 0; }
.spain-anchorbar a:nth-last-child(-n + 2) { border-bottom: 0; }
.spain-anchorbar a:hover {
    background: rgba(255,255,255,0.06);
    text-decoration: none;
}

.spain-section { padding: 50px 0; }

.spain-section--snapshot {
    background: url('/static/images/bg/section5-1-min-2-opt.webp') center/cover no-repeat;
}

.spain-section--soft {
    background:
      linear-gradient(180deg, rgba(243,237,228,0.88), rgba(243,237,228,0.88)),
            url('/static/images/bg/section1-1-opt.webp') center/cover no-repeat;
    border-top: 1px solid rgba(14,86,66,0.12);
    border-bottom: 1px solid rgba(14,86,66,0.12);
}

.spain-section-head { margin-bottom: 16px; }
.spain-section-head--snapshot { margin-bottom: 20px; }
.spain-section-title {
    margin: 0 0 8px;
    font-family: 'Bangers', cursive;
    letter-spacing: 2px;
    font-size: clamp(36px, 8vw, 58px);
    line-height: 0.95;
    color: #0f172a;
    text-align: center;
}

.spain-section-divider {
    width: min(240px, 40vw);
    height: 2px;
    margin: 0 auto 12px;
    background: linear-gradient(90deg, transparent, rgba(14,86,66,0.8), transparent);
}

.spain-section-sub {
    margin: 0;
    color: #334155;
    font-size: 14px;
    text-align: center;
}

#snapshot .spain-section-title,
#itinerary .spain-section-title,
#itinerary .spain-section-sub {
    color: #ffffff;
}

.spain-kpi-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.spain-kpi {
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    text-align: left;
    padding: 0;
    overflow: hidden;
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.spain-kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.14);
    text-decoration: none;
}

.spain-kpi-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    font-size: 13px;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #0e5642;
    background: #eff6f1;
    border-bottom: 1px solid var(--sp-border);
    padding: 12px 16px;
    border-radius: 16px 16px 0 0;
}

.spain-kpi-label-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spain-kpi-icon {
    font-size: 18px;
    line-height: 1;
}

.spain-kpi-chevron {
    font-size: 20px;
    line-height: 1;
    color: #0e5642;
    opacity: 0.9;
}

.spain-kpi-list {
    list-style: none;
    margin: 0;
    padding: 14px 18px 14px;
    display: grid;
    gap: 7px;
}

.spain-kpi-list li {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #1f2937;
    font-weight: 500;
}

.spain-kpi-highlight {
    color: inherit;
    font-weight: inherit;
}

.spain-price-panel {
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: 16px;
    box-shadow: var(--sp-shadow);
    padding: 20px;
    text-align: center;
}

.spain-price-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 14px;
    justify-items: center;
}

.spain-price-main {
    font-size: clamp(34px, 8vw, 48px);
    line-height: 0.95;
    font-weight: 800;
    color: #0f172a;
}

.spain-price-note {
    color: #64748b;
    font-size: 13px;
    line-height: 1.35;
}

.spain-dates-label {
    margin: 0 0 8px;
    font-size: 11px;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475569;
    font-weight: 700;
}

.spain-dates-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 8px;
    margin: 0 0 14px;
}

.spain-date-pill {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #0e5642;
    background: #e6f5e4;
    border: 1px solid rgba(14,86,66,0.18);
    border-radius: 20px;
    padding: 9px 10px;
}

.spain-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: left;
}

.spain-column {
    border: 1px solid var(--sp-border);
    border-radius: 14px;
    padding: 14px;
    background: #f7fcf6;
}

.spain-column h4 {
    margin: 0 0 8px;
    font-size: 15px;
    color: #0f172a;
}

.spain-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: #1f2937;
    font-size: 14px;
}

.spain-itinerary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 14px;
}

.spain-day {
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--sp-shadow);
}

.spain-day-media { aspect-ratio: 16/7; }
.spain-day-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.spain-day-body { padding: 16px; }

.spain-day-title {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.35;
    color: #0f172a;
}

.spain-day-copy {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.spain-day-pills {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.spain-day-pill {
    font-size: 10px;
    font-weight: 700;
    color: #0e5642;
    background: #e6f5e4;
    border: 1px solid rgba(14,86,66,0.18);
    border-radius: 20px;
    padding: 4px 8px;
}

.spain-gallery-divider {
    background: rgba(14,40,22,0.93);
    padding: 0;
    margin: 0;
}

.spain-gallery-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    gap: 0;
}

.spain-gallery-item {
    overflow: hidden;
}

.spain-gallery-item img {
    width: 100%;
    height: clamp(210px, 34vw, 420px);
    object-fit: cover;
    display: block;
}

.spain-card {
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: 16px;
    box-shadow: var(--sp-shadow);
    padding: 16px;
}

.spain-skills-grid {
    display: grid;
    gap: 10px;
}

.spain-skill-item {
    border: 1px solid rgba(14,86,66,0.18);
    background: #f2fff0;
    border-radius: 12px;
    padding: 12px;
}

.spain-skill-item h4 {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.3;
    color: #0f172a;
}

.spain-skill-item p {
    margin: 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
}

.spain-guides-grid {
    display: grid;
    gap: 12px;
}

.spain-guide-card {
    border: 1px solid var(--sp-border);
    border-radius: 14px;
    padding: 12px;
    background: #ffffff;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
}

.spain-organizer-photo {
    width: min(170px, 45vw);
    aspect-ratio: 1/1;
    border-radius: 14px;
    border: 1px solid var(--sp-border);
    overflow: hidden;
    background: #dbeafe;
    margin: 0 auto;
}

.spain-organizer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.spain-bio-name {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.2;
    color: #0f172a;
}

.spain-bio-role {
    margin: -2px 0 10px;
    color: #5A7A6A;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.spain-bio-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px;
    justify-content: center;
}

.spain-bio-pill {
    font-size: 11px;
    font-weight: 700;
    color: #0e5642;
    background: #e6f5e4;
    border: 1px solid rgba(14,86,66,0.18);
    border-radius: 20px;
    padding: 5px 10px;
}

.spain-bio-copy {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
}
.spain-bio-copy + .spain-bio-copy { margin-top: 8px; }

.spain-reviews-grid {
    display: grid;
    gap: 10px;
}

.spain-review-card {
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: 14px;
    box-shadow: var(--sp-shadow);
    padding: 14px;
}

.spain-stars {
    color: #16a34a;
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.spain-review-copy {
    margin: 0;
    color: #334155;
    font-size: 14px;
    line-height: 1.5;
}

.spain-review-name {
    margin: 10px 0 0;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
}

.spain-faq {
    display: grid;
    gap: 10px;
}

.spain-faq-item {
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: 14px;
    box-shadow: var(--sp-shadow);
    padding: 14px;
}

.spain-faq-item h4 {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.32;
    color: #0f172a;
}

.spain-faq-item p {
    margin: 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
}

.spain-photo-credits {
    margin: 14px 0 0;
    font-size: 10px;
    line-height: 1.35;
    color: rgba(71,85,105,0.7);
}
.spain-photo-credits a { color: rgba(71,85,105,0.7); text-decoration: none; }
.spain-photo-credits a:hover { text-decoration: underline; }

footer {
    padding: 90px 120px 20px;
    background-color: #F3EDE4;
}

.menu-footer h2 {
    color: #101010;
    font-size: 18px;
    font-weight: 700;
    line-height: 18px;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.menu-footer a {
    color: #101010;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 24px;
    display: inline-block;
    width: 100%;
    margin: 4px 0;
}

.menu-footer {
    display: flex;
    margin-left: auto;
    justify-content: flex-end;
}

.bottom-footer h2 {
    color: black;
    font-size: 21px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.bar-top-content-bottom {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid;
    justify-content: space-between;
    display: flex;
}

.bar-top-content-bottom span,
.bar-top-content-bottom a {
    color: #777777;
    font-weight: 400;
    font-size: 16px;
    line-height: 30px;
}

.links-bottom-footer a { margin-left: 30px; }

.floating-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: none;
    border-top: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 -8px 18px rgba(15, 23, 42, 0.18);
}

.floating-cta a {
    flex: 1;
    padding: 14px 10px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.floating-cta a:first-child { background: #0f172a; color: #fff; }
.floating-cta a:last-child { background: var(--sp-primary); color: var(--sp-primary-dark); }

body.spain-show-floating .floating-cta { display: flex; }

.spain-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100001;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.spain-modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.spain-modal-box {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    max-width: 720px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 32px 80px rgba(0,0,0,0.45);
    transform: translateY(24px) scale(0.98);
    transition: transform 0.25s ease;
}

.spain-modal-overlay.is-open .spain-modal-box {
    transform: translateY(0) scale(1);
}

.spain-modal-head {
    background: #0E5642;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.spain-modal-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #54DD4A;
    margin-bottom: 4px;
}

.spain-modal-title {
    font-family: 'Bangers', cursive;
    font-size: 30px;
    letter-spacing: 2px;
    color: #fff;
    font-weight: 400;
    margin: 0;
    text-align: left;
}

.spain-modal-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,0.65);
    margin: 5px 0 0;
    line-height: 1.5;
}

.spain-modal-close-btn {
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 16px;
    transition: background 0.15s ease;
}

.spain-modal-close-btn:hover {
    background: rgba(255,255,255,0.25);
}

.spain-modal-body {
    padding: 0;
    flex: 1;
    overflow: hidden;
    background: #fff;
}

.spain-modal-iframe {
    display: block;
    width: 100%;
    height: min(78vh, 900px);
    border: 0;
}

body.spain-modal-open {
    overflow: hidden;
}

@media (min-width: 700px) {
    .spain-wrap { padding: 0 24px; }
    .spain-anchorbar a { font-size: 13px; min-height: 48px; padding: 10px 6px; }
    .spain-kpi-grid { grid-template-columns: 1fr; }
    .spain-columns { grid-template-columns: 1fr 1fr; }
    .spain-skills-grid { grid-template-columns: 1fr 1fr; }
    .spain-guides-grid { grid-template-columns: 1fr 1fr; }
    .spain-reviews-grid { grid-template-columns: 1fr 1fr; }
    .spain-guide-card { grid-template-columns: 170px 1fr; text-align: left; }
    .spain-guide-card .spain-organizer-photo { margin: 0; }
    .spain-guide-card .spain-bio-pills { justify-content: flex-start; }
    .spain-guide-card .spain-bio-role { text-align: left; }
}

@media (max-width: 800px) {
    .spain-gallery-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .spain-hero-grid {
        min-height: calc(100svh - 8px);
        padding: clamp(94px, 13vh, 126px) 0 max(26px, env(safe-area-inset-bottom));
        gap: 13px;
    }
    .spain-hero-main {
        font-size: clamp(50px, 11vw, 74px);
    }
    .spain-hero-subline {
        font-size: clamp(15px, 2.8vw, 17px);
        line-height: 1.38;
    }
    .spain-hero-fact-main {
        font-size: clamp(15px, 2.8vw, 17px);
    }
}

@media (max-width: 767px) {
    footer { padding: 44px 20px 14px; }
    .spain-modal-box { border-radius: 16px; max-height: 95vh; }
    .spain-modal-head { padding: 16px 18px; }
    .spain-modal-iframe { height: 80vh; }
    .spain-hero { align-items: flex-start; }
    .spain-hero-grid {
        min-height: calc(100svh - 4px);
        padding: clamp(86px, 12svh, 112px) 0 max(24px, env(safe-area-inset-bottom));
        gap: 12px;
    }
    .spain-hero-kicker { font-size: clamp(22px, 6vw, 30px); }
    .spain-hero-main {
        letter-spacing: 2px;
        font-size: clamp(52px, 13vw, 68px);
    }
    .spain-hero-subline {
        margin-top: -2px;
        font-size: 16px;
        line-height: 1.38;
    }
    .spain-hero-facts {
        grid-template-columns: 1fr;
        row-gap: 7px;
        margin-top: 12px;
        margin-bottom: 30px;
    }
    .spain-hero-fact-icon { width: 19px; height: 19px; }
    .spain-hero-fact-main { font-size: 16px; }
    .spain-btn { width: 100%; }
    .spain-btn--outline { border-width: 1.5px; }
    .spain-hero-ctas {
        justify-content: stretch;
        margin-top: auto;
    }
}

@media (min-width: 980px) {
    .spain-page { padding-bottom: 0; }
    .floating-cta { display: none !important; }
}

body.spain-show-floating footer {
    padding-bottom: 108px;
}
