/* Delaware Dispensary Map Page Styles */

/* Map Styles */
#map {
    height: 600px; /* Mobile height */
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.map-loading {
    height: 600px; /* Mobile height */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 12px;
    color: #666;
    font-size: 1.1rem;
}

/* Mobile: Full width like products table */
@media (max-width: 767px) {
    /* Make SEO text smaller on mobile */
    main p {
        font-size: 0.9rem !important;
        margin: 15px 0 !important;
        line-height: 1.4 !important;
    }
    #map-container {
        margin: 0 -20px 0 -20px; /* Extend to full width, no bottom margin */
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }
    
    #map, .map-loading {
        border-radius: 0; /* Remove border radius on mobile for full width */
        margin: 0; /* Remove any margin on the map itself */
    }
    
    /* Remove bottom padding/margin from main content on mobile */
    main {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .container {
        padding-bottom: 0 !important;
    }
}

/* Desktop: Make map twice as tall */
@media (min-width: 768px) {
    #map {
        height: 900px; /* 100px less than before */
    }
    
    .map-loading {
        height: 900px; /* 100px less than before */
    }
}

/* Dispensary List Styles */
.dispensary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.dispensary-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    color: #333;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.dispensary-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
}

.dispensary-address {
    color: #64748b;
    margin-bottom: 15px;
    line-height: 1.4;
}

.dispensary-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.dispensary-detail {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #475569;
    font-size: 0.9rem;
}

.dispensary-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dispensary-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

@media (max-width: 768px) {
    .dispensary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding-bottom: 15px;
    }
    
    .dispensary-card {
        padding: 15px;
    }
    
    .dispensary-actions {
        justify-content: space-between;
    }
    
    .dispensary-btn {
        flex: 1;
        min-width: 120px;
    }
}
