/**
 * map-page.css - Styles specific to the travel/map page.
 * Extracted from inline <style> blocks in map.html.
 */

/* Dots */
.dot-container {
    text-align: center;
    padding: 16px;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot:hover {
    background-color: #717171;
}

/* Slide images */
.content-slide {
    display: none;
    width: 60vw;
    height: 60vh;
    object-fit: contain;
}

/* Popup Overlay */
.content-popup {
    display: none;
    top: 0;
    position: fixed;
    z-index: 1;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

/* Popup Content */
.content-popup-content {
    top: 10vh;
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 10px;
    border: 1px solid #888;
    width: 80%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* Prev/Next button positioning */
.content-prev,
.content-next {
    cursor: pointer;
    position: absolute;
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    user-select: none;
}

.content-next {
    right: 0;
}

.content-prev {
    left: 0;
}

/* Close Button */
.content-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
}

.content-close:hover,
.content-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.content-more-dots {
    margin: 0 5px;
    font-size: 24px;
    display: inline-block;
    cursor: pointer;
}

.content-icon {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.content-slideshow-container {
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: auto;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-dot-container-frame {
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: auto;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-slide img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.content-active {
    display: flex;
}

.content-dot-container {
    text-align: center;
    padding: 20px;
    background: #ddd;
    width: 100%;
    max-width: fit-content;
    margin: auto;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border-radius: 10px;
    display: flex;
    justify-content: center;
}

.content-dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.content-active-dot,
.content-dot:hover {
    background-color: #717171;
}

/* Photo display and SVG map styles */
#photoDisplay {
    width: 200px;
    height: 200px;
    background-size: cover;
    display: none;
}

path {
    stroke: #78909C;
    stroke-width: 0.5;
    fill: #E0E0E0;
    transition: fill 0.4s ease, transform 0.3s ease, filter 0.3s ease;
    transform-origin: center center;
    cursor: pointer;
}

path:hover {
    transform: scale(1.008);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.25));
}

path.map-click-flash {
    animation: clickFlash 0.45s ease-out forwards;
}

@keyframes clickFlash {
    0%   { transform: scale(1); filter: blur(0) brightness(1); }
    30%  { transform: scale(1.06); filter: blur(2px) brightness(1.4); }
    60%  { transform: scale(1.03); filter: blur(4px) brightness(1.2); opacity: 0.85; }
    100% { transform: scale(1.08); filter: blur(8px) brightness(1.6); opacity: 0; }
}

@media only screen and (max-width: 1225px) {
    .info {
        display: none;
    }
    .w3-third {
        width: 100%;
    }
}

#us-map {
    display: block;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#details-box {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    opacity: 0%;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    position: fixed;
    color: white;
    font-family: "Poppins", sans-serif;
    background: linear-gradient(135deg, #263238, #37474F);
    width: fit-content;
    transform: translateX(-50%);
    transition: opacity 0.3s ease;
    z-index: 10;
    pointer-events: none;
    letter-spacing: 0.3px;
}

.left-container {
    position: fixed;
}

/* Additional map page overrides */
#myDiv #Canada #BritishIsle {
    display: block;
}
