/**
 * Homepage layout — panels, stats band, activity cards, CTA
 * Brand yellow #FFE800; complements sections-flat.css
 */

.ts-homepage .categories-section,
.ts-homepage .how-it-works,
.ts-homepage .premium-mechanics-section,
.ts-homepage .recent-requests,
.ts-homepage .recent-offers-section,
.ts-homepage .trust-indicators-section {
    padding: 2.5rem 0;
}

.ts-homepage .section-title {
    margin-bottom: 1.25rem;
}

.ts-homepage .section-title h2 {
    font-size: 1.625rem;
    margin-bottom: 0.35rem;
}

.ts-homepage .section-title p {
    font-size: 0.9375rem;
    color: var(--text-muted, #6c757d);
    margin-bottom: 0;
}

/* Shared panel */
.home-panel {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
}

@media (min-width: 768px) {
    .home-panel {
        padding: 2rem 1.75rem;
    }
}

/* Stats band (after hero) */
.home-stats-band {
    background: linear-gradient(90deg, rgba(255, 232, 0, 0.08) 0%, rgba(245, 197, 24, 0.06) 100%);
    border-top: 1px solid rgba(255, 232, 0, 0.15);
    border-bottom: 1px solid rgba(255, 232, 0, 0.15);
    padding: 0.875rem 0;
}

.home-stats-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2.5rem;
}

.home-stat-item {
    text-align: center;
    min-width: 5rem;
}

.home-stat-item strong {
    display: block;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-primary-text, #78350F);
    line-height: 1.2;
}

