/* --- VARIABLES --- */
:root {
    --luxury-gold: #D4AF37;
    --dark-gold: #B59020;
    --bright-gold: #FFD700;
    --paper-white: #F9F7F2;
    --body-text: #1a1a1a;
    --royal-blue: #003366;
    --royal-blue-light: #004080;
    --map-bg: #0f172a;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Mulish', sans-serif;
    --shadow-soft: 0 20px 60px -15px rgba(212, 175, 55, 0.15);
    --shadow-glow: 0 4px 20px -5px rgba(212, 175, 55, 0.4);
}

/* --- RESET & BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { 
    background-color: var(--paper-white); 
    color: var(--body-text); 
    line-height: 1.8; 
    font-family: var(--font-sans);
    font-weight: 500;
    margin-top: 45px; 
    overflow-x: hidden;
}

/* --- HEADER NAVIGATION --- */
.sp-sticky-header {
    position: fixed; top: 0; left: 0; width: 100%; height: 45px;
    background-color: #000; display: flex; align-items: center; 
    justify-content: space-between; z-index: 99999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5); font-family: Arial, sans-serif;
}
.header-group { display: flex; align-items: center; height: 100%; }
.sp-back-btn {
    display: flex; align-items: center; justify-content: center; width: 45px; height: 45px;
    background-color: #007f74; color: white; cursor: pointer;
}
.sp-back-btn:hover { background-color: #00665d; }
.sp-logo-link { margin-left: 15px; display: flex; align-items: center; }
.sp-logo-link img { height: 24px; width: auto; display: block; }
.icon-svg { fill: currentColor; width: 20px; height: 20px; }
.icon-svg.small { width: 14px; height: 14px; }
.center-logo {
    position: absolute; left: 50%; transform: translateX(-50%);
    pointer-events: none; display: flex; align-items: center;
}
.center-logo img { height: 26px; }
.mobile-emag-logo { display: none; height: 24px; margin-right: 15px; }
.fb-share-btn {
    display: flex; align-items: center; gap: 6px; color: white;
    font-size: 13px; font-weight: bold; cursor: pointer; opacity: 0.9; margin-right: 15px; text-decoration: none;
}
.fb-share-btn:hover { opacity: 1; text-decoration: underline; }

@media (max-width: 768px) {
    .center-logo, .fb-share-btn { display: none; }
    .mobile-emag-logo { display: block; }
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative; width: 100%; height: 100vh;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    overflow: hidden;
}
.video-container { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-container video { width: 100%; height: 100%; object-fit: cover; }
.video-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), transparent, rgba(0,0,0,0.6));
    opacity: 0.8;
}
.bottom-gradient {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 12rem;
    background: linear-gradient(to top, var(--paper-white), transparent);
    z-index: 10; pointer-events: none;
}
.hero-content {
    position: relative; z-index: 20; color: white; text-align: center;
    padding: 0 1rem;
}
.main-title {
    font-family: var(--font-serif); font-weight: 900; line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5); text-transform: uppercase;
}
.title-top { display: block; color: var(--bright-gold); font-size: 2.5rem; margin-bottom: 0.5rem; }
.title-sub { display: block; color: white; font-style: italic; font-size: 1.5rem; text-transform: none; opacity: 0.9; }
.scroll-down-indicator {
    position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%);
    color: var(--luxury-gold); background: rgba(255,255,255,0.9);
    padding: 0.75rem; rounded: 50%; border-radius: 50%;
    animation: bounce 2s infinite; z-index: 20; box-shadow: var(--shadow-glow);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@media (min-width: 768px) {
    .title-top { font-size: 4rem; }
    .title-sub { font-size: 2.25rem; }
}

/* --- LAYOUT UTILITIES --- */
.container { margin: 0 auto; padding: 0 1rem; }
.container.narrow { max-width: 800px; }
.container.sub-gallery { max-width: 1200px; padding: 0; }
.text-justify { text-align: justify; }
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-6 { margin-top: 1.5rem; }
.text-gold { color: var(--luxury-gold); }

/* --- SAPO --- */
.sapo-section {
    position: relative; padding: 3rem 1rem; background-color: var(--paper-white); z-index: 30;
}
.sapo-box {
    background-color: var(--paper-white); padding: 2rem;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.15);
    border: 2px solid var(--luxury-gold); border-radius: 30px;
    text-align: center; font-size: 1.125rem; font-weight: 700; font-family: var(--font-serif);
}
@media(min-width: 768px) { .sapo-box { padding: 3rem 4rem; border-radius: 50px; font-size: 1.25rem; } }

