.salon-list-component {
    width: 100%;
}

.salon-section-subtitle {
    font-size: clamp(1.15rem, 1.7vw, 1.8rem);
    color: #4f5663;
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.35;
    margin-bottom: 1.4rem !important;
    text-align: center;
}

.salon-search-wrap {
    position: relative;
    width: min(560px, 100%);
    margin: 0 auto 8px;
}

.salon-search-icon {
    position: absolute;
    top: 50%;
    left: 18px;
    color: var(--primary);
    font-size: 1rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.salon-search-input {
    width: 100%;
    padding: 13px 18px 13px 46px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.salon-search-input:focus {
    outline: 2px solid rgba(37, 99, 235, 0.25);
    border-color: var(--primary);
}

.salon-search-status {
    min-height: 20px;
    margin: 4px 0 8px;
    color: var(--muted);
    font-size: 0.85rem;
}

.salon-directory-link {
    width: min(260px, 100%);
}

.salon-directory-search {
    position: relative;
    display: flex;
    width: min(620px, 100%);
    margin: 0 auto 18px;
    align-items: center;
    gap: 8px;
}

.salon-directory-search > i {
    position: absolute;
    left: 18px;
    color: var(--primary);
    pointer-events: none;
}

.salon-directory-search input {
    width: 100%;
    min-width: 0;
    padding: 13px 16px 13px 46px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
}

.salon-directory-search input:focus {
    outline: 2px solid rgba(37, 99, 235, 0.22);
    border-color: var(--primary);
}

.salon-directory-search button {
    flex: 0 0 auto;
    padding: 12px 18px;
}

.salon-card {
    height: 100%;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 16px;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.salon-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border-color: rgba(15, 23, 42, 0.1);
}

.salon-card .card-footer {
    background: transparent;
}

#homeSalonList .mobile-salon-card {
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding: 10px 12px 6px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(220, 172, 185, 0.9) 0%, rgba(186, 169, 175, 0.8) 42%, rgba(171, 176, 193, 0.82) 100%);
    border: 3px solid rgba(255, 117, 44, 0.95);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
    width: 100%;
    max-width: none;
    min-height: 178px;
    margin: 0 !important;
    overflow: hidden;
}

#homeSalonList {
    margin: 0 !important;
    padding: 0;
}

#homeSalonList > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 0;
}

#homeSalonList .salon-card-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    color: inherit;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

#homeSalonList .salon-card-image-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#homeSalonList .salon-card-image {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px;
    border-radius: 50%;
    object-fit: cover !important;
    border: 3px solid rgba(255, 255, 255, 0.75);
    background: #e5e7eb;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

#homeSalonList .salon-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    margin-top: 2px;
    gap: 2px;
    padding-bottom: 0;
    padding-right: 2px;
}

#homeSalonList .salon-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
    margin-bottom: 4px;
}

#homeSalonList .salon-title-wrap { min-width: 0; }

#homeSalonList .salon-title-wrap .salon-time {
    margin: 3px 0 0 !important;
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 0.72rem;
    white-space: nowrap;
}

#homeSalonList .salon-name {
    font-size: clamp(1.8rem, 2.2vw, 2.3rem) !important;
    line-height: 1.1;
    color: #f4f0f1 !important;
    margin: 0 !important;
    font-weight: 700 !important;
    letter-spacing: -0.04em;
    text-transform: none;
}

#homeSalonList .owner-name,
#homeSalonList .salon-address,
#homeSalonList .salon-time,
#homeSalonList .salon-distance {
    display: block;
    margin: 0 0 2px !important;
    color: rgba(255, 255, 255, 0.96) !important;
    font-size: 0.8rem;
    line-height: 1.4;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

#homeSalonList .salon-distance { white-space: nowrap; }

#homeSalonList .salon-card-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-top: 2px;
    padding-bottom: 2px;
}

#homeSalonList .salon-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
    margin-left: auto;
}

#homeSalonList .btn-view-salon,
#homeSalonList .btn-save-salon,
#homeSalonList .btn-call-salon {
    border-radius: 12px;
    padding: 7px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    border: none;
    line-height: 1;
    white-space: nowrap;
    transition: all 0.2s ease;
}

#homeSalonList .btn-view-salon { background: #ffffff; color: #2d3743; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08); }
#homeSalonList .btn-save-salon,
#homeSalonList .btn-save-salon.saved,
#homeSalonList .btn-save-salon.not-saved { background: #1fae5a; color: #fff; }
#homeSalonList .btn-call-salon { display: inline-flex; align-items: center; justify-content: center; width: 34px; padding: 7px 8px; background: #fff4f6; color: #c2415d; }
#homeSalonList .icon-action-button { display: inline-flex; align-items: center; justify-content: center; width: 34px; padding: 7px 8px; }
#homeSalonList .icon-action-button i { margin: 0 !important; font-size: 0.9rem; }
#homeSalonList .favorite-form-inline { margin: 0; }

#homeSalonList .salon-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    white-space: nowrap;
    margin-left: auto;
}

