* {
    padding: 0;
    margin: 0;
}

.home-page {
    --home-ink: #182231;
    --home-muted: #536174;
    --home-ivory: #f7f5ef;
    --home-gold: #c99745;
    --home-gold-soft: #f1dfb4;
    --home-rose: #b85c68;
    --home-slate: #607d91;
}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

.location-permission-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    border-radius: 24px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.92));
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    max-width: 720px;
    margin: 0 auto 2rem;
}

.location-permission-gate__icon {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    font-size: 2rem;
}

.location-permission-gate h3 {
    margin: 0;
    color: var(--home-ink);
    font-weight: 800;
}

.location-permission-gate p {
    max-width: 600px;
    margin: 0;
    color: var(--home-muted);
    line-height: 1.7;
}

.hero-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.92);
    padding: 2.2rem;
    border-radius: 32px;
    box-shadow: 0 25px 80px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(201, 151, 69, 0.2);
    backdrop-filter: blur(16px);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--home-ink);
    line-height: 1.15;
}

.hero-title span {
    background: linear-gradient(135deg, var(--home-rose) 0%, var(--home-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    max-width: 620px;
    color: var(--home-muted);
    line-height: 1.8;
    font-size: 1.08rem;
    margin-top: 18px;
}

.hero-btn {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 520px;
    align-items: flex-start;
    margin-top: 1.4rem;
}

.hero-btn a {
    min-width: 220px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.hero-btn a:hover,
.hero-btn a:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.15);
    filter: brightness(1.02);
}

.hero-btn a:focus-visible {
    outline: 3px solid rgba(245, 158, 11, 0.35);
    outline-offset: 4px;
}

.hero-btn .btn-outline-dark {
    padding: 1rem 1.6rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 999px;
    border-color: var(--home-ink);
    color: var(--home-ink);
}

.home-page .hero-btn .btn-outline-dark:hover,
.home-page .hero-btn .btn-outline-dark:focus-visible {
    background: var(--home-ink);
    color: #fff;
}

.all-salons-page .salons-near-title {
    margin-bottom: 0.55rem !important;
}

.all-salons-page .salon-section-subtitle {
    margin-bottom: 0 !important;
    font-size: 1rem;
}

.all-salons-page .salon-card-image-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.all-salons-page .salon-card-image-wrap a,
.all-salons-page .salon-card-image {
    display: block;
    width: 100%;
    height: 200px;
}

.all-salons-page .salon-card-image {
    object-fit: cover;
}

.all-salons-page .salon-card-content {
    padding: 16px;
}

.all-salons-page .salon-card {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(194, 65, 93, 0.16);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(71, 50, 42, 0.1);
}

.all-salons-page .salon-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0;
}

.all-salon-row {
    width: 100%;
}

.all-salon-primary-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
}

.all-salon-primary-row .salon-name {
    margin-bottom: 6px;
    color: #202631;
    font-size: 1.15rem;
}

.all-salon-primary-row .owner-name {
    margin: 0;
    color: #687180;
    font-size: 0.82rem;
}

.all-salon-location-row {
    display: flex;
    align-items: flex-start;
    min-height: 48px;
    padding: 10px 0;
    color: #596273;
    font-size: 0.83rem;
    line-height: 1.4;
}

.all-salon-location-row i,
.all-salon-meta-row i {
    flex: 0 0 auto;
    color: var(--primary);
}

.all-salon-meta-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 48px;
}

.all-salon-meta-row p {
    margin: 0;
    color: #596273;
    font-size: 0.78rem;
    line-height: 1.35;
}

.all-salon-actions-row {
    margin-top: auto;
    padding-top: 10px;
}

.all-salons-page .salon-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.website-feedback-cta {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(248, 250, 252, 0.95));
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.website-feedback-cta .btn {
    min-height: 44px;
    font-weight: 700;
}

.all-salons-page .salon-card-actions .btn {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.76rem;
    border: 0;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(71, 50, 42, 0.12);
}

.all-salons-page .btn-view-salon {
    background: #fff4f6;
    color: #a52f50;
    border: 1px solid rgba(194, 65, 93, 0.2);
}

.all-salons-page .btn-save-salon {
    background: var(--success-gradient);
    color: #fff;
}

