/* Direktori laundry — public/css/laundry-directory.css */
/* Digunakan oleh resources/views/laundry.blade.php */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --linen: #f6f1e8;
    --linen-dark: #ebe4d6;
    --paper: #fffdf9;
    --ink: #1a2f38;
    --ink-soft: #4a6570;
    --sea: #1565C0;
    --sea-deep: #0e4d8f;
    --sea-mist: #d4e8f7;
    --line: #e4ddd0;
    --radius: 18px;
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --shadow: 0 14px 36px rgba(26, 47, 56, .08);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--linen);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

.wrap {
    width: min(1140px, 92vw);
    margin-inline: auto;
}

/* ── Topbar ── */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 241, 232, .88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 47, 56, .06);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4rem;
}

.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.45rem;
    color: var(--ink);
    letter-spacing: -.02em;
}

.logo em {
    font-style: normal;
    color: var(--sea);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border-radius: 999px;
    padding: .55rem 1.2rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .9rem;
    border: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: var(--sea);
    color: #fff;
    box-shadow: 0 8px 20px rgba(21, 101, 192, .22);
}

.btn-primary:hover {
    background: var(--sea-deep);
    color: #fff;
}

/* ── Hero ── */
.hero {
    text-align: center;
    padding: 3.5rem 0 2.5rem;
    background:
        radial-gradient(1000px 360px at 50% -10%, rgba(21, 101, 192, .1), transparent 60%),
        radial-gradient(700px 280px at 85% 0%, rgba(94, 158, 143, .08), transparent 55%);
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.9rem, 4.5vw, 2.75rem);
    line-height: 1.15;
    letter-spacing: -.02em;
    margin-bottom: .85rem;
}

.hero h1 .grad {
    color: var(--sea);
}

.hero-lead {
    color: var(--ink-soft);
    font-size: 1.05rem;
    max-width: 34rem;
    margin: 0 auto 1.75rem;
}

/* ── Search ── */
.search-wrap {
    max-width: 620px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    align-items: center;
    gap: .65rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: .4rem .45rem .4rem 1.1rem;
    box-shadow: var(--shadow);
}

.search-box .search-icon {
    color: var(--ink-soft);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 1rem;
    padding: .75rem .15rem;
    background: transparent;
    color: var(--ink);
    min-width: 0;
}

.search-box input::placeholder { color: #9aa8b0; }

.search-hint {
    color: var(--ink-soft);
    font-size: .82rem;
    margin-top: .85rem;
}

/* ── Directory ── */
.directory {
    padding: .5rem 0 4rem;
}

.directory-head {
    text-align: center;
    margin-bottom: 1.5rem;
}

.count-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .35rem 1rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink-soft);
}

/* ── Store grid ── */
.store-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.store-card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.store-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(21, 101, 192, .28);
}

.store-cover {
    position: relative;
    aspect-ratio: 16 / 9;
}

.store-cover-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--linen-dark);
}

.store-cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
}

.store-cover-fallback {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--sea) 0%, #42A5F5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
}

.store-logo-badge {
    position: absolute;
    left: 14px;
    bottom: -22px;
    width: 56px;
    height: 56px;
    z-index: 2;
    border-radius: 16px;
    background: #fff;
    border: 3px solid #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
    overflow: hidden;
}

.store-logo-badge .logo-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
}

.store-logo-badge .logo-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--sea-deep);
    background: var(--sea-mist);
}

.store-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 2rem 1.15rem 1.15rem;
}

.store-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 0 .3rem;
    line-height: 1.3;
}

.store-meta {
    color: var(--ink-soft);
    font-size: .85rem;
    display: flex;
    align-items: flex-start;
    gap: .35rem;
    margin-bottom: .55rem;
}

.store-meta .pin { flex-shrink: 0; opacity: .7; }

.store-desc {
    color: var(--ink-soft);
    font-size: .88rem;
    line-height: 1.5;
    margin: 0 0 .85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prod-matches {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin: 0 0 .85rem;
}

.prod-chip {
    font-size: .73rem;
    background: var(--sea-mist);
    color: var(--sea-deep);
    border-radius: 8px;
    padding: .2rem .55rem;
    font-weight: 600;
}

.store-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: .85rem;
    gap: .75rem;
}

.prod-count {
    font-size: .82rem;
    color: var(--ink-soft);
    font-weight: 500;
}

.visit-link {
    font-size: .88rem;
    font-weight: 700;
    color: var(--sea);
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    white-space: nowrap;
}

.store-card:hover .visit-link { gap: .5rem; }

/* ── Empty ── */
.empty-state {
    text-align: center;
    padding: 3.5rem 1rem;
    color: var(--ink-soft);
    grid-column: 1 / -1;
}

.empty-state .empty-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: .75rem;
    opacity: .45;
}

.empty-state strong {
    display: block;
    color: var(--ink);
    margin-bottom: .25rem;
}

/* ── Footer ── */
.footer-dir {
    border-top: 1px solid var(--line);
    background: var(--linen-dark);
    padding: 2rem 0 2.5rem;
    color: var(--ink-soft);
    font-size: .85rem;
    text-align: center;
}

.footer-dir p { margin: 0 0 .45rem; }

.footer-dir a {
    color: var(--sea);
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .35rem 1rem;
    margin: .65rem 0 !important;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .store-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .store-grid { grid-template-columns: 1fr; }
    .hero { padding: 2.5rem 0 1.75rem; }
    .btn { padding: .5rem 1rem; font-size: .85rem; }
}
