/* ==========================
   PAGE ACCENTS
========================== */
body {
    background:
        radial-gradient(circle at top left, rgba(255, 193, 7, 0.16), transparent 22%),
        radial-gradient(circle at top right, rgba(0, 123, 94, 0.10), transparent 28%),
        linear-gradient(180deg, #f8fcfa 0%, #ffffff 20%, #f7fbf8 100%);
}

#destination-source-markets,
#destinations-list,
#cta-destinations {
    position: relative;
}

/* ==========================
   HERO SECTION
========================== */
#hero-destinations {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    min-height: 55vh;
    padding: 8em 2em;
    background-image:
        radial-gradient(circle at center, transparent 15%, rgba(0, 15, 10, 0.72) 100%),
        linear-gradient(135deg, rgba(0, 21, 15, 0.85) 0%, rgba(0, 123, 94, 0.25) 55%, rgba(0, 21, 15, 0.9) 100%),
        url('../images/destinations-hero.webp');
    background-size: cover;
    background-position: center;
    color: #fff;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 37, 26, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 3.5em;
}

#hero-destinations::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 193, 7, 0.2), transparent 25%),
        radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.08), transparent 25%);
    border-radius: 24px;
    pointer-events: none;
}

#hero-destinations .hero-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 860px;
}

@keyframes destinationsHeroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#hero-destinations h1 {
    color: #ffffff !important;
    margin-bottom: 0.35em;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.9);
    letter-spacing: -0.03em;
    line-height: 1.15;
    font-family: var(--font-display);
    font-weight: 800;
    position: relative;
    z-index: 2;
    animation: destinationsHeroFadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#hero-destinations p {
    font-size: 1.12rem;
    margin: 0;
    color: #ffffff !important;
    font-weight: 500;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.9);
    line-height: 1.6;
    opacity: 0;
    position: relative;
    z-index: 2;
    animation: destinationsHeroFadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

/* ==========================
   SOURCE MARKET TARGETING
========================== */
#destination-source-markets {
    margin-top: 2.5em;
}

#destination-source-markets > p {
    max-width: 920px;
    margin: 0 auto 2.5em;
    text-align: center;
    color: #355a51;
    font-size: 1.05rem;
    line-height: 1.6;
}

#destination-source-markets .source-market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75em;
    align-items: stretch;
}

/* Premium country badges and bento grid layout */
.market-country-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.market-flag {
    font-size: 1.6rem;
    line-height: 1;
}

.market-region {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #007b5e;
    background-color: rgba(0, 123, 94, 0.06);
    padding: 0.3rem 0.75rem;
    border-radius: 99px;
    font-family: var(--font-sans);
}

#destination-source-markets .source-market-card {
    background: linear-gradient(135deg, #ffffff 0%, #f6faf8 100%);
    border: 1px solid #e1eee7;
    border-left: 4px solid #ffc107; /* Sleek left golden accent border */
    border-radius: 16px;
    padding: 2.25rem 2rem;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 77, 64, 0.015);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

#destination-source-markets .source-market-card h3 {
    margin-bottom: 0.75rem;
    color: #111827;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-display);
    line-height: 1.35;
}

#destination-source-markets .source-market-card p {
    margin-bottom: 0;
    color: #4a5568;
    font-size: 0.92rem;
    line-height: 1.6;
}

#destination-source-markets .source-market-card:hover {
    transform: translateY(-6px);
    border-color: #c0ded0;
    border-left-color: #ffc107;
    box-shadow: 0 20px 40px rgba(0, 77, 64, 0.06);
}

/* ==========================
   DESTINATIONS GRID
========================== */
#destinations-list {
    margin-top: 2em;
}

#destinations-list h2,
#destination-source-markets h2 {
    margin-bottom: 0.8em;
}

#destinations-list .destinations-grid {
    align-items: stretch;
}

#destinations-list .destination {
    background-color: #ffffff;
    border: 1px solid #e1eee7;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 15px 45px rgba(0, 37, 26, 0.025);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#destinations-list .destination:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 55px rgba(0, 37, 26, 0.09);
    border-color: #a7d0b8;
}

.destination-image-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    background-color: #dfe9e4;
}

#destinations-list .destination img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#destinations-list .destination:hover img {
    transform: scale(1.06);
}

#destinations-list .destination .destination-body {
    padding: 2.25rem 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#destinations-list .destination h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.4rem;
    font-family: var(--font-display);
    line-height: 1.3;
}

#destinations-list .destination p {
    font-size: 0.95rem;
    color: #55605a;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

#destinations-list .destination h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #007b5e;
    margin-bottom: 0.75rem;
}

#destinations-list .destination ul {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#destinations-list .destination li {
    position: relative;
    padding-left: 1.5rem;
    color: #4a5d55;
    font-size: 0.92rem;
    font-weight: 500;
}

#destinations-list .destination li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #ffc107;
    font-weight: 800;
    font-size: 0.9rem;
    line-height: 1.2;
}