/* --- SECTION HEADERS --- */
.section-header-wrapper {
    position: relative; margin: 6rem 0 3rem 0; text-align: center;
    display: flex; flex-direction: column; align-items: center;
}
.bg-number {
    font-family: var(--font-serif); font-size: 6rem; font-weight: 900;
    color: var(--dark-gold); opacity: 0.6; position: absolute;
    top: -3.5rem; left: 50%; transform: translateX(-50%); z-index: 0; line-height: 1;
}
.section-title-overlay {
    position: relative; z-index: 10; font-family: var(--font-serif);
    font-size: 2rem; font-weight: 800; color: var(--body-text);
    text-shadow: 0 10px 30px rgba(255,255,255,0.95); line-height: 1.2;
}
@media(min-width: 768px) {
    .bg-number { font-size: 8rem; top: -5rem; }
    .section-title-overlay { font-size: 2.5rem; }
}

/* --- TYPOGRAPHY & QUOTES --- */
.drop-cap::first-letter {
    float: left; font-family: var(--font-serif); font-size: 5rem;
    line-height: 0.8; padding-right: 1rem; color: var(--luxury-gold); font-weight: 900;
}
.luxury-quote {
    font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700;
    font-style: italic; color: #111; text-align: center; margin: 1.5rem auto;
}
.quote-icon { display: flex; justify-content: center; margin-bottom: 0.5rem; }
.quote-icon img { width: 4rem; height: auto; }
.quote-line { width: 4rem; height: 4px; background-color: var(--luxury-gold); margin: 1.5rem auto 0; border-radius: 99px; }

/* --- IMAGES & BREAKOUTS --- */
.breakout-full {
    width: 100vw; position: relative; left: 50%; right: 50%;
    margin-left: -50vw; margin-right: -50vw;
}
.full-img-wrapper { width: 100%; }
.masked-image {
    width: 100%; height: auto; display: block; object-fit: cover;
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}
.shadow-soft { box-shadow: var(--shadow-soft); }
.blend-image {
    width: 100%; border-radius: 12px; box-shadow: var(--shadow-soft);
}
.image-caption {
    text-align: center; font-style: italic; font-size: 0.9rem; color: #555;
    margin-top: 1.5rem; margin-bottom: 3rem; font-family: var(--font-sans);
}

/* --- GRID LAYOUTS --- */
.grid-2-col {
    display: grid; grid-template-columns: 1fr; gap: 2rem;
}
.grid-2-col.gap-large { gap: 4rem; }
.grid-3-col {
    display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media(min-width: 768px) {
    .grid-2-col { grid-template-columns: 1fr 1fr; }
    .grid-3-col { grid-template-columns: 1fr 1fr 1fr; }
}

/* Image Cards in Grid */
.img-card {
    overflow: hidden; border-radius: 0.75rem; box-shadow: var(--shadow-soft);
}
.zoom-img {
    width: 100%; height: 400px; object-fit: cover; transition: transform 0.7s ease; display: block;
}
.img-card:hover .zoom-img { transform: scale(1.05); }

.img-row-center {
    display: flex; flex-direction: column; gap: 1.5rem; justify-content: center; align-items: center; padding: 0 1rem;
}
@media(min-width: 768px) { .img-row-center { flex-direction: row; } }
.img-wrapper-logo { position: relative; width: 100%; max-width: 660px; }
.fixed-height { height: 400px; object-fit: cover; }
.watermark-logo {
    position: absolute; bottom: 10px; right: 10px; width: 80px; opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); pointer-events: none;
}
@media(min-width: 768px) { .watermark-logo { width: 100px; bottom: 15px; right: 15px; } }

