:root {
    --map-border-radius: 0.375rem;
    --tc-orange: #ff7b29;
}

.location-map-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.location-map-wrapper .map-container {
    position: relative;
    border-radius: var(--map-border-radius);
    overflow: hidden;
    isolation: isolate;
    background: #f0f0f0;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.location-map-wrapper .map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: contrast(1.05) brightness(1.02);
    transition: filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.location-map-wrapper .map-container:hover {
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
}

/* Gradient Fade to Section */
.map-gradient-transition {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        var(--tc-bg-gray, #f5f7fa) 100%
    );
    pointer-events: none;
    z-index: 10;
}

/* Dark mode / Section Gray compensation */
.section-gray .map-gradient-transition {
    background: linear-gradient(
        to bottom,
        rgba(245, 247, 250, 0) 0%,
        #f5f7fa 100%
    );
}

/* Mobile specific overrides */
@media (max-width: 767.98px) {
    .location-map-wrapper {
        margin-bottom: 0;
        padding-bottom: 2rem;
    }

    .location-map-wrapper .map-gradient-transition {
        height: 60px;
        background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0) 0%,
            #fff 100%
        );
    }
}

/* Floating "Get Directions" button - minimalist style */
.btn-map-float {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 5;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-map-float:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    color: var(--tc-orange);
}
