/* ============================================
   Travel Map Section - Country Destination
   ============================================ */

.travel-map-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fbff 0%, #e8f4f8 100%);
}

.travel-map-wrapper {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(10, 61, 92, 0.1);
    padding: 30px;
    overflow: hidden;
    position: relative;
}

.travel-map-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0a3d5c, #1a8a6e, #e8a838);
}

/* Map Image */
.travel-map-canvas,
.travel-map-image {
    position: relative;
    text-align: center;
    overflow: visible;
}

.travel-map-canvas__img,
.travel-map-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    object-fit: contain;
}

/* ============================================
   Map Info Panel
   ============================================ */

.map-info-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(10,61,92,0.08);
}

/* Photo viewer */
.map-info-photo {
    position: relative;
}

.map-info-photo__main {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.map-info-photo__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.25s ease;
}

.map-info-photo__thumbs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #c8dce8 transparent;
}

.map-info-photo__thumbs::-webkit-scrollbar {
    height: 4px;
}

.map-info-photo__thumbs::-webkit-scrollbar-thumb {
    background: #c8dce8;
    border-radius: 2px;
}

.map-info-photo__thumbs img {
    flex-shrink: 0;
    width: 64px;
    height: 52px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.65;
    transition: opacity 0.2s;
    border: 2px solid transparent;
}

.map-info-photo__thumbs img:hover,
.map-info-photo__thumbs img.active {
    opacity: 1;
    border-color: #0d6b8a;
}

/* Name */
.map-info-name {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0a3d5c;
    font-family: 'Manrope', sans-serif;
}

.map-info-name i {
    color: #e74c3c;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Description */
.map-info-desc {
    padding: 0 16px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #3d4f5f;
}

.map-info-desc p { margin: 0; }

/* CTA link */
.map-info-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #0d6b8a 0%, #0a3d5c 100%);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
    font-family: 'Manrope', sans-serif;
}

.map-info-link:hover {
    opacity: 0.9;
    color: #fff;
}

.map-info-link i:first-child { font-size: 1rem; }

/* Map Pins */
.map-pin {
    position: absolute;
    width: 12px;
    height: 12px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
    display: block;
}

/* Label floats around the dot so coordinates stay on the pin center */
.map-pin__dot {
    position: absolute;
    left: 0;
    top: 0;
}

.map-pin__label {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    pointer-events: none;
}

.map-pin--text-below .map-pin__label {
    top: calc(100% + 4px);
    bottom: auto;
    margin: 0;
}

.map-pin--text-above .map-pin__label {
    bottom: calc(100% + 4px);
    top: auto;
    margin: 0;
}

.map-pin:hover {
    z-index: 20;
}

.map-pin.active {
    z-index: 15;
}

/* Always-visible title label */
.map-pin__label {
    background: none;
    color: #382d22;
    font-size: 10px;
    font-weight: 400;
    font-family: 'Manrope', sans-serif;
    white-space: nowrap;
    pointer-events: none;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8), 
                 0 -1px 3px rgba(255, 255, 255, 0.8), 
                 1px 0 3px rgba(255, 255, 255, 0.8), 
                 -1px 0 3px rgba(255, 255, 255, 0.8);
    letter-spacing: 0.02em;
    margin-bottom: 1px;
    line-height: 1;
}

.map-pin__dot {
    width: 12px;
    height: 12px;
    background: #a0927a;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(160, 146, 122, 0.4);
    transition: transform 0.2s, background 0.2s;
    flex-shrink: 0;
}

.map-pin:hover .map-pin__dot,
.map-pin.active .map-pin__dot {
    background: #0a3d5c;
    transform: scale(1.35);
}

.map-pin:hover .map-pin__dot,
.map-pin.active .map-pin__dot {
    background: #6b5b47;
    transform: scale(1.35);
}

.map-pin:hover .map-pin__label,
.map-pin.active .map-pin__label {
    color: #4a3f35;
    font-weight: 600;
}

/* Capital pin — star shape */
.map-pin--capital .map-pin__dot {
    width: auto;
    height: auto;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0;
    font-size: 16px;
    line-height: 1;
    color: transparent;
    flex-shrink: 0;
}