#destinations-list .destination .destination-actions {
    padding: 0 2rem 2.25rem;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid #f1f5f3;
    padding-top: 1.5rem;
}

#destinations-list .destination .btn {
    background-color: #007b5e;
    color: #fff;
    margin-top: 0;
    align-self: center;
    border-radius: 999px;
    padding: 0.8rem 1.8rem;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 123, 94, 0.2);
    transition: all 0.3s ease;
}

#destinations-list .destination .btn:hover {
    background-color: #004d40;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 94, 0.3);
}

#destinations-list .destination .share-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

#destinations-list .destination .share-label {
    color: #7a8a83;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.25rem;
}

#destinations-list .destination .share-action {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e1eee7;
    border-radius: 999px;
    background: #ffffff;
    color: #007b5e;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#destinations-list .destination .share-action:hover,
#destinations-list .destination .share-action:focus-visible {
    transform: translateY(-2px);
    background: #007b5e;
    border-color: #007b5e;
    color: #ffffff;
    outline: none;
    box-shadow: 0 4px 10px rgba(0, 123, 94, 0.15);
}

#destinations-list .destination .share-action.is-copied {
    background: #ffc107;
    border-color: #ffc107;
    color: #12372d;
}

/* ==========================
   CALL TO ACTION
========================== */
#cta-destinations {
    background:
        linear-gradient(135deg, rgba(0, 77, 64, 0.98), rgba(13, 111, 87, 0.94)),
        #007b5e;
    color: #fff;
    text-align: center;
    padding: 4.5em 2em;
    border-radius: 24px;
    margin-top: 3em;
    overflow: hidden;
    box-shadow: 0 22px 44px rgba(0, 77, 64, 0.2);
}

#cta-destinations::before,
#cta-destinations::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

#cta-destinations::before {
    width: 220px;
    height: 220px;
    top: -90px;
    left: -70px;
    background: rgba(255, 193, 7, 0.18);
}

#cta-destinations::after {
    width: 180px;
    height: 180px;
    right: -50px;
    bottom: -70px;
    background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 640px) {
    #destinations-list .destination .destination-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    #destinations-list .destination .share-actions {
        width: 100%;
    }
}

#cta-destinations h2,
#cta-destinations .btn {
    position: relative;
    z-index: 1;
}

#cta-destinations h2 {
    color: #ffffff;
    margin-bottom: 0.8em;
}

#cta-destinations .btn {
    --btn-text-color: #004d40;
    background-color: #ffc107;
    color: var(--btn-text-color);
    border-radius: 999px;
    padding-inline: 1.6em;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
}

#cta-destinations .btn:hover {
    background-color: #e0a800;
    color: var(--btn-text-color);
}

/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 1200px) {
    #hero-destinations {
        padding: 7em 2em;
        min-height: 50vh;
    }
}

@media (max-width: 992px) {
    #hero-destinations {
        padding: 6em 1.5em;
    }

    .destinations-grid,
    .tours-grid,
    .souvenirs-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .destination-image-container {
        height: 220px;
    }
}

@media (max-width: 768px) {
    #hero-destinations {
        padding: 5em 1em;
        min-height: auto;
        border-radius: 20px;
    }

    #destinations-list {
        gap: 1.5em;
    }

    #destination-source-markets .source-market-grid,
    .destinations-grid,
    .tours-grid,
    .souvenirs-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }

    #cta-destinations {
        padding: 3.5em 1.5em;
        border-radius: 20px;
    }

    #destinations-list .destination .destination-body {
        padding: 1.75rem 1.5rem 1.25rem;
    }

    #destinations-list .destination .destination-actions {
        padding: 0 1.5rem 1.75rem;
    }

    #destination-source-markets .source-market-card {
        padding: 1.75rem 1.5rem;
    }
}

@media (max-width: 640px) {
    #destinations-list .destination .destination-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 1.25rem;
    }

    #destinations-list .destination .share-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    #hero-destinations h1 {
        font-size: 1.85rem;
    }

    #hero-destinations p {
        font-size: 0.98rem;
    }

    .destination-image-container {
        height: 190px;
    }

    #destinations-list .destination .destination-body {
        padding: 1.5rem 1.25rem 1rem;
    }

    #destinations-list .destination .destination-actions {
        padding: 0 1.25rem 1.5rem;
    }

    #destinations-list .destination h3 {
        font-size: 1.25rem;
    }

    #cta-destinations {
        padding: 3em 1.25rem;
    }

    #cta-destinations h2 {
        font-size: 1.35rem;
    }
}

/* ==========================
   INTERACTIVE MAP & FILTERS
   ========================== */
#destinations-map-section {
    margin-bottom: 4em;
    position: relative;
    z-index: 10;
}

.map-container-outer {
    position: relative;
    background: #ffffff;
    border: 1px solid #e1eee7;
    border-radius: 24px;
    padding: 1.25rem;
    box-shadow: 0 20px 50px rgba(0, 37, 26, 0.05);
}