#homeSalonList .salon-status-badge.bg-open { background: #22c55e; }
#homeSalonList .salon-status-badge.bg-closed { background: #94a3b8; }
#homeSalonList .salon-card .salon-address { margin-bottom: 6px !important; }
#homeSalonList .salon-card .card-footer { display: none; }

.salon-status-badge {
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.72rem;
    font-weight: 600;
    border: none;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    margin-top: 2px;
}

.salon-status-badge.bg-open { background: #18a957; color: #fff; }
.salon-status-badge.bg-closed { background: #9ca3af; color: #fff; }
.favorite-card-footer { display: none !important; }

.favorite-form { margin: 0; display: flex; justify-content: flex-end; }
.favorite-form .btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(15, 23, 42, 0.04);
    color: #6b7280;
    padding: 0;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.favorite-form .btn.is-favorite { background: #fff; color: #ef4444; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08); }
.favorite-form .btn.is-not-favorite { background: rgba(15, 23, 42, 0.04); color: #9ca3af; }
.favorite-form .btn:hover { transform: scale(1.1); background: #fff; color: #ef4444; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12); }

#homeSalonList > div { animation: salon-card-reveal 0.45s ease both; }
#homeSalonList > div:nth-child(2) { animation-delay: 0.04s; }
#homeSalonList > div:nth-child(3) { animation-delay: 0.08s; }
#homeSalonList > div:nth-child(4) { animation-delay: 0.12s; }
#homeSalonList > div:nth-child(5) { animation-delay: 0.16s; }

@keyframes salon-card-reveal {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 576px) {
    #homeSalonList { gap: 12px !important; }
    #homeSalonList > div { width: 100% !important; max-width: 100% !important; padding: 0 !important; margin: 0 !important; }
    #homeSalonList .mobile-salon-card { width: 100% !important; max-width: 100%; min-height: 0; }
    #homeSalonList .salon-card { gap: 10px; padding: 3px; border-radius: 12px; min-height: 0; }
    #homeSalonList .salon-card-image-wrap { align-items: flex-start; }
    #homeSalonList .salon-card .salon-card-image { width: 80px !important; height: 80px !important; min-width: 80px; }
    #homeSalonList .salon-card .salon-name { font-size: 1rem !important; }
    #homeSalonList .salon-card .owner-name,
    #homeSalonList .salon-card .salon-address,
    #homeSalonList .salon-card .salon-time { font-size: 0.75rem; }
    #homeSalonList .salon-card-meta-row { margin-top: 4px; }
    .salon-status-badge { padding: 4px 10px; font-size: 0.68rem; }
    .favorite-form .btn { width: 32px; height: 32px; }
    .salon-list-component .salon-card-actions {
        gap: 6px;
    }
}

@media (min-width: 768px) {
    #homeSalonList {
        margin-left: 50px !important;
        margin-right: 50px !important;
    }

    #homeSalonList .mobile-salon-card {
        flex-direction: column;
        gap: 0;
        padding: 0;
        min-height: 0;
    }

    #homeSalonList .salon-card-image-wrap {
        width: 100%;
        height: 110px;
    }

    #homeSalonList .salon-card-image-wrap a,
    #homeSalonList .salon-card-image {
        display: block;
        width: 100% !important;
        height: 110px !important;
    }

    #homeSalonList .salon-card-image {
        min-width: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        object-fit: cover !important;
    }

    #homeSalonList .salon-card-content {
        width: 100%;
        padding: 8px 10px;
        margin-top: 0;
        gap: 4px;
    }

    #homeSalonList .salon-name { font-size: 1.1rem !important; }
    #homeSalonList .salon-card .owner-name,
    #homeSalonList .salon-card .salon-address,
    #homeSalonList .salon-card .salon-time { font-size: 0.75rem; }
    #homeSalonList .salon-card-meta-row { flex-direction: column; align-items: stretch; margin-top: 5px; }
    #homeSalonList .salon-card-actions { flex-wrap: wrap; width: 100%; justify-content: flex-start; }
}

.salon-list-component .salon-distance {
    white-space: nowrap;
}

.salon-list-component .favorite-form-inline {
    margin: 0;
}

@media (max-width: 767.98px) {
    .salon-list-component,
    .salon-list-component #homeSalonList {
        width: 100%;
        max-width: 100%;
    }

    .salon-list-component #homeSalonList {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .salon-list-component #homeSalonList > div {
        min-width: 0;
    }

    .salon-list-component #homeSalonList .salon-card-content {
        min-width: 0;
    }

    .salon-list-component #homeSalonList .salon-card-header,
    .salon-list-component #homeSalonList .salon-card-meta-row {
        flex-wrap: wrap;
        gap: .5rem;
    }

    .salon-list-component #homeSalonList .salon-name,
    .salon-list-component #homeSalonList .salon-address,
    .salon-list-component #homeSalonList .owner-name {
        overflow-wrap: anywhere;
    }

    .salon-list-component #homeSalonList .salon-card-actions {
        min-width: 0;
        max-width: 100%;
        flex-wrap: wrap;
    }

    .salon-list-component #homeSalonList .salon-card-actions .btn {
        min-width: 0;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}
