* {
    box-sizing: border-box;
}

.content-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    overflow: visible;
}

.content.wrapper.clearfix {
    display: block;
    width: 100%;
}

.content.wrapper.clearfix h1 {
    font-weight: 400;
}

.location-description {
    width: 100%;
    margin-bottom: 20px;
}

.location-description p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.flex-container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: visible;
    border: #e0e0e0 solid 1px;
}

.map-details-container {
    position: relative;
    width: 100%;
    overflow: visible;
    border: #000000 solid 1px;
}

.map-sidebar {
    position: absolute;
    background-color: #fff;
    top: 10px;
    right: -100px;
    width: 100%;
    min-width: 320px;
    max-width: 420px;
    padding: 10px;
    border-radius: 4px;
    z-index: 20;
    display: flex;
    flex-direction: column;
}

.city-image-container {
    position: relative;
    width: 100%;
}

.city-image {
    width: 100%;
    max-width: none;
    height: 200px;
    object-fit: cover;
}

.city-image-title {
    position: absolute;
    bottom: 0;
    right: 0;
    color: #fff;
    padding: 5px 10px 5px 15px; /* 5px top/bottom, 10px right, 15px left (10px + 5px for background) */
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0);
    z-index: 1;
}
.city-image-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -5px; /* Start 5px left of text */
    right: 0; /* Extend to right edge of parent (.city-image-container) */
    height: 100%;
    background: #333333;
    opacity: 0.9;
    border-radius: 4px;
    z-index: -1;
}

.city-description {
    font-size: 1rem;
    line-height: 1.4;
    color: #333333;
    margin: 10px 0;
    text-align: left;
}

.city-image-description {
    font-size: 0.7rem;
    font-style: italic;
    color: #333333;
    margin: 5px 0 10px 0;
    line-height: 1.4;
    text-align: left;
}

.city-details-cta {
    display: block;
    width: 100%;
    background-color: #CE3337;
    color: #ffffff;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
    text-align: center;
    box-sizing: border-box;
}

.city-details-cta:hover {
    background-color: #b32d30;
}

.city-details-link {
    display: block;
    color: #1a2954;
    text-decoration: underline;
    font-size: 0.7rem;
    margin: 5px 0;
    text-align: center;
}

.city-details-link:hover {
    color: #3b4b7a;
}

@media (min-width: 769px) {
    .map-sidebar {
        right: -100px;
        border: #333333 solid 1px;
    }
}

@media (max-width: 768px) {
    .map-sidebar:not(.hidden) {
        position: relative;
        width: 100%;
        min-width: auto;
        max-width: none;
        margin-top: 20px;
        right: auto;
        top: auto;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .city-image {
        width: 100%;
        max-width: none;
        height: 200px;
    }

    #email-form {
        width: 90vw;
        max-width: 350px;
        padding: 15px;
        overflow-y: auto;
        max-height: 90vh;
    }
    #email-logo {
        width: 50px;
        height: 50px;
        margin-right: 10px;
    }
    #email-header {
        flex-direction: column;
        align-items: center;
    }
    .form-floating {
        margin-top: 8px;
    }
    .cta-email {
        font-size: medium;
        padding: 8px 16px;
    }
}

#email-form {
    width: 600px;
    color: black;
    background: white;
    border: #CE3337 1px solid;
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
    position: fixed;
    z-index: 1060;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1),
                0 6px 20px rgba(0, 0, 0, 0.1);
}

.form-floating {
    margin-top: 10px;
}

#email-form h2 {
    color: black;
}

#email-logo {
    width: 75px;
    height: 75px;
    margin-right: 20px;
}

#email-header {
    display: flex;
    text-align: center;
}

.cta-email {
    display: block;
    font-size: larger;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #CE3337;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.city-marker {
    cursor: pointer;
    pointer-events: auto;
}

.aura-circle {
    fill: #E0666A;
    fill-opacity: 0.2;
    pointer-events: none;
}

.marker-group:hover .aura-circle {
    animation: pulseAura 2s infinite alternate;
}

.marker-group.hq:hover .aura-circle.hq {
    animation: pulseAuraHQ 2s infinite alternate;
}

@keyframes pulseAura {
    0% { fill-opacity: 0.2; r: 10; }
    100% { fill-opacity: 0.4; r: 20; }
}

@keyframes pulseAuraHQ {
    0% { fill-opacity: 0.2; r: 10; }
    100% { fill-opacity: 0.4; r: 20; }
}

.city-label {
    font-size: 12px;
    font-weight: bold;
    fill: #000;
    background: rgba(255, 255, 255, 1);
    border-radius: 3px;
    pointer-events: none;
}

.leaflet-marker-icon.marker-cluster div {
    margin: 0 !important;
    padding: 0 !important;
}

.leaflet-marker-icon.marker-cluster {
    background-color: #15b615d5;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    text-align: center;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    line-height: 32px;
    cursor: pointer;
}

.leaflet-marker-icon .cluster-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    font-size: inherit;
    line-height: inherit;
}