.map-pin--capital .map-pin__dot::before {
    content: '★';
    display: block;
    font-size: 16px;
    line-height: 1;
    color: #a0927a;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3), 0 0 0 1.5px #fff;
    transition: transform 0.2s, color 0.2s;
    transform-origin: center;
}

.map-pin--capital:hover .map-pin__dot::before,
.map-pin--capital.active .map-pin__dot::before {
    color: #4a3f35;
    transform: scale(1.4);
    text-shadow: 0 2px 8px rgba(74, 63, 53, 0.5), 0 0 0 2px #fff;
}

.map-pin--capital .map-pin__label {
    color: #8b7355;
    font-weight: 500;
    font-size: 10px;
    margin-bottom: 0;
}

.map-pin--capital:hover .map-pin__dot,
.map-pin--capital.active .map-pin__dot {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    transform: none;
}

/* Popup on hover (description only) */
.map-pin__popup {
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    background: #0a3d5c;
    color: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    min-width: 150px;
    max-width: 210px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
    z-index: 30;
    white-space: normal;
}

.map-pin__popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #0a3d5c;
}

.map-pin:hover .map-pin__popup,
.map-pin.active .map-pin__popup {
    opacity: 1;
    visibility: visible;
}

.map-pin__popup-title {
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.map-pin__popup-desc {
    font-size: 0.75rem;
    opacity: 0.85;
    line-height: 1.4;
}

/* Map Info */
.travel-map-info {
    padding: 10px 0 10px 20px;
}

.travel-map-info__title {
    font-size: 17px;
    font-weight: 700;
    color: #0a3d5c;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.travel-map-info__title i {
    color: #1a8a6e;
    font-size: 18px;
}

.travel-map-info__desc {
    font-size: 13.5px;
    line-height: 1.75;
    color: #3d4f5f !important;
    margin-bottom: 20px;
}

.travel-map-info__desc *,
.travel-map-info__desc p,
.travel-map-info__desc li,
.travel-map-info__desc span,
.travel-map-info__desc strong,
.travel-map-info__desc em,
.travel-map-info__desc a {
    font-size: 13.5px !important;
    color: #3d4f5f !important;
    line-height: 1.75;
}

.travel-map-info__desc h1,
.travel-map-info__desc h2,
.travel-map-info__desc h3,
.travel-map-info__desc h4 {
    font-size: 15px;
    color: #0a3d5c;
    font-weight: 600;
    margin-top: 12px;
    margin-bottom: 6px;
}

.travel-map-info__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0a3d5c, #0d4f73);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.travel-map-info__link:hover {
    background: linear-gradient(135deg, #1a8a6e, #15a07e);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 138, 110, 0.3);
}

/* Responsive */
@media (max-width: 991px) {
    .travel-map-info {
        padding: 20px 0 0 0;
        text-align: center;
    }

    .travel-map-info__title {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .travel-map-section {
        padding: 40px 0;
    }

    .travel-map-wrapper {
        padding: 20px;
        margin: 0 10px;
    }

    .travel-map-info__title {
        font-size: 15px;
    }

    .travel-map-info__desc,
    .travel-map-info__desc p,
    .travel-map-info__desc li {
        font-size: 13px;
    }
}

/* Pin info panel */
.travel-map-pin-info {
    animation: fadeInUp 0.25s ease;
}

.travel-map-pin-info__back {
    background: none;
    border: none;
    padding: 0 0 12px;
    font-size: 0.85rem;
    color: #0a3d5c;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.travel-map-pin-info__back:hover {
    color: #1a8a6e;
}

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

/* Destination gallery in map info panel */
.map-info-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.map-info-gallery img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s;
}

.map-info-gallery img:hover {
    transform: scale(1.04);
    opacity: 0.9;
}

/* First image spans full width if only 1 photo */
.map-info-gallery img:only-child {
    grid-column: 1 / -1;
    aspect-ratio: 16/9;
}

/* Responsive for new info panel */
@media (max-width: 768px) {
    .map-info-photo__main { height: 160px; }
    .map-info-photo__thumbs img { height: 42px; }
}

/* Thumb wrapper */
.map-thumb-wrap {
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
}

.map-thumb-wrap img {
    width: 64px;
    height: 52px;
    object-fit: cover;
    border-radius: 4px;
    opacity: 0.65;
    transition: opacity 0.2s;
    border: 2px solid transparent;
    display: block;
}

.map-thumb-wrap img:hover,
.map-thumb-wrap img.active {
    opacity: 1;
    border-color: #0d6b8a;
}

/* Fix link text color */
.map-info-link,
.map-info-link span,
.map-info-link i {
    color: #fff !important;
}

/* ============================================
   Map Side Tabs (Best Time / Tour Styles / Destinations)
   ============================================ */

.map-side-tabs {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(10,61,92,0.06);
}

.map-side-tabs__nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.map-side-tabs__nav li { flex: 1; }

.map-side-tabs__btn {
    width: 100%;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #3d4f5f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: color 0.2s, border-color 0.2s;
    height: auto !important;
    white-space: nowrap;
}

.map-side-tabs__btn:hover { color: #0d6b8a; }

.map-side-tabs__btn.active {
    color: #0a3d5c;
    border-bottom-color: #0d6b8a;
    background: #fff;
}

.map-side-tabs__content {
    display: none;
}

.map-side-tabs__content.active {
    display: block;
}

.map-tab-body {
    padding: 14px;
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.7;
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c8dce8 transparent;
}

/* Tour Styles chips */
.map-tab-styles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.map-style-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px 5px 5px;
    background: #f0f7ff;
    border: 1px solid #c8dce8;
    border-radius: 20px;
    text-decoration: none;
    color: #0a3d5c;
    font-size: 0.78rem;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s;
}

.map-style-chip:hover {
    background: #0d6b8a;
    border-color: #0d6b8a;
    color: #fff;
}

.map-style-chip img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* Destinations list */
.map-tab-destinations {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}

.map-dest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    text-decoration: none;
    color: #0a3d5c;
    font-size: 0.85rem;
    font-weight: 500;
    border-bottom: 1px solid #f0f4f8;
    transition: background 0.15s;
}

