/**
 * Locations Styles
 *
 * @package Hello_Elementor_Child
 */
/* Locations Wrapper */
.hec-locations-wrapper {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

/* Single Location Item */
.hec-location-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    /* Margins applied via inline styles from ACF fields */
}

.hec-location-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Location Content */
.hec-location-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Location Title */
.hec-location-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
}

.hec-location-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hec-location-title a:hover {
    color: #0073aa;
}

/* Location Thumbnail */
.hec-location-thumbnail {
    overflow: hidden;
    border-radius: 6px;
}

.hec-location-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.hec-location-thumbnail a:hover img {
    transform: scale(1.05);
}

/* Location Meta Info */
.hec-location-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 4px;
    font-size: 0.9rem;
}

.hec-location-meta p {
    margin: 0;
    color: #666;
}

.hec-location-meta strong {
    color: #333;
    font-weight: 600;
}

/* SVG Map Display */
.hec-location-map-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.hec-location-map {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: transparent;
    position: relative;
}

.hec-location-map svg {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

/* Location Points */
.hec-location-points {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hec-map-point {
    position: absolute;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
    pointer-events: all;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hec-map-point:hover {
    transform: translate(-50%, -50%) scale(1.2);
    z-index: 10;
}

.hec-map-point svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hec-map-point.is-selected {
    z-index: 20;
}

.hec-map-point.is-selected svg {
    display: none;
}

.hec-modal-button-svg {
    width: 38px;
    height: 38px;
    padding: 9px;
    aspect-ratio: 1;
    border-radius: 100px;
    background: #FFF;
}

.hec-map-point.is-selected::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/map-point-selected.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Location Modal */
.hec-location-modal {
    position: absolute;
    padding: 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    max-width: 400px;
    width: max-content;
    z-index: 30;
    min-width: 258px;
    pointer-events: auto;
}

.hec-modal-title {
    color: #FFF;
    margin: 0;
    font-variant-numeric: slashed-zero;
    font-family: Spoverhil;
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%; /* 33px */

}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.hec-modal-content {
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
}

.close-btn{
    display: none;
}

.close-btn{
    position: absolute;
    top: -2px;
    right: -2px;
    background: transparent;
    border: none;
    color: #FFF;
    font-size: 20px;
    cursor: pointer;
}

.hec-modal-date {
    color: rgba(255, 255, 255, 0.50);
    font-variant-numeric: slashed-zero;
    font-family: "DM Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.hec-modal-button {
    display: flex !important;

    padding: 5px 5px 5px 20px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    color: #FFF;
    font-family: "DM Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    border-radius: 100px;
    border: 1px solid #FFF;
}


.hec-modal-button:hover {
    background: #555;
    transform: translateY(-2px);
}

.hec-modal-button:active {
    transform: translateY(0);
}

/* Empty State */
.hec-locations-empty {
    padding: 3rem 2rem;
    text-align: center;
    background: #f9f9f9;
    border-radius: 8px;
}

.hec-locations-empty p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

/* Responsive Design */
@media screen and (min-width: 768px) {
    .hec-locations-wrapper {
        gap: 3rem;
    }

    .hec-location-item {
        padding: 2.5rem;
    }

    .hec-location-content {
        gap: 2rem;
    }
}

@media screen and (max-width: 767px) {
    .hec-location-item {
        padding: 1.5rem;
    }

    .hec-location-title {
        font-size: 1.5rem;
    }

    .hec-location-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hec-location-map {
        border-radius: 4px;
    }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    .hec-location-item {
        background: #1e1e1e;
        border-color: #333;
    }

    .hec-location-title a {
        color: #fff;
    }

    .hec-location-title a:hover {
        color: #4a9eff;
    }

    .hec-location-meta {
        background: #2a2a2a;
    }

    .hec-location-meta p {
        color: #aaa;
    }

    .hec-location-meta strong {
        color: #fff;
    }

    .hec-location-map-placeholder {
        background: #2a2a2a;
        border-color: #444;
    }

    .hec-map-notice {
        color: #888;
    }
}


@media (max-width: 767px) {
    .close-btn{
        display: block;
        cursor: pointer;
        z-index: 10;
    }

    .hec-location-modal {
        position: absolute !important;
        left: 5% !important;
        right: 5% !important;
        bottom: 20px !important;
        top: auto !important;
        max-width: 90%;
        width: 90%;
        transform: none !important;
        border-radius: 20px;
        padding: 24px 20px;
    }

    .hec-modal-content {
        width: 100%;
    }

    .hec-modal-button {
        width: 100%;
        justify-content: space-between;

    }
}