.home-stat-item span {
    font-size: 0.8125rem;
    color: var(--text-muted, #6c757d);
}

/* Search-first hero — no photo column */
.ts-homepage .hero-container {
    padding: 2.5rem 1.75rem;
}

.ts-homepage .hero-content {
    min-width: 0;
    max-width: 36rem;
    width: 100%;
    margin: 0 auto;
}

.ts-homepage .hero-title,
.ts-homepage .hero-subtitle {
    text-align: center;
}

.ts-homepage .hero-subtitle {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

.ts-homepage .hero-search-container {
    max-width: 100%;
}

.ts-homepage .hero-search-box {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    background: #fff;
    border-radius: 20px;
    padding: 1rem 1.125rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.ts-homepage .hero-search-box input {
    width: 100%;
    flex: none;
    background: #f3f4f6;
    border-radius: 12px;
    margin: 0;
}

.ts-homepage .hero-search-box button {
    width: 100%;
    margin-left: 0;
    border-radius: 999px;
    background: #FFD700 !important;
    color: #333 !important;
}

.ts-homepage .hero-search-box button:hover {
    background: #FFC107 !important;
}

@media (max-width: 768px) {
    .ts-homepage .hero-container {
        padding: 1.75rem 1.15rem;
    }
}

/* Popular chips in hero — single row, horizontal scroll */

.home-popular-chips {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    max-width: 100%;
    min-width: 0;
}

.home-popular-label {
    flex: 0 0 auto;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0F172A;
    white-space: nowrap;
}

.home-popular-chips-scroll {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x;
    padding-bottom: 2px;
}

.home-popular-chips-scroll::-webkit-scrollbar {
    display: none;
}

.home-popular-chip {
    display: inline-block;
    flex: 0 0 auto;
    padding: 0.28rem 0.7rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #0F172A;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.home-popular-chip:hover {
    background: #FFFBEB;
    border-color: rgba(15, 23, 42, 0.28);
    color: #0F172A;
}

/* KPU strip — secondary to quote funnel */
.home-kpu-strip {
    padding: 0.5rem 0;
    background: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.home-kpu-strip-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    font-size: 0.875rem;
}

.home-kpu-strip-inner strong {
    display: block;
    color: var(--text-dark, #212529);
    margin-bottom: 0.15rem;
}

.home-kpu-strip-inner span {
    color: var(--text-muted, #6c757d);
}

.home-kpu-link {
    font-weight: 600;
    color: var(--color-primary-text, #78350F);
    text-decoration: none;
    white-space: nowrap;
}

.home-kpu-link:hover {
    color: var(--color-primary-text, #78350F);
}

/* Service-bay category cards — workshop vitrin, not icon tiles */
.ts-homepage .home-svc-section {
    padding: 3rem 0;
    overflow-x: hidden;
}

.home-svc-head {
    text-align: center;
    max-width: 36rem;
    margin: 0 auto 2rem;
}

.home-svc-head h2 {
    font-size: clamp(1.5rem, 2.4vw, 2.05rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #0F172A;
    margin: 0 0 0.55rem;
}

.home-svc-mark {
    background-image: linear-gradient(#FFE800, #FFE800);
    background-repeat: no-repeat;
    background-position: 0 92%;
    background-size: 100% 0.22em;
}

.home-svc-lead {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #57534E;
}

.home-svc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.15rem;
    min-width: 0;
}

.home-svc-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    isolation: isolate;
    background: #fff;
    border: 1px solid rgba(28, 25, 23, 0.08);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 22px rgba(28, 25, 23, 0.06);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.home-svc-card:hover,
.home-svc-card:focus-visible {
    color: inherit;
    text-decoration: none;
    transform: translateY(-6px);
    border-color: rgba(255, 232, 0, 0.55);
    box-shadow: 0 18px 36px rgba(28, 25, 23, 0.12);
}

.home-svc-card:focus-visible {
    outline: 2px solid #0F172A;
    outline-offset: 3px;
}

.home-svc-card__media {
    position: relative;
    aspect-ratio: 16 / 10.5;
    overflow: hidden;
    background:
        radial-gradient(120% 80% at 12% 0%, rgba(255, 232, 0, 0.28), transparent 52%),
        linear-gradient(165deg, #2A2622 0%, #1C1917 46%, #0C0A09 100%);
}

.home-svc-card:nth-child(2n) .home-svc-card__media {
    background:
        radial-gradient(110% 80% at 88% 0%, rgba(255, 232, 0, 0.22), transparent 55%),
        linear-gradient(195deg, #292524 0%, #1C1917 50%, #0C0A09 100%);
}

.home-svc-card:nth-child(3n) .home-svc-card__media {
    background:
        radial-gradient(90% 70% at 50% 110%, rgba(255, 232, 0, 0.14), transparent 50%),
        linear-gradient(180deg, #3F3A34 0%, #1C1917 100%);
}

.home-svc-card__photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-svc-card:hover .home-svc-card__photo {
    transform: scale(1.05);
}

.home-svc-card__ghost {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 232, 0, 0.22);
    font-size: 2.75rem;
    pointer-events: none;
}

.home-svc-card__letter {
    position: absolute;
    right: 0.55rem;
    bottom: -0.2rem;
    font-size: 6.5rem;
    font-weight: 800;
    line-height: 0.75;
    letter-spacing: -0.08em;
    color: rgba(255, 248, 220, 0.1);
    text-transform: uppercase;
    user-select: none;
}

.home-svc-card__ghost > i,
.home-svc-card__ghost .ts-category-icon-img {
    position: relative;
    z-index: 1;
    opacity: 0.35;
}

.home-svc-card__ghost .ts-category-icon-img {
    width: 38%;
    height: 38%;
    max-width: 5.5rem;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.28;
}

.home-svc-card__wash {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 248, 204, 0.14) 100%);
    pointer-events: none;
}

.home-svc-card__icon {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    background: #FFE800;
    color: #1C1917;
    box-shadow: 0 6px 16px rgba(12, 10, 9, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    z-index: 2;
}

.home-svc-card__icon i {
    color: #1C1917;
}

.home-svc-card__icon .ts-category-icon-img {
    width: 1.55rem;
    height: 1.55rem;
    object-fit: contain;
}

.home-svc-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1.1rem 1.15rem 1.05rem;
    min-width: 0;
}

.home-svc-card__row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.home-svc-card__title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: #0F172A;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.home-svc-card__desc {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #57534E;
    margin: 0.55rem 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-svc-card__go {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-left: auto;
    border-radius: 50%;
    background: #FFE800;
    color: #1C1917;
    font-size: 0.8rem;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-svc-card:hover .home-svc-card__go,
.home-svc-card:focus-visible .home-svc-card__go {
    transform: translateX(4px) scale(1.08);
}

.home-svc-foot {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.home-svc-all {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.72rem 1.35rem;
    border-radius: 999px;
    background: #fff;
    border: 2px solid #FFE800;
    color: #1C1917;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.home-svc-all:hover,
.home-svc-all:focus-visible {
    background: #FFE800;
    color: #1C1917;
    text-decoration: none;
}

.home-svc-all:focus-visible {
    outline: 2px solid #0F172A;
    outline-offset: 3px;
}

@media (min-width: 768px) {
    .home-svc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.35rem;
    }

    .ts-homepage .home-svc-section {
        padding: 3.25rem 0;
    }
}

@media (min-width: 1200px) {
    .home-svc-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.4rem;
    }
}

@media (max-width: 767px) {
    .home-svc-card__media {
        aspect-ratio: 16 / 9;
    }

    .home-svc-card__icon {
        width: 46px;
        height: 46px;
        font-size: 1.05rem;
    }

    .home-svc-all {
        width: 100%;
        max-width: 22rem;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-svc-card,
    .home-svc-card__photo,
    .home-svc-card__go,
    .home-svc-all {
        transition: none;
    }

    .home-svc-card:hover,
    .home-svc-card:focus-visible,
    .home-svc-card:hover .home-svc-card__photo,
    .home-svc-card:hover .home-svc-card__go,
    .home-svc-card:focus-visible .home-svc-card__go {
        transform: none;
    }
}

.home-svc-card--listed {
    text-decoration: none;
}

.home-svc-card__hit {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.home-svc-card__hit:hover,
.home-svc-card__hit:focus-visible {
    color: inherit;
    text-decoration: none;
}

.home-svc-card__hit:focus-visible {
    outline: 2px solid #0f172a;
    outline-offset: -2px;
}

.home-svc-card__subs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    margin: 0;
    padding: 0 0.95rem 0.95rem;
}

.home-svc-card__sub {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    max-width: 100%;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: #f5f5f4;
    color: #1c1917;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

.home-svc-card__sub:hover,
.home-svc-card__sub:focus-visible {
    background: #ffe800;
    color: #1c1917;
    text-decoration: none;
}

.home-svc-card__sub-count {
    font-variant-numeric: tabular-nums;
    color: #78716c;
    font-weight: 700;
}

/* Step cards */
.home-step-card {
    padding: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    background: #fafafa;
    height: 100%;
}

.home-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--primary, #FFE800);
    color: #0F172A;
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.home-step-card h4 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.home-step-card p {
    font-size: 0.875rem;
    color: var(--text-muted, #6c757d);
    margin-bottom: 0;
}

/* Tech cards — layout C (stripe + centered vitrin) */
.home-tech-card {
    display: block;
    text-align: center;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    position: relative;
    height: 100%;
    overflow: hidden;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.home-tech-stripe {
    display: block;
    height: 6px;
    background: linear-gradient(90deg, #FFE800, #F5C518);
}

.home-tech-body {
    display: block;
    padding: 1rem 0.75rem 1.1rem;
}

.home-tech-card:hover {
    border-color: rgba(255, 232, 0, 0.45);
    color: inherit;
}

@media (hover: hover) {
    .home-tech-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    }
}

.home-tech-badge {
    position: absolute;
    top: 0.65rem;
    right: 0.5rem;
    z-index: 1;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.2;
    color: #E65100;
    background: rgba(255, 152, 0, 0.12);
    border-radius: 999px;
    padding: 0.2rem 0.45rem;
}

.home-tech-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFE800, #F5C518);
    color: #0F172A;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.65rem;
    overflow: hidden;
}

.home-tech-avatar--photo {
    background: #e8e8e8;
    padding: 0;
}

.home-tech-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-tech-card h5 {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.home-tech-loc {
    font-size: 0.72rem;
    color: var(--text-muted, #6c757d);
    margin: 0 0 0.35rem;
}

.home-tech-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
    margin: 0.35rem 0 0.45rem;
}

.home-tech-tag {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.12rem 0.35rem;
    border-radius: 4px;
    background: rgba(255, 232, 0, 0.12);
    color: #78350F;
}

.home-tech-jobs {
    font-size: 0.8125rem;
    color: var(--text-muted, #6c757d);
    margin: 0;
}

.home-tech-jobs strong {
    color: #78350F;
    font-weight: 700;
}

/* Activity cards */
.home-activity-card {
    padding: 1.125rem 1.125rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 12px;
    background: #fff;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.home-activity-card:hover {
    border-color: rgba(255, 232, 0, 0.35);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.home-activity-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.home-activity-chip {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: rgba(255, 232, 0, 0.12);
    color: #78350F;
}

.home-activity-dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary, #FFE800);
}

.home-activity-title {
    margin: 0 0 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-activity-meta {
    font-size: 0.8125rem;
    color: var(--text-muted, #6c757d);
}

.recent-requests .home-activity-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.home-activity-photo {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #f3f4f6;
    overflow: hidden;
}

.home-activity-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-activity-photo--empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-activity-photo-fallback {
    font-size: 1.75rem;
    color: #d1d5db;
}

.home-activity-photo-count {
    position: absolute;
    right: 0.5rem;
    bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 999px;
    padding: 0.22rem 0.5rem;
}

.home-activity-body {
    padding: 1.125rem 1.125rem 1rem;
    flex: 1;
}

.home-offer-price {
    font-weight: 700;
    color: var(--color-primary-text, #78350F);
    white-space: nowrap;
    font-size: 0.9375rem;
}

/* Trust grid */
.home-panel-trust {
    background: linear-gradient(180deg, #fff 0%, rgba(255, 232, 0, 0.04) 100%);
}

.home-trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .home-trust-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.home-trust-item {
    text-align: center;
    padding: 0.75rem 0.5rem;
}

.home-trust-item i {
    font-size: 1.5rem;
    color: var(--color-primary-text, #78350F);
    margin-bottom: 0.5rem;
}

.home-trust-item h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.35rem;
}

.home-trust-item p {
    font-size: 0.8125rem;
    color: var(--text-muted, #6c757d);
    margin-bottom: 0;
}

/* Bottom CTA */
.home-cta-band {
    padding: 2.5rem 0 3rem;
}

.home-cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 232, 0, 0.12) 0%, rgba(245, 197, 24, 0.08) 100%);
    border: 1px solid rgba(255, 232, 0, 0.2);
}

.home-cta-inner h2 {
    font-size: 1.375rem;
    margin-bottom: 0.35rem;
}

.home-cta-inner p {
    font-size: 0.9375rem;
    color: var(--text-muted, #6c757d);
    margin-bottom: 0;
}

@media (max-width: 575px) {
    .home-cta-inner {
        text-align: center;
        justify-content: center;
    }

    .home-cta-inner .btn {
        width: 100%;
    }
}

/* Hero: equal top/bottom padding under header */
.ts-homepage .hero-section {
    margin-top: 0;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

/* Panel CTAs */
.ts-homepage .home-panel .btn-outline-primary {
    border-radius: 999px;
    padding: 0.5rem 1.35rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    background: #FFFBEB !important;
    border: 1px solid #FDE68A !important;
    color: #78350F !important;
    box-shadow: none;
}

.ts-homepage .home-panel .btn-outline-primary:hover,
.ts-homepage .home-panel .btn-outline-primary:focus {
    background: #FFE800 !important;
    border-color: #F5C518 !important;
    color: #0F172A !important;
}

/* Requests swiper: hover arrows (desktop), hidden on mobile */
.requests-swiper-container .swiper-button-next,
.requests-swiper-container .swiper-button-prev {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.requests-swiper-container:hover .swiper-button-next,
.requests-swiper-container:hover .swiper-button-prev,
.requests-swiper-container:focus-within .swiper-button-next,
.requests-swiper-container:focus-within .swiper-button-prev {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 767px) {
    .requests-swiper-container .swiper-button-next,
    .requests-swiper-container .swiper-button-prev {
        display: none !important;
    }
}

/* Pagination lives outside the overflow-hidden swiper so dots aren't clipped. */
.ts-homepage .requests-swiper {
    padding: 4px 2px 8px;
}

.ts-homepage .requests-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.requests-swiper-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.15rem 0 0.35rem;
    min-height: 1.15rem;
}

.requests-swiper-pagination [data-req-bullet] {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #d6d3d1;
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.requests-swiper-pagination [data-req-bullet].is-active {
    width: 1.4rem;
    background: #F5C518;
    transform: none;
}

.requests-swiper-pagination [data-req-bullet]:focus-visible {
    outline: 2px solid #78350F;
    outline-offset: 2px;
}

/* Harita modülü: hero altında "yakındaki tamirciler" çağrısı (masaüstü + mobil web) */
.home-nearby-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 560px;
    margin-top: 14px;
    padding: 12px 16px;
    border: 1px solid #e7e5e4;
    border-radius: 14px;
    background: #fff;
    color: #1a1a1a;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(26, 26, 26, 0.08);
    transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.home-nearby-cta:hover,
.home-nearby-cta:focus-visible {
    color: #1a1a1a;
    border-color: #1a1a1a;
    box-shadow: 0 6px 18px rgba(26, 26, 26, 0.14);
    outline: none;
}

.home-nearby-cta:active {
    transform: scale(0.99);
}

.home-nearby-cta__icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1a1a1a;
    color: #ffe800;
    font-size: 1.1rem;
}

.home-nearby-cta__text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.home-nearby-cta__text strong {
    font-size: 1rem;
    line-height: 1.3;
}

.home-nearby-cta__text span {
    font-size: 0.85rem;
    line-height: 1.35;
    color: #57534e;
}

.home-nearby-cta__arrow {
    flex: 0 0 auto;
    color: #1a1a1a;
}

@media (prefers-reduced-motion: reduce) {
    .home-nearby-cta {
        transition: none;
    }
}