.map-dest-item:last-child { border-bottom: none; }

.map-dest-item:hover {
    background: #f0f7ff;
    color: #0d6b8a;
}

.map-dest-item img,
.map-dest-item__placeholder {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.map-dest-item__placeholder {
    background: #e2edf5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ab5c8;
    font-size: 0.9rem;
}

/* ============================================
   Map Side Sections (always visible lists)
   ============================================ */

.map-side-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(10,61,92,0.05);
}

.map-side-section__title {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #0d6b8a 0%, #0a3d5c 100%);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.map-side-section__body {
    max-height: 180px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c8dce8 transparent;
}

.map-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    font-size: 0.82rem;
    color: #0a3d5c;
    text-decoration: none;
    border-bottom: 1px solid #f0f4f8;
    transition: background 0.15s;
}

.map-list-item:last-child { border-bottom: none; }

.map-list-item:hover {
    background: #f0f7ff;
    color: #0d6b8a;
}

.map-list-item i:first-child {
    font-size: 0.65rem;
    color: #0d6b8a;
    flex-shrink: 0;
}

.map-list-item span:first-of-type {
    flex: 1;
    font-weight: 500;
}

.map-list-item__tag {
    font-size: 0.68rem;
    font-weight: 600;
    color: #fff;
    background: #1a8a6e;
    padding: 2px 7px;
    border-radius: 10px;
    flex-shrink: 0;
}

/* ============================================
   More Information Grid (icon + title + text)
   ============================================ */

.map-more-info {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(10,61,92,0.05);
}

.map-more-info__heading {
    font-family: "Manrope", sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #0d1b2a;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.map-more-info__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

.map-info-block {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.map-info-block__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1e3a53;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
}

.map-info-block__content {
    flex: 1;
    min-width: 0;
}

.map-info-block__title {
    font-family: "Manrope", sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #0d1b2a;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.map-info-block__text {
    font-family: "Manrope", sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #3d4f5f;
}

.map-info-block__text p { margin: 0; }

.map-info-block__link {
    font-family: "Manrope", sans-serif;
    color: #3d4f5f;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9375rem;
}

.map-info-block__link:hover {
    color: #2e7d6b;
    text-decoration: underline;
}

@media (max-width: 576px) {
    .map-more-info__grid {
        grid-template-columns: 1fr;
    }
}

/* Map hint text */
.travel-map-hint {
    font-size: 0.78rem;
    color: #4a5568;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
}

.travel-map-hint i {
    color: #0d6b8a;
    font-size: 0.75rem;
}
