.header {
    text-align: center;
    padding: 20px;
    background-color: #161616;
    color: white;
    border-color: #EDB115;
}

.layout-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
    max-width: 100%;
    box-sizing: border-box;
}

.map-container {
    flex: 2;
    max-width: 800px;
    position: relative;
    width: 90%;
}

.details-container {
    flex: 1;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    width: 100%;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
    display: none;
}

.details-container img {
    max-width: 100%;
    border-radius: 8px;
}

svg {
    width: 100%;
    height: auto;
}

path {
    fill: black;
    stroke: white;
    stroke-width: 2px;
    pointer-events: all;
}

path:hover {
    opacity: 1;
    fill: #F2C849;
    cursor: pointer;
}

a:hover text {
    fill: black;
    font-weight: bold;
    filter: drop-shadow(1px 0 0 white) drop-shadow(0 1px 0 white) drop-shadow(-1px 0 0 white) drop-shadow(0 -1px 0 white);
}

.mt-200 {
    margin-top: 200px !important;
}

.mt-250 {
    margin-top: 250px !important;
}

.mb-300 {
    margin-bottom: 300px !important;
}

.mb-10 {
    margin-bottom: 6rem !important;
}

.me-20 {
    margin-right: 12rem !important;
}

@media (max-width: 1618px) {
    .layout-container {
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
        align-items: center;
    }

    .map-container {
        width: 85% !important;
        max-width: 750px !important;
        order: 1;
    }

    .details-container {
        max-width: 100% !important;
        width: 85% !important;
        margin-right: 0px !important;
        margin-top: 0px !important;
        order: 2;
    }

    .me-20 {
        margin-right: 0px !important;
    }

    .mt-5 {
        margin-top: 15px !important;
    }

    .hr-vertical {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .layout-container {
        flex-direction: column;
        gap: 15px;
        padding: 0 10px;
    }

    .details-container {
        max-width: none !important;
        margin-right: 0px !important;
        margin-top: 0px !important;
        width: 100% !important;
        order: 2;
    }

    .map-container {
        width: 100% !important;
        max-width: none !important;
        order: 1;
    }

    .me-20 {
        margin-right: 0px !important;
    }

    .mt-5 {
        margin-top: 10px !important;
    }

    .hr-vertical {
        display: none !important;
    }

    .detail-content {
        flex-direction: column;
        gap: 15px;
    }

    .image-wrapper {
        flex: none;
        width: 100%;
    }

    .text-wrapper {
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .text-wrapper h2 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .text-wrapper p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .image-wrapper .overlay {
        font-size: 1.1rem;
    }

    .header {
        padding: 15px 10px;
    }

    .mt-200 {
        margin-top: 50px !important;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu {
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    background-color: #161616;
    color: white;
}

.option_dropdown {
    color: white !important
}

.detail-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.image-wrapper {
    position: relative;
    flex: 0 0 60%;
    overflow: hidden;
    border-radius: 8px;
}

.image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.image-wrapper .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.0);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: bold;
    opacity: 0;
    transition: background 0.3s ease, opacity 0.3s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.image-wrapper:hover .overlay {
    background: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.text-wrapper {
    flex: 1;
    text-align: left;
}

.text-wrapper h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.text-wrapper p {
    margin-bottom: 0;
}

svg a.selected path {
    fill: #F2C849 !important;
    stroke: #EDB115 !important;
    stroke-width: 3px !important;
}