/* Location-based feature styles - shared between index pages */

/* Animation keyframes */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Slider styles */
.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    outline: none;
    margin: 0.5rem 0;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3273dc;
    cursor: pointer;
    transition: background 0.2s;
}

.slider::-webkit-slider-thumb:hover {
    background: #2366d1;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3273dc;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.slider::-moz-range-thumb:hover {
    background: #2366d1;
}

/* Card styles */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Search dropdown positioning */
.location-search-dropdown {
    position: absolute !important;
    z-index: 2147483647 !important; /* Maximum z-index value */
    background: white !important;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
}

.search-container {
    position: relative;
    z-index: 10;
}

/* Ensure dropdown appears above everything */
#location-search-dropdown {
    z-index: 2147483647 !important; /* Maximum z-index value */
    position: absolute !important;
}

/* Ensure hero has appropriate z-index */
.hero {
    position: relative;
    z-index: 10;
}

/* Ensure nearby-parks section doesn't create stacking context issues */
#nearby-parks {
    position: relative;
    z-index: 1;
}

/* Location change area specific styles */
#location-change-area {
    position: relative;
    z-index: 20; /* Higher than nearby-parks but lower than dropdown */
}

/* Ensure the control container doesn't clip the dropdown */
#location-change-area .control {
    position: static !important;
    overflow: visible !important;
}

/* Playground distance display for location-based search */
.playground-distance {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
    display: inline-block;
}

/* Ensure equipment list bullets show (override Bulma reset) */
.playground-card .equipment-items {
    list-style: disc !important;
    padding-left: 1.5rem !important;
}

.playground-card .equipment-items li {
    list-style: disc !important;
    margin-bottom: 0.3rem;
    display: list-item !important;
}

/* Amenity overrides no longer needed - using proper amenity-block structure */

/* Mobile-specific styles */
@media (max-width: 768px) {
    .card-content .title.is-6 {
        font-size: 1rem !important;
        line-height: 1.3;
    }
    
    .card-content .subtitle.is-7 {
        font-size: 0.85rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .tags .tag {
        font-size: 0.7rem !important;
        margin-bottom: 0.25rem;
    }

    .location-search-dropdown {
        position: fixed !important;
        z-index: 2147483647 !important; /* Maximum z-index value */
        top: auto !important;
        left: 1rem !important;
        right: 1rem !important;
        width: auto !important;
    }
    
    #location-search-dropdown {
        position: fixed !important;
        z-index: 2147483647 !important; /* Maximum z-index value */
        top: auto !important;
        left: 1rem !important;
        right: 1rem !important;
        width: auto !important;
    }
    
    /* Ensure body doesn't clip fixed elements */
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }
    
    /* Reset transform on parent elements to prevent stacking context issues */
    #nearby-parks,
    #nearby-parks .container,
    #location-change-area,
    .hero,
    .hero-body,
    .search-container {
        transform: none !important;
        will-change: auto !important;
    }
    
    /* Ensure hero container doesn't clip dropdown */
    .hero {
        overflow: visible !important;
    }
    
    .hero-body {
        overflow: visible !important;
    }
}