
:root{
  --bg:#f4f2eb;--paper:#fffdf8;--ink:#172728;--muted:#687777;--line:#d8ddd7;
  --brand:#174e4f;--brand2:#2d6665;--brand-soft:#e2ece8;--accent:#c66e3f;
  --gold:#a46c1e;--danger:#9b413d;--shadow:0 12px 30px rgba(31,49,49,.08);
  --radius:24px;--navh:72px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,Pretendard,"Noto Sans KR","Apple SD Gothic Neo",system-ui,sans-serif}
button,input,textarea{font:inherit}
button,a{ -webkit-tap-highlight-color:transparent}
a{color:inherit}
img{display:block;width:100%}
.shell{max-width:1180px;margin:0 auto;padding:0 22px calc(var(--navh) + 42px)}
.btn{border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:14px;padding:11px 15px;font-weight:800;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:7px}
.btn:hover{border-color:#afbbb5}
.btn.primary{background:var(--brand);color:white;border-color:var(--brand)}
.btn.soft{background:var(--brand-soft);border-color:transparent;color:var(--brand)}
.btn.tiny{padding:8px 11px;font-size:12px;border-radius:11px}
.page{display:none;padding-top:22px}
.page.active{display:block}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:9px 0 16px}
.section-head h2{margin:0;font-size:28px;letter-spacing:-.05em}
.section-head p{margin:6px 0 0;color:var(--muted);font-size:14px}
.eyebrow{font-size:12px;letter-spacing:.15em;color:var(--brand2);font-weight:900;text-transform:uppercase}
.grid{display:grid;gap:16px}
.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 2px 0 rgba(0,0,0,.01)}
.card.pad{padding:20px}
.muted{color:var(--muted)}
.home-hero{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(310px,.7fr);gap:16px;margin-bottom:16px}
.hero-main{padding:26px;background:var(--brand);color:white;border-radius:30px;min-height:286px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}
.hero-main:after{content:"";position:absolute;width:260px;height:260px;border:1px solid rgba(255,255,255,.15);border-radius:50%;right:-80px;top:-80px}
.hero-kicker{font-size:13px;opacity:.8;font-weight:800;letter-spacing:.08em}
.hero-main h2{font-size:46px;line-height:1.03;margin:8px 0 12px;letter-spacing:-.065em}
.hero-meta{display:flex;flex-wrap:wrap;gap:8px}
.hero-chip{border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.08);border-radius:999px;padding:8px 11px;font-size:12px}
.dday{display:inline-flex;width:max-content;background:#fff;color:var(--brand);border-radius:999px;padding:7px 11px;font-size:12px;font-weight:900;margin-top:10px}
.hero-side{display:grid;gap:16px}
.hotel-card,.budget-mini{padding:19px}
.hotel-card h3,.budget-mini h3{margin:6px 0 5px;font-size:18px;letter-spacing:-.03em}
.hotel-card p,.budget-mini p{margin:0;color:var(--muted);font-size:13px}
.hotel-actions{display:flex;gap:8px;margin-top:15px}
.budget-row{display:flex;justify-content:space-between;align-items:end;margin:13px 0 8px}
.budget-row strong{font-size:27px;letter-spacing:-.04em}
.bar{height:10px;background:#e6e9e4;border-radius:999px;overflow:hidden}
.bar>i{display:block;height:100%;background:var(--brand2);width:0%;border-radius:inherit}
.quick-grid{grid-template-columns:repeat(4,1fr);margin-bottom:16px}
.quick-card{padding:16px;text-align:left;cursor:pointer;border:1px solid var(--line);background:var(--paper);border-radius:20px}
.quick-card b{display:block;font-size:14px;margin-top:8px}
.quick-card span{font-size:12px;color:var(--muted)}
.quick-icon{font-size:21px}
.day-preview{padding:20px;margin-bottom:16px}
.day-preview-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.day-preview-head h3{margin:0;font-size:18px}
.mini-route{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.route-stop{background:#f2f5f0;border-radius:16px;padding:13px}
.route-stop small{color:var(--muted)}
.route-stop b{display:block;margin-top:3px;font-size:13px}
.day-tabs,.filters{display:flex;gap:8px;overflow-x:auto;padding:2px 0 11px;scrollbar-width:none}
.day-tabs::-webkit-scrollbar,.filters::-webkit-scrollbar{display:none}
.chip{white-space:nowrap;border:1px solid var(--line);background:var(--paper);border-radius:999px;padding:9px 13px;cursor:pointer;font-weight:800;font-size:12px}
.chip.active{background:var(--brand);color:white;border-color:var(--brand)}
.timeline{display:grid;gap:10px}
.time-card{display:grid;grid-template-columns:92px 1fr;gap:13px;padding:17px 18px;background:var(--paper);border:1px solid var(--line);border-radius:20px}
.time-col strong{display:block;font-size:15px;color:var(--brand)}
.time-col span{font-size:11px;color:var(--muted)}
.place-line{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.place-line h3{margin:0;font-size:17px;letter-spacing:-.025em}
.jp{font-size:12px;color:var(--muted)}
.activity{margin:7px 0 8px;font-size:13px;line-height:1.55}
.transport{padding:9px 11px;border-radius:12px;background:#f1f4f0;font-size:12px;color:#465655}
.tip{margin-top:9px;padding:9px 11px;background:#fff5e9;border-radius:12px;color:#6e4b24;font-size:12px;line-height:1.5}
.tag{display:inline-flex;align-items:center;border-radius:999px;background:#edf1ed;color:#51605d;font-size:10px;font-weight:900;padding:5px 7px}
.tag.gold{background:#f6ead7;color:#805516}
.tag.green{background:#dfece8;color:#1e5c58}
.restaurant-toolbar{display:grid;grid-template-columns:1fr auto;gap:10px;margin-bottom:13px}
.searchbox{width:100%;border:1px solid var(--line);background:var(--paper);border-radius:14px;padding:11px 13px;outline:none}
.searchbox:focus{border-color:#83a3a0;box-shadow:0 0 0 3px rgba(45,102,101,.08)}
.restaurant-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.restaurant{overflow:hidden;display:grid;grid-template-columns:200px 1fr;min-height:214px}
.food-carousel{position:relative;background:#e8eae6;min-height:214px;overflow:hidden}
.food-carousel img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;opacity:0;transition:opacity .18s ease}
.food-carousel img.active{opacity:1}
.carousel-btn{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:33px;height:33px;border-radius:50%;border:0;background:rgba(20,30,30,.72);color:#fff;cursor:pointer}
.carousel-btn.prev{left:8px}.carousel-btn.next{right:8px}
.carousel-count{position:absolute;right:9px;bottom:9px;background:rgba(20,30,30,.72);color:#fff;border-radius:999px;padding:5px 8px;font-size:10px;z-index:3}
.image-note{position:absolute;left:9px;bottom:9px;background:rgba(255,255,255,.86);border-radius:8px;padding:4px 6px;font-size:9px;z-index:3;color:#41504f}
.restaurant-body{padding:16px;min-width:0}
.restaurant-title-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.restaurant-title-row h3{margin:0;font-size:17px;letter-spacing:-.035em}
.tabelog{display:inline-flex;gap:5px;align-items:center;background:#fff1db;color:#8c5314;border-radius:999px;padding:5px 8px;font-size:11px;font-weight:900;text-decoration:none}
.restaurant-sub{font-size:11px;color:var(--muted);margin-top:3px}
.restaurant-meta{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
.restaurant-main{font-size:12px;line-height:1.55}
.restaurant-main b{color:var(--brand)}
.restaurant-actions{display:flex;gap:7px;margin-top:12px;flex-wrap:wrap}
.restaurant details{border-top:1px dashed var(--line);margin-top:11px;padding-top:9px}
.restaurant summary{cursor:pointer;font-size:11px;font-weight:900;color:var(--brand)}
.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:9px}
.detail-box{background:#f4f5f1;border-radius:11px;padding:9px;font-size:11px;line-height:1.45}
.notice{padding:13px 15px;border:1px solid #ead6b5;background:#fff8ec;border-radius:16px;font-size:12px;color:#6d512f;line-height:1.5;margin-bottom:14px}
.conveni-hero{padding:22px;background:#123f43;color:white;border-radius:26px;margin-bottom:14px}
.conveni-hero h3{font-size:25px;margin:4px 0}
.conveni-hero p{margin:0;opacity:.78;font-size:13px}
.item-grid{grid-template-columns:repeat(3,1fr)}
.item-card{padding:16px}
.item-card .store{font-size:10px;font-weight:900;color:var(--brand2);letter-spacing:.08em}
.item-card h3{font-size:15px;margin:6px 0}
.item-card p{font-size:12px;color:var(--muted);line-height:1.5;margin:0}
.item-price{font-weight:900;margin-top:10px;font-size:13px}
.item-badge{float:right;font-size:10px;background:#eef2ef;border-radius:999px;padding:4px 7px}
.gift-grid{grid-template-columns:repeat(3,1fr)}
.gift-card{padding:16px}
.gift-card h3{font-size:15px;margin:4px 0 7px}
.gift-card p{font-size:12px;color:var(--muted);line-height:1.5;margin:0}
.budget-layout{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.budget-big{background:var(--brand);color:#fff;padding:22px;border-radius:26px}
.budget-big strong{font-size:42px;display:block;margin:6px 0}
.budget-big p{margin:0;opacity:.75}
.budget-cats{display:grid;gap:8px;margin-top:15px}
.budget-cat{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}
.budget-cat small{opacity:.75}
.expense-list{display:grid;gap:8px}
.expense-row{display:grid;grid-template-columns:1fr 120px;gap:10px;align-items:center}
.expense-row input{border:1px solid var(--line);border-radius:12px;padding:10px;background:#fff}
.tip-grid{grid-template-columns:repeat(2,1fr)}
.tip-card{padding:17px}
.tip-card h3{font-size:15px;margin:4px 0 7px}
.tip-card p{font-size:12px;line-height:1.55;color:var(--muted);margin:0}
.source-pill{font-size:9px;border:1px solid var(--line);border-radius:999px;padding:4px 6px;display:inline-flex;margin-top:10px;color:var(--muted)}
.bottomnav{position:fixed;z-index:35;bottom:0;left:0;right:0;background:rgba(255,255,255,.95);backdrop-filter:blur(16px);border-top:1px solid var(--line);display:flex;justify-content:center}
.bottomnav-inner{width:min(850px,100%);display:grid;grid-template-columns:repeat(7,1fr)}
.navbtn{border:0;background:transparent;padding:11px 4px 13px;color:#64706e;font-size:10px;cursor:pointer}
.navbtn b{font-size:18px;display:block;line-height:1.1;margin-bottom:3px;font-weight:600}
.navbtn.active{color:var(--brand);font-weight:900}
.edit-fab{position:fixed;z-index:34;right:22px;bottom:calc(var(--navh) + 16px);border:0;border-radius:999px;background:var(--accent);color:white;font-weight:900;padding:13px 17px;box-shadow:0 10px 24px rgba(111,62,34,.25);cursor:pointer}
.drawer-backdrop{position:fixed;inset:0;z-index:60;background:rgba(15,28,28,.42);opacity:0;pointer-events:none;transition:.2s}
.drawer-backdrop.open{opacity:1;pointer-events:auto}
.drawer{position:fixed;right:0;top:0;bottom:0;width:min(470px,94vw);z-index:61;background:var(--paper);transform:translateX(105%);transition:.24s ease;box-shadow:-20px 0 50px rgba(0,0,0,.18);padding:22px;overflow:auto}
.drawer.open{transform:none}
.drawer-head{display:flex;justify-content:space-between;gap:10px;align-items:center}
.drawer-head h2{margin:0;font-size:22px}
.close{border:0;background:#edf0ed;border-radius:50%;width:38px;height:38px;cursor:pointer}
.chat-bubble{background:#edf3ef;border-radius:18px 18px 18px 4px;padding:13px 14px;font-size:13px;line-height:1.55;margin:14px 0}
.quick-prompts{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}
.prompt-chip{border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 10px;font-size:11px;cursor:pointer}
.drawer textarea{width:100%;min-height:170px;resize:vertical;border:1px solid var(--line);border-radius:16px;padding:13px;outline:none;background:#fff}
.drawer-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.chat-note{font-size:11px;color:var(--muted);line-height:1.5;margin-top:11px}
.toast{position:fixed;left:50%;bottom:95px;z-index:90;transform:translate(-50%,12px);background:#172728;color:#fff;border-radius:999px;padding:10px 14px;font-size:12px;opacity:0;pointer-events:none;transition:.2s}
.toast.show{opacity:1;transform:translate(-50%,0)}
.empty{padding:35px;text-align:center;color:var(--muted)}
@media(max-width:900px){
  .home-hero{grid-template-columns:1fr}
  .hero-side{grid-template-columns:1fr 1fr}
  .restaurant-grid{grid-template-columns:1fr}
  .item-grid,.gift-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:640px){
  :root{--navh:66px}
  .shell{padding:0 12px calc(var(--navh) + 34px)}
  .btn{padding:9px 11px}
  .page{padding-top:13px}
  .section-head{margin-top:5px}
  .section-head h2{font-size:23px}
  .section-head p{font-size:12px}
  .home-hero{display:block;margin-bottom:10px}
  .hero-main{min-height:0;padding:20px;border-radius:24px}
  .hero-main h2{font-size:36px;margin:6px 0 9px}
  .hero-main p{display:none}
  .hero-main:after{width:180px;height:180px}
  .hero-meta{gap:5px}
  .hero-chip{font-size:10px;padding:6px 8px}
  .dday{font-size:10px;margin-top:7px}
  .hero-side{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:9px}
  .hotel-card,.budget-mini{padding:13px;border-radius:18px}
  .hotel-card h3,.budget-mini h3{font-size:13px;margin:4px 0}
  .hotel-card p,.budget-mini p{font-size:10px}
  .hotel-actions{margin-top:9px}
  .budget-row{margin:6px 0 5px}
  .budget-row strong{font-size:19px}
  .bar{height:7px}
  .quick-grid{grid-template-columns:repeat(4,1fr);gap:7px;margin-bottom:10px}
  .quick-card{padding:10px 7px;border-radius:15px;text-align:center}
  .quick-card b{font-size:10px;margin-top:4px}
  .quick-card span{display:none}
  .quick-icon{font-size:18px}
  .day-preview{padding:14px;border-radius:18px}
  .mini-route{display:flex;overflow-x:auto;gap:7px}
  .route-stop{min-width:128px;padding:10px}
  .route-stop b{font-size:11px}
  .time-card{grid-template-columns:66px 1fr;padding:13px 12px;border-radius:16px}
  .time-col strong{font-size:13px}
  .place-line h3{font-size:15px}
  .activity,.transport,.tip{font-size:11px}
  .restaurant-toolbar{grid-template-columns:1fr}
  .restaurant{grid-template-columns:132px 1fr;min-height:174px;border-radius:18px}
  .food-carousel{min-height:174px}
  .restaurant-body{padding:12px}
  .restaurant-title-row{gap:5px}
  .restaurant-title-row h3{font-size:14px}
  .tabelog{font-size:9px;padding:4px 6px}
  .restaurant-sub{font-size:9px}
  .restaurant-meta{margin:7px 0;gap:4px}
  .tag{font-size:8px;padding:4px 5px}
  .restaurant-main{font-size:10px;line-height:1.4}
  .restaurant-actions{margin-top:8px}
  .restaurant-actions .btn{font-size:9px;padding:7px 8px}
  .restaurant details{margin-top:8px;padding-top:6px}
  .detail-grid{grid-template-columns:1fr}
  .carousel-btn{width:28px;height:28px;font-size:11px}
  .carousel-count{font-size:8px}
  .image-note{display:none}
  .item-grid,.gift-grid,.tip-grid{grid-template-columns:1fr}
  .item-card,.gift-card,.tip-card{padding:14px}
  .budget-layout{grid-template-columns:1fr}
  .budget-big strong{font-size:35px}
  .expense-row{grid-template-columns:1fr 105px}
  .edit-fab{right:13px;bottom:80px;padding:11px 14px;font-size:12px}
  .bottomnav-inner{grid-template-columns:repeat(7,1fr)}
  .navbtn{font-size:8px;padding:9px 2px 11px}
  .navbtn b{font-size:16px}
  .drawer{width:96vw;padding:17px}
}

/* itinerary editing */
.editable-time-card{cursor:pointer;position:relative;transition:transform .12s ease,border-color .12s ease,background .12s ease}
.editable-time-card:hover{border-color:#9cb2ad;background:#fffefb}
.editable-time-card:active{transform:scale(.995)}
.edit-hint{font-size:9px;color:var(--brand2);font-weight:900;background:var(--brand-soft);border-radius:999px;padding:4px 7px}
.schedule-day-head{margin-bottom:11px;display:flex;justify-content:space-between;gap:12px;align-items:center}
.day-head-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.btn.ghost{background:transparent}
.btn.danger{background:#fff1ef;color:#9b413d;border-color:#edc6c1}
.btn.wide{width:100%}
.modal-backdrop{position:fixed;inset:0;background:rgba(13,25,25,.46);z-index:70;opacity:0;pointer-events:none;transition:.2s}
.modal-backdrop.open{opacity:1;pointer-events:auto}
.schedule-sheet{position:fixed;z-index:71;left:50%;bottom:0;width:min(680px,100%);max-height:92vh;overflow:auto;background:var(--paper);border-radius:26px 26px 0 0;box-shadow:0 -20px 60px rgba(0,0,0,.2);padding:12px 22px calc(22px + env(safe-area-inset-bottom));transform:translate(-50%,105%);transition:.24s ease}
.schedule-sheet.open{transform:translate(-50%,0)}
.compact-sheet{width:min(520px,100%)}
.sheet-handle{width:46px;height:5px;border-radius:999px;background:#d4d9d4;margin:0 auto 14px}
.sheet-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:14px}
.sheet-head h2{font-size:22px;margin:3px 0 0}
.field-label{display:grid;gap:6px;font-size:11px;font-weight:900;color:#51605d;margin:11px 0}
.field-label input,.field-label select,.field-label textarea{width:100%;border:1px solid var(--line);border-radius:13px;background:#fff;padding:11px 12px;color:var(--ink);outline:none;font-weight:500;resize:vertical}
.field-label input:focus,.field-label select:focus,.field-label textarea:focus{border-color:#83a3a0;box-shadow:0 0 0 3px rgba(45,102,101,.08)}
.form-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.sheet-actions{display:grid;grid-template-columns:1fr 1.5fr;gap:9px;margin-top:16px}
.local-note{font-size:10px;color:var(--muted);line-height:1.5;text-align:center;margin:11px 0 0}

@media(max-width:640px){
  .schedule-day-head{display:grid}
  .day-head-actions{justify-content:stretch}
  .day-head-actions .btn{flex:1}
  .edit-hint{margin-left:auto}
  .schedule-sheet{padding:10px 14px calc(16px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0}
  .form-two{grid-template-columns:1fr 1fr}
  .field-label{margin:8px 0}
  .field-label input,.field-label select,.field-label textarea{padding:10px}
}

.food-placeholder{display:grid;place-items:center;padding:16px;text-align:center;background:linear-gradient(145deg,#e8ece8,#f5f3ed);color:#566462}
.food-placeholder>div{display:grid;gap:7px}
.food-placeholder b{font-size:13px;color:var(--ink)}
.food-placeholder span{font-size:9px;color:var(--muted);line-height:1.4}
.food-placeholder a{font-size:10px;font-weight:900;color:var(--brand);text-decoration:none}

.restaurant-hours{display:flex;flex-wrap:wrap;gap:6px 12px;margin:8px 0;padding:8px 10px;background:#f2f5f1;border-radius:11px;font-size:10px;line-height:1.45;color:#4d5d5a}
.restaurant-hours span{min-width:0}
.restaurant-hours b{color:var(--brand);margin-right:4px}
@media(max-width:640px){
  .restaurant-hours{display:grid;gap:4px;margin:6px 0;padding:7px 8px;font-size:9px}
}


/* restaurant compact layout + image lightbox */
.no-scroll{overflow:hidden}
.image-lightbox{position:fixed;inset:0;z-index:120;background:rgba(7,12,12,.93);display:none;align-items:center;justify-content:center;padding:54px 64px 46px}
.image-lightbox.open{display:flex}
.lightbox-figure{margin:0;display:grid;gap:10px;max-width:min(1100px,90vw);max-height:88vh}
.lightbox-figure img{max-width:100%;max-height:78vh;width:auto;height:auto;object-fit:contain;border-radius:12px;margin:auto;box-shadow:0 18px 60px rgba(0,0,0,.42)}
.lightbox-figure figcaption{display:flex;justify-content:center;gap:12px;color:#fff;font-size:12px}
.lightbox-figure figcaption span{opacity:.65}
.lightbox-close{position:absolute;top:16px;right:18px;width:42px;height:42px;border:0;border-radius:50%;background:rgba(255,255,255,.13);color:#fff;font-size:27px;cursor:pointer}
.lightbox-nav{position:absolute;top:50%;transform:translateY(-50%);width:46px;height:58px;border:0;border-radius:14px;background:rgba(255,255,255,.13);color:#fff;font-size:34px;cursor:pointer}
.lightbox-nav.prev{left:18px}.lightbox-nav.next{right:18px}

.food-carousel img{pointer-events:none}
.food-carousel img.active{pointer-events:auto;cursor:zoom-in}
.restaurant{grid-template-columns:176px 1fr;min-height:184px}
.food-carousel{min-height:184px}
.restaurant-body{padding:12px 13px}
.restaurant-title-row{gap:6px}
.restaurant-title-row h3{font-size:16px}
.tabelog{padding:4px 7px;font-size:10px}
.restaurant-sub{margin-top:2px;font-size:10px}
.restaurant-meta{gap:4px;margin:6px 0}
.restaurant-meta .tag{padding:3px 6px;font-size:9px}
.restaurant-hours{gap:3px 10px;margin:5px 0;padding:6px 8px;font-size:9px;line-height:1.35}
.restaurant-main{font-size:10.5px;line-height:1.4}
.restaurant-actions{gap:5px;margin-top:7px}
.restaurant-actions .btn{padding:6px 8px;font-size:9px;border-radius:9px}
.carousel-btn{width:28px;height:28px}
.carousel-count{right:7px;bottom:7px;padding:4px 6px;font-size:9px}
.image-note{left:7px;bottom:7px;padding:3px 5px;font-size:8px}
.restaurant details{display:none!important}

@media(max-width:640px){
  .restaurant-grid{gap:9px}
  .restaurant{grid-template-columns:112px 1fr;min-height:148px;border-radius:15px}
  .food-carousel{min-height:148px}
  .restaurant-body{padding:9px 9px 8px}
  .restaurant-title-row{gap:4px}
  .restaurant-title-row h3{font-size:13px;line-height:1.25}
  .tabelog{font-size:8px;padding:3px 5px}
  .restaurant-sub{font-size:8px;margin-top:1px}
  .restaurant-meta{margin:4px 0;gap:3px}
  .restaurant-meta .tag{font-size:7px;padding:3px 4px}
  .restaurant-hours{gap:2px;margin:4px 0;padding:5px 6px;font-size:8px;line-height:1.3;border-radius:8px}
  .restaurant-main{font-size:9px;line-height:1.32}
  .restaurant-actions{gap:4px;margin-top:5px}
  .restaurant-actions .btn{font-size:8px;padding:5px 6px;border-radius:8px}
  .carousel-btn{width:24px;height:24px;font-size:10px}
  .carousel-btn.prev{left:5px}.carousel-btn.next{right:5px}
  .carousel-count{right:5px;bottom:5px;font-size:7px;padding:3px 5px}
  .image-lightbox{padding:48px 12px 34px}
  .lightbox-figure{max-width:96vw}
  .lightbox-figure img{max-height:75vh;border-radius:9px}
  .lightbox-nav{width:36px;height:48px;font-size:28px;background:rgba(0,0,0,.38)}
  .lightbox-nav.prev{left:5px}.lightbox-nav.next{right:5px}
  .lightbox-close{top:10px;right:10px;width:38px;height:38px}
}


/* restaurant density correction: keep readable text, trim empty vertical space */
.restaurant{grid-template-columns:176px 1fr;min-height:176px}
.food-carousel{min-height:176px}
.restaurant-body{padding:10px 12px}
.restaurant-title-row{gap:6px}
.restaurant-title-row h3{font-size:17px;line-height:1.3}
.tabelog{font-size:11px;padding:4px 7px}
.restaurant-sub{font-size:11px;margin-top:2px}
.restaurant-meta{gap:4px;margin:5px 0}
.restaurant-meta .tag{font-size:10px;padding:3px 6px}
.restaurant-hours{gap:3px 10px;margin:4px 0;padding:5px 8px;font-size:10px;line-height:1.35}
.restaurant-main{font-size:12px;line-height:1.4}
.restaurant-actions{gap:4px;margin-top:5px;align-items:center}
.restaurant-actions .btn{font-size:10px;line-height:1.1;padding:4px 8px;min-height:26px;border-radius:8px}
.carousel-btn{width:28px;height:28px}
.carousel-count{right:6px;bottom:6px;padding:3px 6px;font-size:9px}
@media(max-width:640px){
  .restaurant-grid{gap:9px}
  .restaurant{grid-template-columns:122px 1fr;min-height:158px;border-radius:16px}
  .food-carousel{min-height:158px}
  .restaurant-body{padding:9px 9px 8px}
  .restaurant-title-row{gap:5px}
  .restaurant-title-row h3{font-size:14px;line-height:1.28}
  .tabelog{font-size:9px;padding:3px 5px}
  .restaurant-sub{font-size:9px;margin-top:1px}
  .restaurant-meta{margin:4px 0;gap:3px}
  .restaurant-meta .tag{font-size:8px;padding:3px 5px}
  .restaurant-hours{gap:2px;margin:3px 0;padding:4px 6px;font-size:9px;line-height:1.3;border-radius:8px}
  .restaurant-main{font-size:10px;line-height:1.35}
  .restaurant-actions{gap:3px;margin-top:4px}
  .restaurant-actions .btn{font-size:9px;line-height:1;padding:3px 6px;min-height:23px;border-radius:7px}
}

/* robust restaurant gallery interactions */
.food-carousel[data-lightbox-carousel]{cursor:zoom-in;touch-action:pan-y}
.food-carousel[data-lightbox-carousel] .carousel-btn{cursor:pointer}
.image-lightbox.open{display:flex!important}
.image-lightbox{touch-action:pan-y}


/* shared swipe galleries: restaurants, convenience items, souvenirs */
.food-carousel.gallery{position:relative;overflow:hidden;cursor:zoom-in;touch-action:pan-y}
.carousel-track{display:flex;width:100%;height:100%;will-change:transform;transform:translate3d(0,0,0)}
.carousel-track img{
  position:relative!important;inset:auto!important;display:block;flex:0 0 100%;width:100%!important;min-width:100%;
  height:100%!important;object-fit:cover;opacity:1!important;pointer-events:auto!important;user-select:none;-webkit-user-drag:none
}
.carousel-btn:disabled{opacity:.28;cursor:default}
.product-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.product-card.item-card,.product-card.gift-card{padding:0;display:grid;grid-template-columns:minmax(0,1fr) 148px;overflow:hidden;min-height:132px}
.product-copy{min-width:0;padding:11px 8px 10px 13px}
.product-copy .store{font-size:10px;font-weight:900;color:var(--brand2);letter-spacing:.08em}
.product-copy h3{font-size:15px;margin:4px 0 5px;line-height:1.32}
.product-copy p{font-size:12px;line-height:1.42;color:var(--muted);margin:0}
.product-copy .item-price{font-size:13px;font-weight:900;margin-top:6px}
.product-copy .item-badge{font-size:10px;padding:3px 6px}
.product-copy>.tag{font-size:10px;padding:4px 6px}
.product-foot{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center;margin-top:7px;font-size:11px}
.product-foot span{color:var(--muted)}
.product-media{min-width:0;height:100%}
.product-media .food-carousel{height:100%;min-height:132px;border-radius:0}
.product-media .carousel-count{bottom:5px;right:5px}
.product-media .carousel-btn{width:24px;height:24px;font-size:11px}
.product-media .carousel-btn.prev{left:4px}.product-media .carousel-btn.next{right:4px}
.conveni-hero{padding:15px 18px;margin-bottom:11px}
.conveni-hero h3{font-size:21px;margin:2px 0 3px}
.conveni-hero p{font-size:12px}

/* full-screen draggable lightbox */
.lightbox-figure{width:min(1180px,96vw);max-width:none;max-height:90vh;grid-template-rows:minmax(0,1fr) auto}
.lightbox-viewport{width:100%;height:min(78vh,850px);overflow:hidden;touch-action:pan-y}
.lightbox-track{display:flex;width:100%;height:100%;will-change:transform}
.lightbox-slide{flex:0 0 100%;width:100%;height:100%;display:grid;place-items:center;padding:4px}
.lightbox-slide img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:12px;box-shadow:0 18px 60px rgba(0,0,0,.42);user-select:none;-webkit-user-drag:none}
.lightbox-nav:disabled{opacity:.22;cursor:default}

@media(max-width:900px){
  .product-list{grid-template-columns:1fr}
}
@media(max-width:640px){
  .product-list{gap:8px}
  .product-card.item-card,.product-card.gift-card{grid-template-columns:minmax(0,1fr) 116px;min-height:118px;border-radius:15px}
  .product-copy{padding:8px 6px 7px 10px}
  .product-copy h3{font-size:15px;margin:3px 0 4px}
  .product-copy p{font-size:12px;line-height:1.38}
  .product-copy .item-price{font-size:13px;margin-top:4px}
  .product-media .food-carousel{min-height:118px}
  .product-foot{margin-top:5px;font-size:11px}
  .conveni-hero{padding:12px 14px;margin-bottom:8px;border-radius:19px}
  .conveni-hero h3{font-size:19px}
  .lightbox-figure{width:100%;height:82vh;max-height:none}
  .lightbox-viewport{height:75vh}
  .lightbox-slide{padding:2px 0}
  .lightbox-slide img{border-radius:7px}
}


/* align convenience/souvenir cards with restaurant layout: image left, text right */
.product-card.item-card,
.product-card.gift-card{
  grid-template-columns:148px minmax(0,1fr);
}
.product-card .product-media{order:-1}
.product-card .product-copy{order:0;padding:11px 13px 10px 9px}

@media(max-width:640px){
  .product-card.item-card,
  .product-card.gift-card{
    grid-template-columns:116px minmax(0,1fr);
  }
  .product-card .product-copy{padding:8px 10px 7px 7px}
}


/* lock convenience + souvenir cards to the same vertical size */
.product-card.item-card,
.product-card.gift-card{
  height:132px;
  min-height:132px;
  max-height:132px;
}
.product-card .product-copy{
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height:0;
}
.product-card .product-copy h3{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.product-card .product-copy p{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.product-card .item-price,
.product-card .product-foot{margin-top:auto}
.product-card .product-media,
.product-card .product-media .food-carousel{
  height:132px;
  min-height:132px;
  max-height:132px;
}
@media(max-width:640px){
  .product-card.item-card,
  .product-card.gift-card{
    height:118px;
    min-height:118px;
    max-height:118px;
  }
  .product-card .product-media,
  .product-card .product-media .food-carousel{
    height:118px;
    min-height:118px;
    max-height:118px;
  }
}


/* hard-lock convenience + souvenir rows to identical height */
:root{--product-card-h:132px}
.product-list{
  grid-auto-rows:var(--product-card-h);
  align-items:stretch;
}
.product-card.item-card,
.product-card.gift-card{
  height:var(--product-card-h)!important;
  min-height:0!important;
  max-height:var(--product-card-h)!important;
  overflow:hidden!important;
  align-self:stretch;
}
.product-card .product-copy,
.product-card .product-media{
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  overflow:hidden!important;
}
.product-card .product-media .food-carousel{
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  overflow:hidden!important;
}
.product-card .product-media .carousel-track{
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
}
.product-card .product-media .carousel-track img{
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  object-fit:cover!important;
}
.product-card .product-copy h3{
  margin-top:3px;
  margin-bottom:3px;
}
.product-card .product-copy p{
  line-height:1.34;
  -webkit-line-clamp:2;
}
.product-card .item-price,
.product-card .product-foot{
  margin-top:auto!important;
  flex:0 0 auto;
}
.convenience-filters{margin-bottom:8px}

@media(max-width:640px){
  :root{--product-card-h:118px}
  .product-list{grid-auto-rows:var(--product-card-h)}
  .product-card.item-card,
  .product-card.gift-card{
    height:var(--product-card-h)!important;
    min-height:0!important;
    max-height:var(--product-card-h)!important;
  }
  .product-card .product-copy{padding-top:7px;padding-bottom:6px}
  .convenience-filters{padding-bottom:7px;margin-bottom:4px}
}


/* sticky restaurant filters + search */
.restaurant-sticky-tools{
  position:sticky;
  top:0;
  z-index:28;
  background:rgba(244,242,235,.96);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  padding:8px 0 9px;
  margin:0 0 8px;
  border-bottom:1px solid rgba(216,221,215,.92);
}
.restaurant-sticky-tools .filters{
  margin:0;
  padding:2px 0 8px;
}
.restaurant-sticky-tools .restaurant-toolbar{
  margin:0;
  display:block;
}
.restaurant-sticky-tools .searchbox{
  background:rgba(255,253,248,.98);
}
.convenience-jump{
  width:100%;
  margin:0 0 13px;
}
.gallery-broken{
  width:100%;
  height:100%;
  min-height:100%;
  display:grid;
  place-content:center;
  gap:4px;
  text-align:center;
  padding:10px;
  background:#ecefea;
  color:#5e6a68;
}
.gallery-broken b{font-size:11px;color:var(--ink)}
.gallery-broken span{font-size:9px;color:var(--muted)}

@media(max-width:640px){
  .restaurant-sticky-tools{
    top:0;
    margin-left:-12px;
    margin-right:-12px;
    padding:7px 12px 8px;
    box-shadow:0 5px 12px rgba(31,49,49,.06);
  }
  .restaurant-sticky-tools .filters{padding-bottom:7px}
  .convenience-jump{margin-bottom:9px}
}
