@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+Myanmar:wght@400;500;600;700&display=swap');

:root {
    color-scheme: light;
    font-family: 'Noto Sans Myanmar', Inter, sans-serif;
    color: #182b42;
    background: #f5f8fc;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(ellipse at 50% -10%, rgba(191, 219, 254, 0.44), transparent 38rem),
        #f5f8fc;
}

button,
input {
    font: inherit;
}

.directory {
    width: min(1100px, calc(100% - 36px));
    margin: 0 auto;
    padding: 30px 0 80px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 15px;
    border: 1px solid #e0e8f2;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #40536c;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.back-link:hover {
    transform: translateY(-1px);
    border-color: #b8c9df;
    color: #1d4ed8;
}

.directory-hero {
    position: relative;
    margin: 34px 0 30px;
    padding: 42px clamp(22px, 5vw, 58px);
    overflow: hidden;
    border: 1px solid rgba(219, 230, 244, 0.9);
    border-radius: 28px;
    background:
        radial-gradient(circle at 88% 8%, rgba(45, 212, 191, 0.16), transparent 13rem),
        linear-gradient(120deg, #fff, #f7fbff);
    box-shadow: 0 16px 42px rgba(37, 59, 89, 0.07);
}

.directory-hero::after {
    position: absolute;
    right: 8%;
    bottom: -72px;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 0 22px rgba(37, 99, 235, 0.025), 0 0 0 46px rgba(37, 99, 235, 0.02);
    content: '';
    pointer-events: none;
}

.eyebrow {
    color: #64748b;
    font-family: Inter, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.directory-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0f766e;
}

.directory-hero h1 {
    position: relative;
    z-index: 1;
    margin: 15px 0 9px;
    color: #142b48;
    font-size: clamp(34px, 5.4vw, 54px);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.3;
}

.directory-hero p {
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin: 0;
    color: #586a80;
    font-size: 15px;
    line-height: 1.9;
}

.hero-note {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    padding: 9px 13px;
    border: 1px solid #d6ece9;
    border-radius: 999px;
    background: #effcf9;
    color: #0f766e;
    font-size: 12px;
    font-weight: 700;
}

.directory-tools {
    padding: 19px;
    border: 1px solid #e2eaf3;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 28px rgba(37, 59, 89, 0.05);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid #dce5ef;
    border-radius: 15px;
    background: #f8fafc;
    color: #718198;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-box:focus-within {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.search-box input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #1e293b;
    font-size: 14px;
}

.search-box input::placeholder {
    color: #94a3b8;
}

.city-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.city-filter {
    min-height: 38px;
    padding: 7px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #53657d;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.city-filter:hover {
    border-color: #93c5fd;
    color: #1d4ed8;
}

.city-filter.active {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #fff;
    box-shadow: 0 5px 13px rgba(29, 78, 216, 0.18);
}

.results-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin: 38px 2px 17px;
}

.results-heading h2 {
    margin: 6px 0 0;
    color: #172b45;
    font-size: clamp(21px, 3vw, 27px);
    line-height: 1.4;
}

.result-count {
    flex: 0 0 auto;
    padding: 7px 12px;
    border: 1px solid #dfe7f0;
    border-radius: 999px;
    background: #fff;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.shop-card {
    min-width: 0;
    padding: 22px;
    border: 1px solid #e1e9f2;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 9px 25px rgba(37, 59, 89, 0.045);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.shop-card:hover {
    transform: translateY(-3px);
    border-color: #c9d9eb;
    box-shadow: 0 15px 32px rgba(37, 59, 89, 0.09);
}

.shop-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.city-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0f766e;
    font-size: 12px;
    font-weight: 700;
}

.shop-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: #eff6ff;
    color: #2563eb;
}

.shop-card h3 {
    margin: 16px 0 11px;
    color: #172b45;
    font-size: 19px;
    line-height: 1.6;
}

.shop-address {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-height: 48px;
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.8;
}

.shop-address i {
    margin-top: 5px;
    color: #94a3b8;
}

.contact-label {
    display: block;
    margin: 18px 0 8px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
}

.phone-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 8px 13px;
    border: 1px solid #ccebe3;
    border-radius: 12px;
    background: #f0fdf8;
    color: #047857;
    font-family: Inter, 'Noto Sans Myanmar', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.phone-link:hover,
.phone-link:focus-visible {
    transform: translateY(-1px);
    border-color: #6ee7b7;
    background: #dcfce7;
    outline: none;
}

.empty-state {
    margin: 0;
    padding: 42px 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    color: #64748b;
    text-align: center;
}

[hidden] {
    display: none !important;
}

@media (max-width: 680px) {
    .directory {
        width: min(100% - 24px, 560px);
        padding-top: 18px;
    }

    .directory-hero {
        margin-top: 22px;
        padding: 30px 22px;
        border-radius: 22px;
    }

    .directory-hero p {
        font-size: 14px;
    }

    .directory-tools {
        padding: 13px;
        border-radius: 18px;
    }

    .city-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 1px 1px 6px;
        scrollbar-width: thin;
    }

    .city-filter {
        flex: 0 0 auto;
    }

    .shop-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .shop-card {
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
