/* Bottom Sheet Styles for Mobile Location Section */

/* Floating Info Button */
.location-info-button {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    border: none;
    transition: all 0.3s ease;
}

.location-info-button:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.location-info-button:active {
    transform: scale(0.95);
}

.location-info-button svg {
    width: 24px;
    height: 24px;
    color: #39B54A;
}

/* Bottom Sheet Container - Now as a card overlay */
.location-bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}

/* Bottom Sheet States */
.location-bottom-sheet.collapsed {
    transform: translateY(100%);
}

.location-bottom-sheet.expanded {
    transform: translateY(0);
}

.location-bottom-sheet.hidden {
    transform: translateY(100%);
}

/* Bottom Sheet Header */
.bottom-sheet-header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bottom-sheet-header-content {
    flex: 1;
}

.bottom-sheet-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.bottom-sheet-subtitle {
    font-size: 14px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Close Button */
.bottom-sheet-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.bottom-sheet-close:hover {
    background: #e2e8f0;
}

.bottom-sheet-close:active {
    transform: scale(0.95);
}

.bottom-sheet-close svg {
    width: 18px;
    height: 18px;
    color: #64748b;
}

/* Bottom Sheet Content (Scrollable) */
.bottom-sheet-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar for Bottom Sheet */
.bottom-sheet-content::-webkit-scrollbar {
    width: 6px;
}

.bottom-sheet-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.bottom-sheet-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.bottom-sheet-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Location Info Sections */
.location-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

.location-info-item:last-child {
    border-bottom: none;
}

.location-info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 12px;
    color: #39B54A;
}

.location-info-content {
    flex: 1;
}

.location-info-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.location-info-text {
    font-size: 14px;
    color: #0f172a;
    line-height: 1.5;
}

.location-info-text a {
    color: #0f172a;
    text-decoration: none;
}

.location-info-text a:hover {
    color: #39B54A;
}

/* Directions Section */
.directions-section {
    margin-top: 24px;
}

.directions-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 16px;
}

.directions-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.direction-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.direction-button:hover,
.direction-button:active {
    border-color: #39B54A;
    box-shadow: 0 4px 12px rgba(57, 181, 74, 0.15);
    transform: translateY(-2px);
}

.direction-button-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.direction-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.direction-button:hover .direction-icon {
    transform: scale(1.1);
}

.direction-icon.google {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
}

.direction-icon.yandex {
    background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
}

.direction-text {
    display: flex;
    flex-direction: column;
}

.direction-name {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    transition: color 0.3s ease;
}

.direction-button:hover .direction-name {
    color: #39B54A;
}

.direction-subtitle {
    font-size: 12px;
    color: #64748b;
}

.direction-arrow {
    width: 20px;
    height: 20px;
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.direction-button:hover .direction-arrow {
    color: #39B54A;
    transform: translateX(4px);
}

/* Backdrop for expanded state */
.bottom-sheet-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
    pointer-events: none;
}

.bottom-sheet-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Green accent bar */
.bottom-sheet-accent {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #39B54A 0%, #006837 100%);
}

/* Desktop - Hide bottom sheet, show original layout */
@media (min-width: 1024px) {
    .location-bottom-sheet,
    .bottom-sheet-backdrop {
        display: none;
    }

    .location-desktop-card {
        display: block !important;
    }
}

/* Mobile - Show floating button and bottom sheet only when Location tab is active */
@media (max-width: 1023px) {
    /* Hide button, bottom sheet and backdrop by default */
    .location-info-button,
    .location-bottom-sheet,
    .bottom-sheet-backdrop {
        display: none !important;
    }

    /* Show info button when Location tab (2nd tab) is active */
    .tabTexts .box .item:nth-child(2).active .location-info-button {
        display: flex !important;
    }

    /* Bottom sheet shown/hidden by JavaScript toggle */
    .tabTexts .box .item:nth-child(2).active .location-bottom-sheet {
        display: flex !important;
    }

    .tabTexts .box .item:nth-child(2).active .bottom-sheet-backdrop.active {
        display: block !important;
    }

    /* Hide desktop card on mobile when in Location tab */
    .tabTexts .box .item:nth-child(2) .location-desktop-card {
        display: none !important;
    }

    /* Full height map on mobile in Location tab */
    .tabTexts .box .item:nth-child(2) .location-map-container {
        height: 100vh !important;
        position: relative;
    }
}

/* Desktop - Hide button, bottom sheet, show original layout */
@media (min-width: 1024px) {
    .location-info-button {
        display: none !important;
    }
}

/* Smooth transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Prevent body scroll when bottom sheet is expanded */
body.bottom-sheet-open {
    overflow: hidden;
}

@media (max-width: 1023px) {
    body.bottom-sheet-open {
        overflow: hidden;
    }
}

