/* Therapists Nearby Page Styles */

.therapists-nearby-page {
    min-height: 100vh;
    background: var(--sub-color);
}

/* Hero Section */
.nearby-hero {
    position: relative;
    height: 40vh;
    min-height: 300px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.nearby-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/frontpage.jpg') center/cover;
    opacity: 0.6;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.3));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-gold);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-gray);
}

/* Search Section */
.search-section {
    padding: 2rem 0;
    background: var(--sub-color);
    border-bottom: 2px solid var(--primary-gold);
}

.search-card {
    background: var(--sub-color);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 2rem;
}

.location-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.btn-location {
    background: var(--primary-gold);
    color: var(--dark-bg);
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-location:hover {
    background: var(--secondary-gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.location-status {
    margin-top: 1rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.filters-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-select {
    background: var(--sub-color);
    border: 2px solid rgba(212, 175, 55, 0.3);
    color: var(--main-color);
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4af37' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Results Section */
.results-section {
    padding: 3rem 0;
}

.results-header {
    text-align: center;
    margin-bottom: 2rem;
}

.results-header h2 {
    font-size: 2rem;
    color: var(--main-color);
    margin-bottom: 0.5rem;
}

.location-info {
    color: var(--primary-gold);
    font-size: 1.1rem;
}

/* Map Container */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    margin-bottom: 3rem;
    background: var(--sub-color);
    border: 2px solid rgba(212, 175, 55, 0.3);
}

/* Therapists Grid */
.therapists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Nearby Card Styles (New Unique Classes) */
.nearby-card-container {
    background: #ffffff;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    min-height: 140px;
    cursor: pointer;
}

.nearby-card-container:hover {
    border-color: #d4af37;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

/* Image Section */
.nearby-card-image {
    position: relative;
    width: 130px;
    min-width: 130px;
    align-self: stretch;
    overflow: hidden;
    background: #1a1a1a;
}

.nearby-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    display: block;
}

.nearby-card-container:hover .nearby-card-image img {
    transform: scale(1.1);
}

/* Rating Badge */
.nearby-rating {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: #fbbf24;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
    z-index: 5;
}

.nearby-rating i {
    font-size: 0.65rem;
    color: #fbbf24;
}

/* Status Badge */
.nearby-status {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(4, 187, 2, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 50px;
    font-size: 0.65rem;
    z-index: 5;
}

.nearby-status i {
    font-size: 6px;
    vertical-align: middle;
}

/* Info Section */
.nearby-card-info {
    flex: 1;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevents flex overflow */
    justify-content: space-between;
}

.nearby-card-info h3 {
    font-size: 1.1rem;
    color: #d4af37;
    margin: 0 0 8px 0;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

/* Distance Badge */
.nearby-distance {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.08));
    color: #3b82f6;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    align-self: flex-start;
}

.nearby-distance i {
    font-size: 0.8rem;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    margin-left: 6px;
    animation: pulse-live 1.5s ease-in-out infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Location */
.nearby-location {
    color: #888;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.nearby-location i {
    color: #d4af37;
    font-size: 0.75rem;
}

/* Footer */
.nearby-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.nearby-price {
    font-size: 1.1rem;
    color: #d4af37;
    font-weight: 700;
}

.nearby-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37 0%, #c9a227 100%);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    text-decoration: none;
    flex-shrink: 0;
}

.nearby-btn:hover {
    transform: scale(1.1);
}

.nearby-btn i {
    font-size: 0.9rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--sub-color);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 0.75rem;
}

.no-results i {
    font-size: 4rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.8rem;
    color: var(--main-color);
    margin-bottom: 0.5rem;
}

.no-results p {
    font-size: 1.1rem;
    color: var(--text-gray);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .search-card {
        padding: 1rem;
    }
    
    .location-input {
        margin-bottom: 1rem;
    }

    .btn-location {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    .filters-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .filter-select {
        width: 100%;
        padding: 0.6rem 2.5rem 0.6rem 0.8rem;
        font-size: 0.9rem;
        background-position: right 0.8rem center;
        background-size: 10px;
    }

    /* Force Single Column Grid */
    .therapists-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .map-container {
        height: 300px;
    }
    
    .leaflet-map {
        height: 250px;
        border-radius: 12px;
        margin-bottom: 16px;
    }
    
    .search-section {
        padding: 1rem 0;
    }
    
    .results-section {
        padding: 1.5rem 0;
    }
    
    .results-header {
        margin-bottom: 1rem;
    }
    
    .results-header h2 {
        font-size: 1.2rem;
    }
    
    /* Mobile Card Adjustments */
    .nearby-card-container {
        min-height: 140px;
    }
    
    .nearby-card-image {
        width: 110px;
        min-width: 110px;
    }
    
    .nearby-card-info {
        padding: 10px 12px;
    }
    
    .nearby-card-info h3 {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .nearby-distance {
        padding: 4px 8px;
        font-size: 0.8rem;
        margin-bottom: 6px;
    }
    
    .nearby-location {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }
    
    .nearby-price {
        font-size: 1rem;
    }
    
    .nearby-btn {
        width: 32px;
        height: 32px;
    }
    
    .nearby-rating {
        padding: 3px 6px;
        font-size: 0.65rem;
    }
    
    .nearby-status {
        padding: 3px 6px;
        font-size: 0.55rem;
    }
}

/* Extra Small Devices */
@media (max-width: 380px) {
    .nearby-card-container {
        min-height: 130px;
    }
    
    .nearby-card-image {
        width: 95px;
        min-width: 95px;
    }
    
    .nearby-card-info {
        padding: 8px 10px;
    }
    
    .nearby-card-info h3 {
        font-size: 0.9rem;
    }
    
    .nearby-distance {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
    
    .nearby-location {
        font-size: 0.75rem;
    }
}

