/* Stellar Map Component Styles */

stellar-map {
    display: block;
    width: 100%;
    height: 100vh;
}

.stellar-map-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.stellar-map-header {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
}

.search-container-row {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.city-selector-col {
    flex: 1;
    position: relative;
    min-width: 200px;
}

.or-separator {
    flex-shrink: 0;
    padding: 15px 10px 0 10px;
}

.or-separator p {
    color: white;
    font-weight: 600;
    margin: 0;
    font-size: 14px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.search-col {
    flex: 1;
    min-width: 200px;
}

/* City Selector Button */
#city-selector-button,
.city-selector-btn {
    width: 100%;
    padding: 15px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    text-align: left;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#city-selector-button:hover,
.city-selector-btn:hover {
    border-color: #667eea;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

#city-selector-button.active,
.city-selector-btn.active {
    border-color: #667eea;
    background: #f8f9ff;
}

#city-selector-button::after,
.city-selector-btn::after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #666;
}

/* City Selector Dropdown */
#city-selector-dropdown,
.city-selector-dropdown {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 9999;
    list-style: none;
    padding: 0;
    margin: 0;
}

#city-selector-dropdown .dropdown-header,
.city-selector-dropdown .dropdown-header {
    padding: 12px 16px;
    font-weight: 700;
    font-size: 14px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    cursor: default;
}

#city-selector-dropdown .dropdown-item,
.city-selector-dropdown .dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    color: #333;
    font-size: 15px;
}

#city-selector-dropdown .dropdown-item:hover,
.city-selector-dropdown .dropdown-item:hover {
    background-color: #f8f9ff;
    color: #667eea;
}

#city-selector-dropdown .dropdown-item.active,
.city-selector-dropdown .dropdown-item.active {
    background-color: #667eea;
    color: white;
    font-weight: 600;
}

#city-selector-dropdown .dropdown-item:last-child,
.city-selector-dropdown .dropdown-item:last-child {
    border-bottom: none;
}

.stellar-map-body {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.map-container {
    width: 100%;
    height: 100%;
}

/* Location Flyout Panel */
#location-flyout {
    position: absolute;
    top: 20px;
    left: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    max-width: 500px;
    z-index: 1000;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

/* Flyout utility classes (supplements loaded stylesheets) */
.fntAquaForest { color: #000; }
.fntBld { font-weight: 800; }
.fntWhite { color: white; }
.txt14 { font-size: 14px; }
.pad10 { padding: 10px; }

.btnSubscribe {
    background: linear-gradient(1deg, #016efd, #35acfc);
    border: none;
    z-index: 1;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    padding: 8px 24px;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    cursor: pointer;
}

.btnSubscribe:hover {
    color: white;
    text-decoration: none;
}

/* Order Now button — primary CTA (default gradient) */
.btn-order {
    background: linear-gradient(1deg, #016efd, #35acfc);
}

/* Pre-Order button — outline style */
.btn-preorder {
    background: transparent;
    border: 2px solid #016efd;
    color: #016efd;
}

.btn-preorder:hover {
    background: linear-gradient(1deg, #016efd, #35acfc);
    color: white;
}

/* Check Availability button — muted/gray style */
.btn-check {
    background: #6c757d;
}

.btn-check:hover {
    background: #5a6268;
}

/* z100 class for high z-index */
.z100 {
    z-index: 1000;
}

/* Cursor pointer */
.cursor_pointer {
    cursor: pointer;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .stellar-map-header {
        padding: 16px;
    }

    .search-container-row {
        flex-direction: column;
        gap: 12px;
    }

    .or-separator {
        padding: 8px 0;
    }

    .or-separator p {
        font-size: 12px;
    }

    .city-selector-col,
    .search-col {
        width: 100%;
        min-width: unset;
    }

    #location-flyout {
        left: 10px;
        right: 10px;
        max-width: none;
        top: 10px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stellar-map-header {
    animation: fadeIn 0.5s ease-out;
}

.modal_header_background_image_1 {
    background-image: url(https://stellarbb.com/media_uploads/pop_up_banner_graphic_451x166.png);
}