/* --- TOD BOX --- */
.tod-box {
    background: linear-gradient(to bottom right, var(--royal-blue), var(--royal-blue-light));
    color: white; padding: 2rem; border-radius: 1.5rem; position: relative;
    overflow: hidden; margin: 2rem auto; border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: var(--shadow-soft);
}
.icon-bg { position: absolute; top: 0; right: 0; padding: 1rem; opacity: 0.1; font-size: 8rem; }
.tod-title {
    color: var(--luxury-gold); font-family: var(--font-serif); font-size: 2rem;
    font-weight: 900; text-transform: uppercase; border-bottom: 2px solid rgba(212,175,55,0.5);
    display: inline-block; padding-bottom: 0.5rem; margin-bottom: 1.5rem;
}
.tod-quote { font-size: 1.25rem; font-weight: 700; font-family: var(--font-serif); font-style: italic; margin-bottom: 1.5rem; color: #f3f4f6; }
.tod-content { padding-left: 1.5rem; border-left: 4px solid var(--luxury-gold); }
@media(min-width: 768px) { .tod-box { padding: 3rem; } .tod-title { font-size: 2.5rem; } }

/* --- COUNTRY CARDS --- */
.country-card {
    background: white; padding: 1.5rem; border-radius: 1rem;
    box-shadow: var(--shadow-soft); border-top: 4px solid var(--luxury-gold);
}
.country-card h4 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.country-card p { font-size: 0.875rem; }

/* --- CAROUSEL --- */
.carousel-wrapper {
    width: 100vw; position: relative; left: 50%; right: 50%;
    margin-left: -50vw; margin-right: -50vw; margin-top: 1rem;
}
.carousel-container {
    position: relative; width: 100%; overflow: hidden; background: #fff;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.2);
}
.carousel-track { display: flex; transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); }
.carousel-slide { min-width: 100%; position: relative; display: flex; justify-content: center; }
.carousel-image { width: 100%; height: auto; object-fit: cover; display: block; }
.nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    border: 1px solid rgba(255,255,255,0.7); color: #fff; width: 50px; height: 50px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10; transition: all 0.3s;
}
.nav-btn:hover { background: rgba(255,255,255,0.1); transform: translateY(-50%) scale(1.1); }
.prev-btn { left: 20px; }
.next-btn { right: 20px; }
.swipe-hint { text-align: center; font-size: 0.875rem; color: #6b7280; font-style: italic; margin-top: 0.75rem; }

/* --- PHASE CARDS --- */
.phases-container { position: relative; }
.center-icon-overlay {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    z-index: 20; width: 8rem; display: none;
}
.center-icon-overlay img { width: 100%; height: auto; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3)); }
@media(min-width: 768px) { .center-icon-overlay { display: block; } }