@media (max-width: 767.98px) {
    .all-salons-page {
        width: 100%;
        padding-left: .75rem !important;
        padding-right: .75rem !important;
    }

    .all-salons-page .all-salons-heading {
        padding-left: .25rem;
        padding-right: .25rem;
    }

    .all-salons-page .salons-near-title {
        font-size: clamp(1.55rem, 7vw, 2.25rem);
        overflow-wrap: anywhere;
    }

    .all-salons-page .salon-directory-search {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .all-salons-page .salon-card-image-wrap,
    .all-salons-page .salon-card-image-wrap a,
    .all-salons-page .salon-card-image {
        height: clamp(150px, 48vw, 200px);
    }

    .all-salons-page .salon-card-content {
        padding: .875rem;
    }

    .all-salons-page .all-salon-primary-row {
        gap: .5rem;
    }

    .all-salons-page .all-salon-primary-row > div {
        min-width: 0;
    }

    .all-salons-page .salon-name {
        overflow-wrap: anywhere;
    }

    .all-salons-page .all-salon-location-row {
        overflow-wrap: anywhere;
    }

    .all-salons-page .all-salon-meta-row {
        grid-template-columns: minmax(0, 1fr);
        gap: .35rem;
    }

    .all-salons-page .salon-card-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .all-salons-page .salon-card-actions .btn {
        min-width: 0;
        min-height: 42px;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 400px) {
    .all-salons-page .salon-card-actions {
        grid-template-columns: 1fr;
    }
}

.all-salons-page .favorite-form-inline {
    width: 100%;
}

.saved-salons-page {
    background: linear-gradient(180deg, #fffaf3 0%, #fff 38%, #fff7f9 100%);
}

.saved-salons-page .all-salons-heading {
    display: flex;
    max-width: 760px;
    margin: 0 auto 10px;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    text-align: left;
    border: 1px solid rgba(194, 65, 93, 0.14);
    border-radius: 16px;
    background: linear-gradient(105deg, #fff 0%, #fff7f1 55%, #fff0f5 100%);
    box-shadow: 0 12px 28px rgba(71, 50, 42, 0.07);
}

.saved-heading-icon {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 14px;
    background: #d92f72;
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 7px 14px rgba(181, 31, 91, 0.22);
}

.saved-heading-copy {
    min-width: 0;
}

.saved-salons-page .all-salons-kicker {
    display: block;
    margin-bottom: 1px;
    color: #a52f50;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.saved-salons-page .salons-near-title {
    margin: 0 !important;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.1;
}

.saved-salons-page .salon-section-subtitle {
    margin: 3px 0 0 !important;
    font-size: 0.86rem;
    line-height: 1.3;
}

.saved-salons-page .saved-location-status {
    margin: 3px 0 0;
    color: #7a5360;
    font-size: 0.73rem;
    font-weight: 600;
}

.saved-salons-page .salon-card {
    border-color: rgba(194, 65, 93, 0.2);
    box-shadow: 0 14px 30px rgba(71, 50, 42, 0.12);
}

.saved-salons-page .salon-card:hover {
    border-color: rgba(194, 65, 93, 0.4);
    box-shadow: 0 18px 36px rgba(71, 50, 42, 0.16);
}

.saved-salons-page .all-salon-actions-row {
    padding-top: 16px;
}

.saved-salons-page .salon-card-actions {
    gap: 10px;
}

.saved-salons-page .salon-card-actions .btn {
    min-height: 46px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 7px 16px rgba(71, 50, 42, 0.12);
}

.saved-salons-page .btn-view-salon {
    background: #e1b629;
    border-color: #c99d16;
    color: #342600;
}

.saved-salons-page .btn-view-salon:hover,
.saved-salons-page .btn-view-salon:focus-visible {
    background: #c99d16;
    border-color: #a77f08;
    color: #241a00;
    transform: translateY(-1px);
}

.saved-salons-page .btn-save-salon.saved {
    background: #d92f72;
    border-color: #b51f5b;
    color: #fff;
    box-shadow: 0 7px 16px rgba(181, 31, 91, 0.25);
}

.saved-salons-page .btn-save-salon.saved:hover,
.saved-salons-page .btn-save-salon.saved:focus-visible {
    background: #b51f5b;
    border-color: #921744;
    color: #fff;
    transform: translateY(-1px);
}

@media (max-width: 576px) {
    .saved-salons-page {
        padding-top: 120px !important;
    }

    .saved-salons-page .all-salons-heading {
        width: calc(100% - 1rem);
        margin-bottom: 14px;
        padding: 12px 14px;
        gap: 11px;
        border-radius: 14px;
    }

    .saved-heading-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 12px;
        font-size: 1rem;
    }

    .saved-salons-page .salon-section-subtitle {
        font-size: 0.78rem;
    }
}

.saved-empty-state {
    width: 100%;
    padding: 64px 24px;
    border: 1px solid rgba(194, 65, 93, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    color: #596273;
}

.saved-empty-state > i {
    color: var(--primary);
    font-size: 2.4rem;
}

.saved-empty-state h2 {
    margin: 12px 0 6px;
    color: #202631;
    font-size: 1.35rem;
}

.all-salons-result-note,
.all-salons-suggestion {
    margin: 8px 0 20px;
    color: #596273;
    font-size: 0.9rem;
}

.all-salons-suggestion {
    margin-top: -14px;
    color: var(--primary);
    font-weight: 700;
}

.home-slider-image {
    height: 400px;
    object-fit: cover;
}

.home-slider-placeholder {
    height: 400px;
}

.home-profit-highlight {
    background: rgba(245, 158, 11, 0.12);
    border: 2px solid rgba(245, 158, 11, 0.45);
    font-size: clamp(1.15rem, 1.8vw, 1.7rem);
    letter-spacing: -0.03em;
}

@media (max-width: 576px) {
    .home-page {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .slider-image {
        padding-top: 100px !important;
    }
    .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #salons-section {
        padding: 2.4rem 0 2rem;
    }

    .salon-section-intro-card {
        width: calc(100% - 1.5rem);
        margin-bottom: 1.25rem;
        padding: 1.35rem 0.8rem 1rem;
        border-radius: 14px;
    }

    #salons-section h2 {
        font-size: 2rem;
    }

    #salons-section .salon-section-subtitle {
        padding: 0 1rem;
        font-size: 1rem;
    }

    .slider-image {
        position: relative;
        margin: 0 !important;
        padding: 0 !important;
        padding-top: 0px !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
    }

    .home-page .home-hero {
        padding-top: 0px !important;
    }

    .slider-image > .col-lg-5,
    .slider-image > .col-lg-7 {
        margin: 0 !important;
        padding: 0 !important;
    }

    .slider-image > .col-lg-5 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .slider-image > .col-lg-7 {
        position: absolute;
        left: 14px;
        right: 14px;
        bottom: 18px;
        z-index: 5;
        width: auto;
        max-width: none;
    }

    .hero-card {
        position: relative;
        background: rgba(19, 24, 34, 0.34);
        border: 1px solid rgba(255, 255, 255, 0.22);
        backdrop-filter: blur(10px);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
        border-radius: 22px;
        padding: 16px 16px 14px;
        z-index: 5;
        margin: 0;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.08;
        color: #fff;
        text-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
    }

    .hero-title span {
        display: inline-block;
        background: linear-gradient(135deg, #f7d7a0 0%, #f3c86b 32%, #ecc36d 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

    .hero-subtitle {
        max-width: none;
        margin-top: 10px;
        color: rgba(255, 255, 255, 0.92);
        font-size: 0.9rem;
        line-height: 1.5;
        text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .hero-btn {
        flex-direction: column;
        width: 100%;
        margin-top: 12px;
        gap: 10px;
    }

    .hero-btn a {
        width: 100%;
        min-width: 0;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        border-radius: 999px;
        border-color: rgba(255, 255, 255, 0.7);
        color: #fff;
        background: rgba(255, 255, 255, 0.08);
    }

    .carousel {
        border-radius: 0 !important;
        overflow: hidden;
        box-shadow: none;
        margin: 0 !important;
        padding: 0 !important;
        width: 100vw;
        margin-left: calc(50% - 50vw) !important;
    }

    .carousel-inner,
    .carousel-item,
    .image-slider {
        width: 100% !important;
        height: 400px !important;
        min-height: 400px;
        border-radius: 0 !important;
        object-fit: cover;
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none !important;
    }

}

.custom-slider {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.custom-slider::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .hero-card {
        margin-top: 0;
    }

    .hero-btn {
        flex-direction: row;
        margin-top: 0 !important;
        width: 500px;
    }
}

@media (display-mode: standalone) {
    .slider-image {
        padding-top: 100px !important;
    }

    .home-page .browser-mobile-actions,
    .home-page .browser-mobile-action {
        display: none !important;
    }
    .home-page{
        margin-top: 100px !important;
    }
    .home-page .pwa-shopkeeper-actions {
        display: flex !important;
    }
}

.pwa-shopkeeper-actions {
    display: none;
}

@media (max-width: 767.98px) {
    .home-page .pwa-shopkeeper-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .home-page .pwa-shopkeeper-actions a {
        width: 100%;
    }

    .home-page .hero-card {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
}

@media (min-width: 992px) {
    .home-page {
        padding: 100px !important;
    }

    .home-page .home-hero {
        margin-top: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .home-page .home-hero .carousel,
    .home-page .home-hero .carousel-inner,
    .home-page .home-hero .carousel-item,
    .home-page .home-hero .image-slider {
        height: 400px;
    }

    .home-page .home-hero .carousel,
    .home-page .home-hero .image-slider {
        width: 100%;
    }

    .home-page .home-hero .image-slider {
        display: block;
        object-fit: cover;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .home-page {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    .home-page #homeSalonList {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .home-page #homeSalonList > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* SnipAlert landing-page theme */
:root {
    --snipalert-gold: #D4AF37;
    --snipalert-gold-dark: #9a7818;
    --snipalert-ivory: #FDFCF0;
    --snipalert-black: #1A1A1A;
    --snipalert-card: #FFFFFF;
}

.home-page {
    background: var(--snipalert-ivory);
}

.home-page .hero-card {
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 18px;
    background: var(--snipalert-card);
    box-shadow: 0 20px 55px rgba(26, 26, 26, 0.09);
}

.home-page .hero-title {
    color: var(--snipalert-black);
    letter-spacing: -0.04em;
}

.home-page .hero-title span {
    color: var(--snipalert-gold-dark);
    background: none;
}

.home-page .hero-subtitle {
    color: #5f5b50;
}

.home-page .hero-btn .btn-outline-dark {
    background: var(--snipalert-gold);
    border-color: var(--snipalert-gold);
    color: var(--snipalert-black);
}

.home-page .hero-btn .btn-outline-dark:hover,
.home-page .hero-btn .btn-outline-dark:focus-visible {
    border-color: var(--snipalert-gold);
    background: var(--snipalert-gold);
    color: var(--snipalert-black);
}

.home-page #salons-section {
    border-top-color: rgba(212, 175, 55, 0.24);
    background: var(--snipalert-ivory);
}

.home-page .salon-section-intro-card {
    border: 1px solid rgba(212, 175, 55, 0.32);
    border-top: 4px solid var(--snipalert-gold);
    border-radius: 18px;
    background: var(--snipalert-card);
    box-shadow: 0 14px 34px rgba(26, 26, 26, 0.07);
}

.home-page #salons-section h2,
.home-page .salons-near-title {
    color: var(--snipalert-black) !important;
}

.home-page #salons-section h2::after {
    background: var(--snipalert-gold);
}

.home-page #salons-section .salon-section-subtitle,
.home-page #nearbySalonsStatus {
    color: #6d685d;
}

.home-page #homeSalonList .salon-card {
    border: 1px solid rgba(26, 26, 26, 0.1);
    border-radius: 18px;
    background: var(--snipalert-card);
    box-shadow: 0 14px 32px rgba(26, 26, 26, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-page #homeSalonList .salon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(26, 26, 26, 0.14);
}

.home-page #homeSalonList .salon-card-content,
.home-page #homeSalonList .salon-card-content p,
.home-page #homeSalonList .salon-card-content .salon-time,
.home-page #homeSalonList .salon-card-content .salon-distance,
.home-page #homeSalonList .salon-card-content .salon-address,
.home-page #homeSalonList .salon-name {
    color: var(--snipalert-black) !important;
}

.home-page #homeSalonList .salon-status-badge.bg-open {
    background: #2f855a;
}

.home-page #homeSalonList .salon-status-badge.bg-closed {
    background: #737373;
}

.home-page #homeSalonList .btn-view-salon {
    border: 1px solid var(--snipalert-gold);
    color: var(--snipalert-black);
    background: var(--snipalert-gold);
}

.home-page #homeSalonList .btn-call-salon,
.home-page #homeSalonList .btn-save-salon {
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: var(--snipalert-black);
    background: #fffaf0;
}
