:root {
    --bg: #FAF6ED;
    --bg-alt: #F1E8D4;
    --surface: #FFFFFF;
    --ink: #2B2118;
    --ink-soft: #7A6C5A;
    --marigold: #E8A33D;
    --marigold-deep: #C97F1E;
    --teal: #1F5C4E;
    --teal-deep: #153F35;
    --chili: #D6472B;
    --line: #E6DAC3;
    --shadow: 0 10px 30px -12px rgba(43, 33, 24, 0.25);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Poppins", sans-serif;
    background: #E9E1CE;
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
}


.device {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 38px;
    border: 10px solid #1B1611;
    box-shadow: var(--shadow), 0 0 0 2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    min-height: 860px;
}

.device::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 22px;
    background: #1B1611;
    border-radius: 0 0 16px 16px;
    z-index: 50;
}

.screen-wrap {
    position: relative;
    height: 860px;
    overflow: hidden;
}

.screen {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    transform: translateX(0);
    transition: transform .32s ease;
}

.screen::-webkit-scrollbar {
    width: 0;
}

.screen[data-active="false"] {
    pointer-events: none;
}

#screen-home[data-active="false"] {
    transform: translateX(-100%);
}

#screen-listing[data-active="false"] {
    transform: translateX(100%);
}


.topbar {
    padding: 25px 20px 25px;
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 10;
    border-radius: 0px 0px 40px 40px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.brand {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 26px;
    color: #59310d;
}

.brand span {
    color: var(--chili);
}

.locpill {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 6px 10px 6px 8px;
    border-radius: 999px;
    color: var(--ink-soft);
    align-items: baseline;
}

.locpill svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
}

.search svg {
    width: 18px;
    height: 18px;
    color: var(--ink-soft);
    flex-shrink: 0;
}

.search input {
    border: none;
    outline: none;
    background: transparent;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    color: var(--ink);
    width: 100%;
}

.search input::placeholder {
    color: #B3A48F;
}


.section-label {
    padding: 22px 20px 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.section-title {
    padding: 0 20px 14px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 21px;
    color: var(--ink);
}

.cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 0 20px 20px;
}

.cat-card {
    background: #faf6ed;
    border: 1px solid #00000005;
    border-radius: 18px;
    padding: 18px 14px 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    box-shadow: 0 2px 0 rgba(43, 33, 24, 0.03);
}

.cat-badge {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 32% 28%, #F6C877, var(--marigold-deep));
    color: #fff;
    flex-shrink: 0;
}

.cat-badge svg {
    width: 22px;
    height: 22px;
}

.cat-badge.teal {
    background: radial-gradient(circle at 32% 28%, #3E8574, var(--teal-deep));
}

.cat-badge.chili {
    background: radial-gradient(circle at 32% 28%, #E67158, var(--chili));
}

.cat-name {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.25;
}

.cat-count {
    font-size: 11.5px;
    color: var(--ink-soft);
    font-weight: 500;
    margin-top: 0px;
}

.view-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--teal-deep);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: "Poppins", sans-serif;
}

.view-more svg {
    width: 12px;
    height: 12px;
    transition: transform .15s ease;
}

.view-more:hover svg {
    transform: translateX(3px);
}

.promo-strip {
    margin: 6px 20px 26px;
    background: #41240a;
    border-radius: 18px;
    padding: 18px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.promo-strip h4 {
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 2px;
}

.promo-strip p {
    font-size: 12px;
    opacity: 0.85;
}

.promo-strip .pct {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 22px;
    background: rgba(255, 255, 255, 0.12);
    padding: 8px 12px;
    border-radius: 12px;
    /* flex-shrink: 0; */
    font-family: "Poppins", sans-serif;
}


.back-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
    padding: 25px 20px 25px;
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 999;
    border-radius: 0px 0px 40px 40px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.back-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.back-btn svg {
    width: 16px;
    height: 16px;
}

.listing-title {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 18px;
}

.listing-sub {
    font-size: 12px;
    color: var(--ink-soft);
    margin-top: 1px;
}

.chip-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 16px 20px 6px;
}