.phase-card {
    background-color: var(--royal-blue); color: white; border-radius: 1.5rem;
    overflow: hidden; position: relative; box-shadow: var(--shadow-soft);
    transition: all 0.5s; display: flex; flex-direction: column;
}
.phase-card:hover { transform: scale(1.02); box-shadow: 0 20px 40px -5px rgba(0,0,0,0.3); }
.card-deco-circle {
    position: absolute; top: 0; right: 0; width: 8rem; height: 8rem;
    background: rgba(255,255,255,0.1); border-bottom-left-radius: 100%;
    transition: transform 0.5s;
}
.phase-card:hover .card-deco-circle { transform: scale(1.25); }
.card-content { padding: 2rem; position: relative; z-index: 10; flex-grow: 1; }
.phase-header { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.5rem; }
.phase-icon {
    width: 4rem; height: 4rem; background: rgba(255,255,255,0.2);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.phase-label { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.1em; color: #bfdbfe; font-weight: 700; }
.phase-years { font-family: var(--font-serif); font-size: 1.875rem; font-weight: 900; }
.phase-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; color: var(--luxury-gold); }
.phase-list { list-style: none; space-y: 1rem; }
.phase-list li { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; font-size: 1.125rem; }
.phase-list i { color: var(--luxury-gold); font-size: 1.25rem; }
.card-bar { height: 0.5rem; width: 100%; background: #1e3a8a; margin-top: auto; }
.bar-fill { height: 100%; }
.bar-fill.gold { background: var(--luxury-gold); width: 60%; animation: pulse 2s infinite; }
.bar-fill.white { background: white; width: 40%; }
.phase-stat { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 1.5rem; }
.phase-stat i { color: var(--luxury-gold); font-size: 1.875rem; animation: bounceX 1s infinite; }
.big-num { font-size: 3rem; font-weight: 900; line-height: 1; }
@keyframes bounceX { 0%,100%{transform:translateX(0)} 50%{transform:translateX(5px)} }

/* --- MAP STYLES --- */
#map-container {
    position: relative; width: 100vw; height: 75vh;
    margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%);
    overflow: hidden; background: var(--map-bg); font-family: 'Inter', sans-serif;
    margin-top: 3rem; margin-bottom: 3rem;
}
@media(min-width: 768px) { #map-container { height: 85vh; } }
#map { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; }
#ui-panel {
    position: absolute; top: 12px; left: 12px; z-index: 500;
    max-width: 250px; width: 90%;
}
.map-info-box {
    background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
    padding: 0.75rem; border-radius: 0.5rem; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
}
.map-title {
    font-size: 0.875rem; font-weight: 900; color: #166534; text-transform: uppercase;
    border-bottom: 1px solid #dcfce7; padding-bottom: 0.5rem; margin-bottom: 0.5rem;
}
.map-stats { font-size: 11px; color: #334155; display: flex; flex-direction: column; gap: 0.5rem; }
.stat-row { display: flex; gap: 0.5rem; align-items: flex-start; }
.stat-row i { color: #15803d; margin-top: 2px; }
.map-note {
    margin-top: 0.75rem; padding-top: 0.5rem; border-top: 1px solid #f1f5f9;
    font-size: 10px; color: #64748b; font-style: italic; display: flex; align-items: center; gap: 0.375rem;
}
.dot-pulse { width: 6px; height: 6px; background: var(--luxury-gold); border-radius: 50%; animation: pulse 2s infinite; }
.custom-tooltip {
    background: rgba(212, 175, 55, 0.95); border: 1px solid rgba(255,255,255,0.4);
    border-radius: 6px; color: #000; font-weight: 700; font-size: 11px;
    padding: 4px 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.4); white-space: nowrap;
}
.leaflet-tooltip-left:before { border-left-color: rgba(212, 175, 55, 0.95); }
.leaflet-tooltip-right:before { border-right-color: rgba(212, 175, 55, 0.95); }
.hotspot-zone { animation: pulse-red 3s infinite; fill: var(--luxury-gold); stroke: #fff; }
@keyframes pulse-red { 0% { fill-opacity: 0.4; } 50% { fill-opacity: 0.7; } 100% { fill-opacity: 0.4; } }

/* Map Modal */
.modal-hidden { opacity: 0; pointer-events: none; transform: scale(0.95); transition: all 0.3s; }
.modal-visible { opacity: 1; pointer-events: auto; transform: scale(1); }
#info-modal {
    position: absolute; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center;
    background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(4px); padding: 1rem;
}
.modal-content {
    background: white; width: 100%; max-width: 500px; border-radius: 1rem;
    overflow: hidden; position: relative; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
.close-modal-btn {
    position: absolute; top: 0.75rem; right: 0.75rem; width: 2rem; height: 2rem;
    border-radius: 50%; background: rgba(255,255,255,0.9); border: none; cursor: pointer; z-index: 20;
    display: flex; align-items: center; justify-content: center; font-size: 1.125rem;
}
.modal-header {
    height: 6rem; background: linear-gradient(to right, var(--luxury-gold), #ca8a04);
    display: flex; align-items: center; padding: 0 1.5rem; position: relative;
}
.modal-bg-pattern {
    position: absolute; inset: 0; background-image: url('https://www.transparenttextures.com/patterns/cubes.png'); opacity: 0.2;
}
.modal-header h2 {
    color: white; font-size: 1.25rem; font-weight: 700; text-transform: uppercase;
    position: relative; z-index: 10; text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.modal-body { padding: 1.5rem; }
.modal-row { border-bottom: 1px solid #f1f5f9; padding-bottom: 0.75rem; margin-bottom: 0.75rem; }
.modal-row:last-child { border: none; margin: 0; padding: 0; }
.modal-label { font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; margin-bottom: 0.25rem; }
.modal-val { font-size: 0.875rem; font-weight: 500; color: #1e293b; }

/* --- FOOTER & FULL SCREEN IMG --- */
.full-screen-container { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
.full-screen-image { width: 100%; display: block; transition: transform 8s; }
.full-screen-container:hover .full-screen-image { transform: scale(1.05); }
.bottom-caption {
    position: absolute; bottom: 1.5rem; width: 100%; text-align: center;
    color: white; font-family: var(--font-serif); font-style: italic; font-size: 1.125rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9); pointer-events: none;
}
footer {
    background-color: var(--royal-blue); color: white; padding: 3rem 1rem; border-top: 4px solid var(--luxury-gold); text-align: center;
}
.footer-content h2 { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.footer-line { width: 3rem; height: 4px; background: var(--luxury-gold); margin: 0 auto 1rem; border-radius: 99px; }
.copy { font-size: 0.875rem; color: #e5e7eb; margin-bottom: 0.5rem; }
.source { font-size: 0.875rem; color: #9ca3af; font-style: italic; }

/* --- ANIMATIONS --- */
.scroll-reveal {
    opacity: 0; transform: translateY(40px) scale(0.96);
    transition: all 1s cubic-bezier(0.215, 0.610, 0.355, 1.000); will-change: transform, opacity;
}
.scroll-reveal.active { opacity: 1; transform: translateY(0) scale(1); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #fff; }
::-webkit-scrollbar-thumb { background: var(--luxury-gold); border-radius: 4px; }