/* Unique styles for Baikal map section */
.baikal-map-section {
    padding: 4rem 0;
    background-color: white;
}

.baikal-map-container {
    max-width: 112rem;
    margin: 0 auto;
    padding: 0 1.4rem;
}

.baikal-map-header {
    text-align: center;
    margin-bottom: 4.8rem;
}

.baikal-map-title {
    font-size: 3.6rem;
    line-height: 1.2;
    font-weight: 200;
    margin-bottom: 1.4rem;
    color: #1e293b;
}

@media (min-width: 1024px) {
    .baikal-map-title {
        font-size: 4.5rem;
    }
}

.baikal-map-subtitle {
    font-size: 2rem;
    color: #64748b;
    max-width: 84rem;
    margin: 0 auto;
}

.baikal-map-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4.8rem;
}

@media (min-width: 1024px) {
    .baikal-map-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.baikal-map-wrapper {
    order: 2;
    background-color: white;
    border-radius: 1.4rem;
    padding: 4.2rem;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

@media (min-width: 1024px) {
    .baikal-map-wrapper {
        order: 1;
    }
}

.baikal-map-image-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.baikal-map-image {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    display: block;
}

/* Map point styles */
.baikal-map-point {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.baikal-map-point-pulse {
    position: absolute;
    border-radius: 50%;
    animation: baikalPulse 2s infinite;
    width: 100%;
    height: 100%;
    background-color: #93c5fd;
}

.baikal-map-point-active .baikal-map-point-pulse {
    background-color: #60a5fa;
}

.baikal-map-point-marker {
    position: relative;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    border: 0.2rem solid white;
    box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    background-color: #2563eb;
    z-index: 2;
}

.baikal-map-point:hover .baikal-map-point-marker {
    background-color: #1d4ed8;
    transform: scale(1.1);
}

.baikal-map-point-active .baikal-map-point-marker {
    background-color: #1d4ed8;
    transform: scale(1.25);
}

.baikal-map-tooltip {
    position: absolute;
    bottom: calc(100% + 1rem);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.7rem 1.4rem;
    background-color: #1e293b;
    color: white;
    font-size: 1.2rem;
    border-radius: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 20;
}

.baikal-map-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 0.4rem solid transparent;
    border-right: 0.4rem solid transparent;
    border-top: 0.4rem solid #1e293b;
}

.baikal-map-point:hover .baikal-map-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Location info panel */
.baikal-map-info {
    height: fit-content;
    order: 1;
    background-color: white;
    border-radius: 1.4rem;
    padding: 4.2rem;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

@media (min-width: 1024px) {
    .baikal-map-info {
        order: 2;
    }
}

.baikal-map-info-default {
    text-align: center;
}

.baikal-map-info-icon {
    width: 4.2rem;
    height: 4.2rem;
    background-color: #ccfbf1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.4rem;
}

.baikal-map-info-icon svg {
    width: 2.1rem;
    height: 2.1rem;
    color: #0d9488;
}

.baikal-map-info-default-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.7rem;
}

.baikal-map-info-default-text {
    font-size: 1.2rem;
    color: #64748b;
}

/* Selected location styles */
.baikal-map-location-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.4rem;
}

.baikal-map-location-title {
    font-size: 2.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.35rem;
}

.baikal-map-location-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: #0d9488;
}

.baikal-map-location-close {
    font-size: 2.1rem;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.3s ease;
}

.baikal-map-location-close:hover {
    color: #64748b;
}

.baikal-map-location-image {
    width: 100%;
    height: 14rem;
    object-fit: cover;
    border-radius: 0.7rem;
    margin-bottom: 1.4rem;
}

.baikal-map-location-description {
    font-size: 1.2rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.4rem;
}

.baikal-map-location-attractions {
    margin-bottom: 1.4rem;
}

.baikal-map-location-attractions-title {
    font-size: 1.4rem;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 0.7rem;
}

.baikal-map-location-attraction {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.baikal-map-location-attraction svg {
    width: 1.2rem;
    height: 1.2rem;
    color: #0d9488;
    margin-right: 0.7rem;
    flex-shrink: 0;
}

.baikal-map-location-buttons {
    display: grid;
    gap: 0.7rem;
}

.baikal-map-location-button {
    width: 100%;
    padding: 1.05rem;
    border-radius: 0.7rem;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.baikal-map-location-button-primary {
    background-color: #0d9488;
    color: white;
}

.baikal-map-location-button-primary:hover {
    background-color: #0f766e;
}

.baikal-map-location-button-secondary {
    border: 0.1rem solid #e2e8f0;
    color: #64748b;
}

.baikal-map-location-button-secondary:hover {
    border-color: #cbd5e1;
}

.baikal-map-location-button svg {
    width: 1.2rem;
    height: 1.2rem;
    margin-right: 0.7rem;
}

/* Animation */
@keyframes baikalPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.3);
        opacity: 0;
    }
    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}

/* Hide/show logic for selected location */
.baikal-map-location-selected {
    display: none;
}

.baikal-map-location-default {
    display: block;
}

/* When location is selected, swap visibility */
.baikal-map-info[data-selected="true"] .baikal-map-location-selected {
    display: block;
}

.baikal-map-info[data-selected="true"] .baikal-map-location-default {
    display: none;
}