.chip {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink-soft);
    white-space: nowrap;
}

.chip.active {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}

.cafe-list {
    padding: 10px 20px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cafe-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 4px 14px -8px rgba(43, 33, 24, 0.25);
}

.cafe-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    background: var(--bg-alt);
}

.cafe-body {
    padding: 14px 16px 16px;
}

.cafe-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.cafe-name {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 16.5px;
    line-height: 1.25;
}

.cafe-tag {
    font-size: 11.5px;
    color: var(--ink-soft);
    margin-top: 2px;
}

.rating-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    background: #EFF6EE;
    color: var(--teal-deep);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 8px;
    border-radius: 8px;
}

.rating-pill svg {
    width: 12px;
    height: 12px;
    fill: var(--teal-deep);
}

.best-seller {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 9px 10px;
    background: var(--bg-alt);
    border-radius: 10px;
    font-size: 12.5px;
}

.best-seller svg {
    width: 15px;
    height: 15px;
    color: var(--marigold-deep);
    flex-shrink: 0;
}

.best-seller b {
    font-weight: 600;
}

.loc-row {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    align-items: center;
}

.mini-map {
    width: 64px;
    height: 52px;
    border-radius: 10px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(#EAF1E4, #EAF1E4) padding-box;
    border: 1px solid var(--line);
}

.mini-map svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.loc-text {
    font-size: 12px;
    color: var(--ink-soft);
    line-height: 1.35;
}

.loc-text b {
    color: var(--ink);
    font-weight: 600;
    display: block;
    font-size: 12.5px;
}

.claim-btn {
    width: 100%;
    margin-top: 14px;
    padding: 12px;
    border-radius: 2px;
    border: none;
    background: #cb4d00;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform .12s ease, background .15s ease;
}

.claim-btn svg {
    width: 15px;
    height: 15px;
}

.claim-btn:hover {
    background: #BE3A22;
}

.claim-btn:active {
    transform: scale(0.98);
}

.claim-btn[disabled] {
    background: var(--bg-alt);
    color: var(--ink-soft);
    cursor: default;
}


.modal-overlay {
    position: absolute;
    inset: 0;
    z-index: 100;
    background: rgba(27, 22, 17, 0.55);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-sheet {
    width: 100%;
    background: var(--bg);
    border-radius: 24px 24px 0 0;
    padding: 30px 30px 30px;
    transform: translateY(100%);
    transition: transform .28s cubic-bezier(.32, .72, 0, 1);
    max-height: 100%;
    overflow-y: auto;
}

.modal-overlay.open .modal-sheet {
    transform: translateY(0);
}

.modal-handle {
    width: 38px;
    height: 4px;
    background: var(--line);
    border-radius: 99px;
    margin: 0 auto 16px;
}

.modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 6px;
}

.modal-head h3 {
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #000;
}

.modal-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.modal-close svg {
    width: 13px;
    height: 13px;
}

.modal-sub {
    font-size: 12.5px;
    color: var(--ink-soft);
    margin-bottom: 18px;
}

.field {
    margin-bottom: 14px;
}

.field label {
    font-size: 14px;
    font-weight: 600;
    color: #020100;
    display: block;
    margin-bottom: 6px;
}

.field input {
    width: 100%;
    padding: 12px 13px;
    border-radius: 3px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    outline: none;
    color: var(--ink);
}

.field input:focus {
    border-color: var(--teal);
}

.field-error {
    font-size: 11px;
    color: var(--chili);
    margin-top: 5px;
    display: none;
    font-weight: 600;
}

.field.invalid input {
    border-color: var(--chili);
}

.field.invalid .field-error {
    display: block;
}

.submit-btn {
    width: 100%;
    padding: 13px;
    border-radius: 5px;
    border: none;
    background: #006123;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    margin-top: 6px;
}

.submit-btn:active {
    transform: scale(0.99);
}

.modal-fineprint {
    font-size: 10.5px;
    color: var(--ink-soft);
    text-align: center;
    margin-top: 12px;
    line-height: 1.5;
}


.ticket {
    display: none;
    text-align: center;
}

.ticket.show {
    display: block;
}

.ticket-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    margin: 4px auto 14px;
    background: radial-gradient(circle at 32% 28%, #55A88F, var(--teal-deep));
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticket-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.ticket-title {
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.ticket-sub {
    font-size: 12.5px;
    color: var(--ink-soft);
    margin-bottom: 20px;
}

.stub {
    position: relative;
    background: var(--surface);
    border: 1.5px dashed #CBBFA0;
    border-radius: 14px;
    padding: 20px 16px;
    margin-bottom: 16px;
}

.stub::before,
.stub::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--bg);
    border-radius: 50%;
}

.stub::before {
    left: -10px;
}

.stub::after {
    right: -10px;
}

.stub-label {
    font-size: 10.5px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--ink-soft);
    font-weight: 700;
    margin-bottom: 8px;
}

