/* Satış Noktaları Page Styles */

html, body {
    background: #3FA0D8;
}

.sn-wrapper {
    background: linear-gradient(180deg, #5BC0F8 0%, #3FA0D8 100%);
    min-height: calc(100vh - 90px);
    position: relative;
    overflow: hidden;
    padding-bottom: 4rem;
}

/* Decorations */
.sn-city {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    z-index: 1;
    pointer-events: none;
}

.sn-kid {
    position: absolute;
    bottom: 0;
    height: auto;
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.2));
}

.sn-kid-left {
    left: 0;
    width: 220px;
}

.sn-kid-right {
    right: 0;
    width: 220px;
}

/* Purple title bar */
.sn-title-bar {
    background: linear-gradient(180deg, #7C5FC7 0%, #6B4FC7 100%);
    padding: 1.2rem 2rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 5;
}

.sn-title-bar h1 {
    font-family: 'Poppins', sans-serif;
    color: #FFFFFF;
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

/* Container */
.sn-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2.5rem 2rem 0;
    position: relative;
    z-index: 3;
}

/* Filters */
.sn-filters {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 1.8rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr auto;
    gap: 1.2rem;
    align-items: end;
}

.sn-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sn-filter-group label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4BB0E8;
    padding-left: 0.3rem;
}

.sn-select,
.sn-input {
    font-family: 'Poppins', sans-serif;
    background: #F4F8FC;
    border: 2px solid #D9E7F3;
    border-radius: 12px;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.sn-select:focus,
.sn-input:focus {
    border-color: #4BB0E8;
    box-shadow: 0 0 0 3px rgba(75, 176, 232, 0.15);
}

.sn-select:disabled {
    background: #EFEFEF;
    color: #999;
    cursor: not-allowed;
}

.sn-search-wrapper {
    position: relative;
}

.sn-search-wrapper .sn-input {
    padding-right: 2.8rem;
}

.sn-search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #4BB0E8;
    pointer-events: none;
}

.sn-search-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.sn-clear-btn {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, #FF8A4D 0%, #FF7A3D 100%);
    color: #FFFFFF;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow:
        0 4px 10px rgba(232, 100, 32, 0.35),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: fit-content;
}

.sn-clear-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 14px rgba(232, 100, 32, 0.45),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* Results count */
.sn-count {
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    margin: 1.5rem 0 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Results grid */
.sn-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

/* Dealer card */
.sn-card {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 1.3rem;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
    border-top: 5px solid #6B4FC7;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sn-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.sn-card-name {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #2B3E50;
    margin-bottom: 0.6rem;
    line-height: 1.35;
}

.sn-card-location {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(180deg, #5BC0F8 0%, #4BB0E8 100%);
    color: #FFFFFF;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    letter-spacing: 0.3px;
}

.sn-card-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.45rem 0;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    color: #445566;
    border-top: 1px dashed #E2E8EE;
}

.sn-card-row:first-of-type {
    border-top: none;
}

.sn-card-row-label {
    color: #6B4FC7;
    font-weight: 600;
    flex-shrink: 0;
    min-width: 64px;
}

.sn-card-row-value {
    flex: 1;
    word-break: break-word;
    line-height: 1.4;
}

.sn-card-row-value a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sn-card-row-value a:hover {
    color: #4BB0E8;
    text-decoration: underline;
}

/* Empty state */
.sn-empty {
    background: rgba(255, 255, 255, 0.18);
    border: 2px dashed rgba(255, 255, 255, 0.45);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 2rem;
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
}

.sn-empty-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    color: #FFFFFF;
    opacity: 0.85;
}

.sn-empty-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.sn-empty p {
    font-size: 0.95rem;
    max-width: 440px;
    margin: 0 auto;
    line-height: 1.5;
    opacity: 0.95;
}

/* No results (used same style as empty, separate class for clarity) */
.sn-noresults {
    background: rgba(255, 255, 255, 0.15);
    border: 2px dashed rgba(255, 255, 255, 0.4);
    border-radius: 18px;
    padding: 2rem;
    text-align: center;
    margin-top: 1.5rem;
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    grid-column: 1 / -1;
}

/* Loading */
.sn-loading {
    text-align: center;
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    padding: 3rem 1rem;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .sn-kid-left,
    .sn-kid-right {
        width: 170px;
    }
}

@media (max-width: 1024px) {
    .sn-filters {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .sn-search-group {
        grid-column: 1 / -1;
    }

    .sn-clear-btn {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    .sn-kid-left,
    .sn-kid-right {
        width: 130px;
        opacity: 0.85;
    }
}

@media (max-width: 768px) {
    .sn-title-bar h1 {
        font-size: 1.2rem;
    }

    .sn-container {
        padding: 1.5rem 1rem 0;
    }

    .sn-filters {
        grid-template-columns: 1fr;
        padding: 1.3rem;
    }

    .sn-results {
        grid-template-columns: 1fr;
    }

    .sn-card {
        padding: 1.1rem;
    }

    .sn-kid-left,
    .sn-kid-right {
        display: none;
    }
}

@media (max-width: 480px) {
    .sn-title-bar {
        padding: 1rem 0.8rem;
    }

    .sn-title-bar h1 {
        font-size: 1rem;
    }

    .sn-empty {
        padding: 2rem 1rem;
    }

    .sn-empty p {
        font-size: 0.85rem;
    }
}