#uganda-interactive-map {
    width: 100%;
    height: 520px;
    border-radius: 16px;
    z-index: 1; /* Keep leaflet controls correctly layered */
    border: 1px solid #d5e6de;
}

/* Map Legend */
.map-legend {
    margin-top: 1.25rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #fbfdfc 0%, #f4faf6 100%);
    border: 1px solid #e1eee7;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.map-legend h4 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: #12372d;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #4a5d55;
    font-weight: 500;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    border: 1.5px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}

.legend-dot.national-park {
    background-color: #007b5e;
}

.legend-dot.water-body {
    background-color: #2b6cb0;
}

.legend-dot.cultural-site {
    background-color: #ffc107;
}

.legend-line {
    width: 28px;
    height: 3px;
    background-color: #d69e2e;
    border-radius: 99px;
    display: inline-block;
    position: relative;
    box-shadow: 0 0 4px rgba(214,158,46,0.4);
}

/* Custom Leaflet Popup Styling */
.leaflet-popup-content-wrapper {
    background: #ffffff !important;
    color: #333333 !important;
    border-radius: 14px !important;
    box-shadow: 0 15px 35px rgba(0, 37, 26, 0.15) !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid #e1eee7;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: 250px !important;
}

.map-popup-card {
    display: flex;
    flex-direction: column;
}

.map-popup-image {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.map-popup-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.map-popup-body h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    font-family: var(--font-display);
    line-height: 1.2;
}

.map-popup-category {
    align-self: flex-start;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    margin-top: 0.2rem;
}

.map-popup-category.national-park {
    color: #007b5e;
    background-color: rgba(0, 123, 94, 0.08);
}

.map-popup-category.water-body {
    color: #2b6cb0;
    background-color: rgba(43, 108, 176, 0.08);
}

.map-popup-category.cultural-site {
    color: #b7791f;
    background-color: rgba(214, 158, 46, 0.08);
}

.map-popup-body p {
    margin: 0.25rem 0 0.5rem;
    font-size: 0.78rem;
    color: #4a5568;
    line-height: 1.4;
}

.map-popup-link {
    display: inline-block;
    text-align: center;
    background-color: #007b5e;
    color: #ffffff !important;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.map-popup-link:hover {
    background-color: #004d40;
    transform: translateY(-1px);
}

/* Custom Marker Pin Animation */
.leaflet-div-icon {
    background: none !important;
    border: none !important;
}

.custom-marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: #007b5e;
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -2px 2px 4px rgba(0,0,0,0.25);
    border: 2px solid #ffffff;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-marker-pin::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.custom-marker-pin.water-body {
    background: #2b6cb0;
}

.custom-marker-pin.cultural-site {
    background: #ffc107;
}

.custom-marker-pin:hover {
    transform: rotate(-45deg) scale(1.18);
    box-shadow: -4px 4px 10px rgba(0,0,0,0.3);
}

/* Destinations Filtering System */
.destinations-filter-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 5;
}

.filter-btn {
    background: #ffffff;
    color: #4a5d55;
    border: 1px solid #e1eee7;
    padding: 0.65rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 37, 26, 0.015);
}

.filter-btn i {
    font-size: 0.85rem;
    opacity: 0.85;
}

.filter-btn:hover {
    color: #007b5e;
    border-color: #a7d0b8;
    background-color: #fafdfb;
    transform: translateY(-1px);
}

.filter-btn.active {
    background-color: #007b5e;
    color: #ffffff;
    border-color: #007b5e;
    box-shadow: 0 8px 18px rgba(0, 123, 94, 0.15);
}

/* Enhanced Destination Card Details */
.category-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.75rem;
    border-radius: 99px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.category-badge.national-parks {
    background: rgba(0, 123, 94, 0.9);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.category-badge.water-bodies {
    background: rgba(43, 108, 176, 0.9);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.category-badge.cultural-sites {
    background: rgba(255, 193, 7, 0.95);
    color: #12372d;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.destination-details-box {
    margin-top: 1rem;
    padding: 1rem 0;
    border-top: 1px dashed #e1eee7;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dest-detail-item {
    display: flex;
    gap: 0.75rem;
    font-size: 0.82rem;
    line-height: 1.45;
}

.dest-detail-item i {
    font-size: 0.95rem;
    margin-top: 0.1rem;
}

.dest-detail-item.stats-item i {
    color: #007b5e;
}

.dest-detail-item.tips-item i {
    color: #ffc107;
}

.dest-detail-item strong {
    color: #12372d;
}

.dest-detail-item span {
    color: #4a5d55;
}

/* Gallery Filtering Animations */
.destination {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.destination.hidden {
    opacity: 0;
    transform: scale(0.92);
    display: none !important;
}

@media (max-width: 768px) {
    #uganda-interactive-map {
        height: 380px;
    }
    
    .map-legend {
        padding: 0.85rem 1rem;
    }
    
    .legend-items {
        gap: 0.85rem;
    }
    
    .legend-item {
        font-size: 0.8rem;
    }
}