.stub-code {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 2px;
    color: var(--chili);
    margin-bottom: 10px;
}

.stub-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--teal-deep);
    background: var(--bg-alt);
    padding: 6px 12px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
}

.stub-copy svg {
    width: 11px;
    height: 11px;
}

.form-view.hide {
    display: none;
}



@media (min-width: 768px) {
    body {
        padding: 50px 24px;
        background: #E4DAC4;
    }

    .device {
        max-width: 850px;
        min-height: auto;
        height: 800px;
        border-radius: 24px;
        border: 1px solid var(--line);
        box-shadow: 0 20px 50px rgba(43, 33, 24, 0.15);
    }

    .device::before {
        display: none;
    }

    .screen-wrap {
        height: 800px;
    }


    .cat-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }


    .cafe-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }


    .modal-overlay {
        align-items: center;
    }

    .modal-sheet {
        width: 460px;
        border-radius: 20px;
        box-shadow: var(--shadow);
    }
}

@media (max-width: 520px) {
    body {
        padding: 0;
        background: var(--bg);
        align-items: stretch;
    }

    .device {
        max-width: 100%;
        min-height: 100vh;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

    .device::before {
        display: none;
    }

    .screen-wrap {
        height: 100vh;
    }
}



.brand-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
}

.brand {
    font-size: 22px;
    font-weight: 700;
}


.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}


.cat-card {
    display: flex;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.cat-card:hover {
    text-decoration: none;
    color: inherit;
}











.text-warning{
    color:#ffc107;
}

.rating-pill{
    display:flex;
    align-items:center;
    gap:2px;
    flex-wrap:wrap;
}

.rating-pill i{
    font-size:12px;
    color:#ffc107;
}

.rating-number{
    font-weight:700;
    margin-left:5px;
    color:#222;
}

.review-count{
    color:#888;
    font-size:13px;
}

.user-rating{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:18px 0 15px;
    padding-top:12px;
    border-top:1px solid #eee;
}

.user-rating span{
    font-size:14px;
    font-weight:600;
}

.user-rating .stars{
    display:flex;
    gap:5px;
}

.user-rating .stars i{
    font-size:22px;
    cursor:pointer;
    color:#ffc107;
    transition:.25s;
}

.user-rating .stars i:hover{
    transform:scale(1.15);
}



.cafe-img-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #eee;
}
.cafe-img-container .cafe-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.cafe-img-container .cafe-img.active {
    opacity: 1;
    position: relative;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 21px;
}
.slider-btn:hover { background: rgba(0, 0, 0, 0.8); }
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

#modalOverlay {
    z-index: 999;
}

.locpill a {
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    color: var(--ink-soft);
    align-items: baseline;
    text-decoration: none;
}

