/* =============================================
   HouseOffBarber - Customer Homepage Styles
   ============================================= */

/* ----- Nav Customer Variant ----- */
.nav-customer {
    background: white;
    border-bottom: 3px solid var(--black);
}

.nav-link-subtle {
    color: var(--deep-blue) !important;
    font-weight: 700 !important;
}

.nav-cta-app {
    background: var(--deep-blue) !important;
    color: white !important;
}

/* =============================================
   Hero Section
   ============================================= */
.customer-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 2rem 3rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #1e5a8a 100%);
    overflow: hidden;
}

.customer-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(101, 168, 212, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(233, 180, 76, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 80%, rgba(201, 68, 50, 0.08) 0%, transparent 40%);
}

.customer-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
    width: 100%;
}

.hero-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    color: var(--cream);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.customer-hero h1 {
    font-family: 'Secular One', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: white;
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-highlight {
    color: var(--cream);
    position: relative;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 2rem;
}

/* ----- Search Box ----- */
.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    background: white;
    border: 3px solid var(--black);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.search-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.75rem;
}

.search-icon {
    color: #999;
    flex-shrink: 0;
}

.search-input-group input {
    flex: 1;
    border: none;
    outline: none;
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    padding: 1rem 0;
    background: transparent;
    color: var(--black);
}

.search-input-group input::placeholder {
    color: #aaa;
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--deep-blue);
    color: white;
    border: none;
    border-left: 3px solid var(--black);
    font-family: 'Work Sans', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.search-btn:hover {
    background: var(--bright-blue);
}

.search-btn svg {
    display: none;
}

.location-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.65rem 1.25rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: auto;
    margin-right: auto;
}

.location-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.location-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ----- Hero Stats ----- */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat {
    text-align: center;
}

.hero-stat strong {
    display: block;
    font-family: 'Secular One', sans-serif;
    font-size: 1.5rem;
    color: var(--cream);
}

.hero-stat span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-stat-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.15);
}

/* =============================================
   Discover Section (Map + List)
   ============================================= */
