/* Salon Discovery Section Styles */

.salon-discovery-section * {
    font-family: 'DM Sans', sans-serif;
}

/* Ensure FontAwesome icons display correctly */
.salon-discovery-section i.fas,
.salon-discovery-section i.far,
.salon-discovery-section i.fab,
.salon-discovery-section i.fa-solid,
.salon-discovery-section i.fa-regular,
.salon-discovery-section i.fa-brands {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands' !important;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Main Section Container */
.salon-discovery-section {
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 60px 0;
}

/* Search Area */
.search-area {
    padding: 0 0 20px 0;
}

.search-card {
    background: transparent;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.search-input-wrapper {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: white;
    border: 2px solid #757575;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    max-width: none;
}

.search-input-wrapper i {
    color: #666;
    font-size: 20px;
}

.search-input-wrapper input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 16px;
    color: var(--text-color);
    background: transparent;
}

.search-input-wrapper input::placeholder {
    color: #999;
}

.location-btn {
    background: #000;
    color: white;
    border: none;
    padding: 18px 48px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.location-btn:hover {
    background: #333;
}

.location-btn i {
    font-size: 18px;
}

.datetime-btn {
    background: #E8E8E8;
    color: #666;
    border: none;
    padding: 18px 48px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.datetime-btn:hover {
    background: #d8d8d8;
}

.datetime-btn i {
    font-size: 18px;
}

/* Top Salons Area */
.top-salons-area {
    padding: 0 0 60px 0;
}

.section-header {
    text-align: left;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
}

.salons-grid {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    margin-bottom: 40px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.salons-grid::-webkit-scrollbar {
    height: 6px;
}

.salons-grid::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.salons-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.salons-grid::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.salon-card {
    padding: 10px;
    background: white;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-color);
    flex: 0 0 auto;
    width: 230px;
}

.salon-image {
    width: 100%;
    height: 180px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #999;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.salon-image:hover {
    transform: scale(1.05);
}

.salon-image img {
    border-radius: var(--border-radius);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.salon-info {
    padding: 15px 0;
}

.salon-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.salon-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
}

.salon-rating .stars {
    color: #ffc107;
    font-size: 14px;
}

.salon-rating .rating-text {
    font-size: 14px;
    font-weight: 600;
}

.salon-location {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Services Area */
.services-area {
    padding: 0;
    flex: 1;
}

.services-content {
    display: flex;
    align-items: flex-start;
}

.services-text {
    flex: 0 0 280px;
    padding: 20px 40px;
    max-width: 280px;
}

.services-text h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
    text-align: center;
}

.services-text p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.salon-services-grid {
    flex: 1;
    display: grid;
    margin: auto;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.service-card {
    position: relative;
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background: #e0e0e0;
}

.service-card:hover {
    transform: scale(1.03);
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    padding: 30px 20px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-overlay {
    background: transparent;
}

.service-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 24px;
    text-align: center;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    width: 100%;
    transition: all 0.3s ease;
}

.service-card:hover .service-title {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Specific background colors for demo */
.service-card:nth-child(1) {
    background: linear-gradient(135deg, #8B7355, #C4A57B);
}

.service-card:nth-child(2) {
    background: linear-gradient(135deg, #E8B4B8, #F5E1E6);
}

.service-card:nth-child(3) {
    background: linear-gradient(135deg, #A8C5A0, #D4E8D0);
}

.service-card:nth-child(4) {
    background: linear-gradient(135deg, #D4A574, #E8C9A0);
}

/* Media Queries */
@media (max-width: 1200px) {
    .salon-discovery-section {
        padding: 50px 0;
    }

    .search-area,
    .top-salons-area {
        padding-bottom: 50px;
    }
}

@media (max-width: 992px) {
    .salon-discovery-section {
        padding: 40px 0;
    }

    .search-area,
    .top-salons-area {
        padding-bottom: 40px;
    }

    .services-content {
        flex-direction: column;
        gap: 30px;
    }

    .services-text {
        flex: 1;
        max-width: 100%;
    }

    .services-text p {
        text-align: left;
    }

    .services-text {
        padding: 0;
        margin-top: 20px;
    }

    .search-card {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px;
        width: 100%;
    }

    .search-input-wrapper {
        flex: 1 !important;
        min-width: 0;
        width: auto !important;
    }

    .location-btn,
    .datetime-btn {
        flex-shrink: 0;
        width: 44px !important;
        height: 44px;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        cursor: pointer;
        border-radius: 0;
        display: flex !important;
        align-items: center;
        justify-content: center;
        box-shadow: none !important;
    }

    .location-btn span,
    .datetime-btn span {
        display: none;
    }

    .location-btn i,
    .datetime-btn i {
        color: black !important;
        font-size: 24px;
    }

    .section-header h2 {
        font-size: 16px;
    }

    .services-text h2 {
        font-size: 24px;
    }

    .salon-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .salon-discovery-section {
        padding: 30px 0;
    }

    .search-area,
    .top-salons-area {
        padding-bottom: 30px;
    }

    .search-input-wrapper {
        padding: 14px 20px;
    }

    .section-header h2 {
        font-size: 18px;
    }

    .services-text h2 {
        font-size: 22px;
    }

    .service-card {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .salon-discovery-section {
        padding: 20px 0;
    }

    .search-area,
    .top-salons-area {
        padding-bottom: 25px;
    }

    .search-input-wrapper {
        padding: 12px 16px;
        gap: 10px;
    }

    .search-input-wrapper input {
        font-size: 14px;
    }

    .search-input-wrapper i {
        font-size: 18px;
    }

    .section-header h2 {
        font-size: 16px;
    }

    .services-text h2 {
        font-size: 20px;
    }

    .services-text p {
        font-size: 13px;
    }

    .salon-card {
        width: 200px;
    }

    .service-card {
        height: 180px;
    }

    .service-title {
        font-size: 16px;
        padding: 8px 16px;
    }
}

/* No Image Placeholder */
.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.no-image-placeholder i {
    font-size: 48px;
    opacity: 0.7;
}

.salon-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
}

.salon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Empty state messages */
.no-stores-message,
.no-services-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.no-stores-message p,
.no-services-message p {
    font-size: 16px;
    margin: 0;
}