.discover-section {
    padding: 2rem 3rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.discover-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.toolbar-left {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.discover-title {
    font-family: 'Secular One', sans-serif;
    font-size: 1.5rem;
    color: var(--black);
    text-transform: uppercase;
}

.results-count {
    font-size: 0.9rem;
    color: #888;
    font-weight: 500;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-select {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-select label {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}

.sort-select select {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border: 2px solid #ddd;
    background: white;
    color: var(--black);
    cursor: pointer;
    outline: none;
}

.sort-select select:focus {
    border-color: var(--deep-blue);
}

.view-toggle {
    display: flex;
    border: 2px solid #ddd;
    overflow: hidden;
}

.view-btn {
    padding: 0.5rem 0.75rem;
    background: white;
    border: none;
    cursor: pointer;
    color: #888;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.view-btn + .view-btn {
    border-left: 2px solid #ddd;
}

.view-btn.active {
    background: var(--deep-blue);
    color: white;
}

.view-btn:hover:not(.active) {
    background: #f5f5f5;
}

/* ----- Loading State ----- */
.discover-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    gap: 1rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #eee;
    border-top-color: var(--deep-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.discover-loading p {
    color: #888;
    font-size: 0.95rem;
}

/* ----- Location Prompt ----- */
.location-prompt {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border: 3px solid #eee;
}

.location-prompt-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.location-prompt h3 {
    font-family: 'Secular One', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.location-prompt p {
    color: #666;
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.location-allow-btn {
    font-size: 0.9rem;
    padding: 0.85rem 2rem;
}

/* ----- Map ----- */
.map-container {
    margin-bottom: 2rem;
}

.leaflet-map {
    width: 100%;
    height: 450px;
    border: 3px solid var(--black);
    box-shadow: 6px 6px 0 var(--black);
    z-index: 1;
}

/* Custom map popup */
.barber-popup {
    font-family: 'Work Sans', sans-serif;
    min-width: 200px;
}

.barber-popup-name {
    font-family: 'Secular One', sans-serif;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.barber-popup-salon {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.barber-popup-rating {
    font-size: 0.85rem;
    color: var(--warm-yellow);
    margin-bottom: 0.5rem;
}

.barber-popup-btn {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--deep-blue);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    border: 2px solid var(--black);
    transition: background 0.2s;
}

.barber-popup-btn:hover {
    background: var(--bright-blue);
}

/* ----- Barber Grid ----- */
.barber-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* ----- Barber Card ----- */
.barber-card-item {
    background: white;
    border: 3px solid var(--black);
    box-shadow: 5px 5px 0 var(--black);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.barber-card-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--black);
}

.barber-card-banner {
    height: 100px;
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--bright-blue) 100%);
    position: relative;
}

.barber-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.barber-card-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid var(--black);
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Secular One', sans-serif;
    font-size: 1.1rem;
    color: var(--deep-blue);
    position: absolute;
    bottom: -32px;
    left: 1.25rem;
    overflow: hidden;
}

.barber-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.barber-card-body {
    padding: 2.5rem 1.25rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.barber-card-name {
    font-family: 'Secular One', sans-serif;
    font-size: 1.15rem;
    color: var(--black);
    text-transform: uppercase;
    margin-bottom: 0.15rem;
}

.barber-card-salon {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.barber-card-rating {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.barber-card-stars {
    color: var(--warm-yellow);
    font-size: 0.85rem;
}

.barber-card-review-count {
    font-size: 0.8rem;
    color: #aaa;
}

.barber-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.barber-card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: #666;
}

.barber-card-meta-item svg {
    color: var(--deep-blue);
    flex-shrink: 0;
}

.barber-card-services {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.barber-card-service-tag {
    padding: 0.25rem 0.6rem;
    background: var(--light-cream);
    border: 1px solid var(--warm-yellow);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--black);
}

.barber-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 2px dashed #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.barber-card-distance {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}

.barber-card-book-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    background: var(--deep-blue);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid var(--black);
    box-shadow: 3px 3px 0 var(--black);
    transition: all 0.15s;
}

.barber-card-book-btn:hover {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 var(--black);
}

/* ----- Empty State ----- */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-family: 'Secular One', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.empty-state p {
    color: #888;
}

/* =============================================
   How It Works Section
   ============================================= */
.customer-how-it-works {
    padding: 5rem 3rem;
    background: var(--off-white);
}

.customer-how-it-works .section-title h2 {
    background: var(--black);
}

.how-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.how-step {
    flex: 1;
    text-align: center;
    background: white;
    border: 3px solid var(--black);
    box-shadow: 5px 5px 0 var(--black);
    padding: 2rem 1.5rem;
    position: relative;
}

.how-step-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.how-step-num {
    position: absolute;
    top: -15px;
    right: -10px;
    width: 36px;
    height: 36px;
    background: var(--vibrant-red);
    color: white;
    border: 3px solid var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Secular One', sans-serif;
    font-size: 1rem;
}

.how-step h3 {
    font-family: 'Secular One', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.how-step p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

.how-step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--deep-blue);
    font-weight: 700;
    padding-top: 3rem;
}

/* =============================================
   App CTA Section
   ============================================= */
.app-cta-section {
    padding: 5rem 3rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1e5a8a 100%);
}

.app-cta-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.app-cta-text h2 {
    font-family: 'Secular One', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: white;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.app-cta-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Phone Mockup */
.phone-mockup {
    max-width: 280px;
    margin: 0 auto;
    background: var(--black);
    border-radius: 24px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.phone-screen {
    background: white;
    border-radius: 16px;
    overflow: hidden;
}

.phone-header {
    background: var(--deep-blue);
    color: white;
    padding: 1rem;
    font-family: 'Secular One', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.phone-barber-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 2px solid #eee;
}

.phone-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Secular One', sans-serif;
    font-size: 0.8rem;
    color: var(--deep-blue);
    border: 2px solid var(--black);
}

.phone-name {
    font-weight: 700;
    font-size: 0.9rem;
}

.phone-stars {
    font-size: 0.7rem;
}

.phone-slot {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
}

.phone-slot.active {
    background: var(--light-cream);
    color: var(--black);
    font-weight: 600;
    border-left: 3px solid var(--deep-blue);
}

.phone-book-btn {
    margin: 1rem;
    padding: 0.75rem;
    background: var(--deep-blue);
    color: white;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    border: 2px solid var(--black);
}

/* =============================================
   Salon CTA Section
   ============================================= */
.salon-cta-section {
    padding: 4rem 3rem;
    background: var(--cream);
    border-top: 3px solid var(--black);
    border-bottom: 3px solid var(--black);
}

.salon-cta-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.salon-cta-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.salon-cta-inner h2 {
    font-family: 'Secular One', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.salon-cta-inner p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 900px) {
    .customer-hero {
        padding: 100px 1.5rem 2.5rem;
        min-height: auto;
    }
    
    .discover-section {
        padding: 2rem 1.5rem 3rem;
    }
    
    .barber-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .how-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .how-step {
        max-width: 400px;
        width: 100%;
    }
    
    .how-step-arrow {
        transform: rotate(90deg);
        padding: 0;
    }
    
    .app-cta-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .app-cta-text .app-buttons {
        justify-content: center;
    }
    
    .leaflet-map {
        height: 350px;
    }
}

@media (max-width: 600px) {
    .customer-hero {
        padding: 90px 1rem 2rem;
    }
    
    .customer-hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .search-box {
        flex-direction: column;
        border: 3px solid var(--black);
    }
    
    .search-btn {
        border-left: none;
        border-top: 3px solid var(--black);
        justify-content: center;
        padding: 0.85rem;
    }
    
    .search-btn span {
        display: inline;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .hero-stat strong {
        font-size: 1.2rem;
    }
    
    .discover-section {
        padding: 1.5rem 1rem 3rem;
    }
    
    .discover-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .barber-grid {
        grid-template-columns: 1fr;
    }
    
    .leaflet-map {
        height: 300px;
    }
    
    .customer-how-it-works {
        padding: 3rem 1rem;
    }
    
    .app-cta-section {
        padding: 3rem 1rem;
    }
    
    .salon-cta-section {
        padding: 3rem 1rem;
    }
}

/* Make salon cards clickable */
.barber-card-item[data-salon-id] {
    cursor: pointer;
}

