@font-face{font-family:'Poppins';src:url('fonts/Poppins-Regular.ttf');font-weight:400;}
@font-face{font-family:'Poppins';src:url('fonts/Poppins-Medium.ttf');font-weight:500;}
@font-face{font-family:'Poppins';src:url('fonts/Poppins-Bold.ttf');font-weight:600 800;}
@font-face{font-family:'Lora';src:url('fonts/Lora-Variable.ttf');font-weight:400 700;}
:root{
  --ground:#F6F3EE; --surface:#fff; --surface-2:#FAF7F2; --ink:#1F1B17; --muted:#6B635A; --faint:#9A9187;
  --line:#E6DED2; --line-2:#D6CCBD; --red:#D7262C; --red-deep:#A51D22; --red-soft:#FCE9E6;
  --jade:#0E5C58; --jade-soft:#E3EFEC; --gold:#E3A019; --gold-soft:#FBF0D6;
  --ok:#1C7C4E; --ok-soft:#E0F2E8; --warn:#A86A00; --warn-soft:#FDF1D8; --bad:#B42318; --bad-soft:#FDE7E4;
  --info:#1F5FA8; --info-soft:#E4EEFA; --r:10px; --shadow:0 1px 2px rgba(31,27,23,.05),0 6px 18px -10px rgba(31,27,23,.18);
}
*{box-sizing:border-box;}
html,body{margin:0; height:100%;}
body{background:var(--ground); color:var(--ink); font:14px/1.55 'Poppins',system-ui,sans-serif;}
a{color:var(--jade);} a:hover{color:var(--ink);}
h1,h2,h3{font-family:'Lora',Georgia,serif; margin:0; line-height:1.2; text-wrap:balance;}
h1{font-size:26px;} h2{font-size:19px;} h3{font-size:15.5px;}
.muted{color:var(--muted);} .small{font-size:12.5px;} .tiny{font-size:11.5px;}
.mono{font-variant-numeric:tabular-nums;}
:focus-visible{outline:2px solid var(--gold); outline-offset:2px;}

/* layout */
.shell{display:grid; grid-template-columns:232px 1fr; min-height:100%;}
.side{background:var(--ink); color:#E9E2D6; padding:18px 14px; display:flex; flex-direction:column; gap:18px; position:sticky; top:0; height:100vh;}
.side .logo{background:#fff; border-radius:8px; padding:8px 10px; display:inline-block;}
.side .logo img{height:26px; display:block;}
.side .app-name{font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:#A89E90; margin-top:8px;}
.nav{display:flex; flex-direction:column; gap:2px;}
.nav .sec{font-size:10.5px; letter-spacing:.16em; text-transform:uppercase; color:#8C8274; margin:14px 10px 4px;}
.nav a{display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:8px; color:#D9D1C4; text-decoration:none; font-size:13.5px;}
.nav a:hover{background:rgba(255,255,255,.06); color:#fff;}
.nav a.on{background:rgba(255,255,255,.1); color:#fff;}
.nav a .count{margin-left:auto; background:var(--red); color:#fff; font-size:11px; font-weight:600; border-radius:99px; padding:0 7px;}
.nav svg{width:17px; height:17px; flex:none; stroke:currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round;}
.side .me{margin-top:auto; border-top:1px solid rgba(255,255,255,.1); padding-top:12px; font-size:12.5px;}
.side .me b{color:#fff; display:block;}
.side .me .role{color:#A89E90; text-transform:capitalize;}
.side .me form{display:inline;}
.side .me button,.side .me a{background:none; border:0; color:#D9D1C4; font:inherit; font-size:12px; padding:0; cursor:pointer; text-decoration:underline; text-underline-offset:3px;}
.main{padding:26px 32px 60px; min-width:0; max-width:1320px;}
.topline{display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:20px;}
.eyebrow{font-size:11px; letter-spacing:.18em; text-transform:uppercase; color:var(--red); font-weight:600; margin-bottom:4px;}
@media (max-width:900px){
  .shell{grid-template-columns:1fr;}
  .side{position:static; height:auto; flex-direction:row; flex-wrap:wrap; align-items:center; padding:10px 16px; gap:10px;}
  .side .app-name{display:none;}
  .nav{flex-direction:row; flex-wrap:wrap; gap:2px; order:3; width:100%;}
  .nav .sec{display:none;}
  .nav a{padding:6px 9px; font-size:12.5px;}
  .side .me{margin:0 0 0 auto; border:0; padding:0;}
  .main{padding:18px 16px 50px;}
}

/* components */
.card{background:var(--surface); border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--shadow);}
.pad{padding:18px 20px;}
.btn{display:inline-flex; align-items:center; justify-content:center; gap:7px; border:1px solid var(--line-2); background:var(--surface); color:var(--ink); padding:8px 14px; border-radius:8px; font:500 13.5px 'Poppins',sans-serif; cursor:pointer; text-decoration:none; white-space:nowrap; line-height:1.3;}
.btn:hover{background:var(--surface-2); color:var(--ink);}
.btn.primary{background:var(--red); border-color:var(--red); color:#fff;} .btn.primary:hover{background:var(--red-deep);}
.btn.dark{background:var(--ink); border-color:var(--ink); color:#fff;} .btn.dark:hover{background:#000;}
.btn.jade{background:var(--jade); border-color:var(--jade); color:#fff;}
.btn.ghost{background:transparent; border-color:transparent;} .btn.ghost:hover{background:rgba(0,0,0,.04);}
.btn.danger{color:var(--bad); border-color:#F0C4BE;} .btn.danger:hover{background:var(--bad-soft);}
.btn.sm{padding:5px 10px; font-size:12.5px;}
.btn.lg{padding:11px 20px; font-size:14.5px;}
.btn[disabled]{opacity:.5; cursor:not-allowed;}
.btn svg{width:16px; height:16px; stroke:currentColor; fill:none; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round;}
.pill{display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:600; padding:2px 10px; border-radius:99px; white-space:nowrap;}
.pill::before{content:""; width:6px; height:6px; border-radius:50%; background:currentColor;}
.pill.neutral{background:#EFEAE2; color:#5A5249;} .pill.warn{background:var(--warn-soft); color:var(--warn);}
.pill.bad{background:var(--bad-soft); color:var(--bad);} .pill.ok{background:var(--ok-soft); color:var(--ok);}
.pill.ok-strong{background:var(--ok); color:#fff;} .pill.info{background:var(--info-soft); color:var(--info);}
.pill.muted{background:#EFEAE2; color:var(--faint);}
.tag{display:inline-block; font-size:11.5px; background:var(--surface-2); border:1px solid var(--line); border-radius:6px; padding:0 7px; color:var(--muted);}

/* flash */
.flashes{display:flex; flex-direction:column; gap:8px; margin-bottom:18px;}
.flash{border-radius:8px; padding:10px 14px; font-size:13.5px; border:1px solid; display:flex; gap:10px; align-items:flex-start;}
.flash.ok{background:var(--ok-soft); border-color:#BFE3CE; color:#135C39;}
.flash.bad{background:var(--bad-soft); border-color:#F3C3BC; color:#8E1B12;}
.flash.warn{background:var(--warn-soft); border-color:#F0D9A6; color:#6E4600;}

/* forms */
.form-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:14px 16px;}
.field{display:flex; flex-direction:column; gap:5px; min-width:0;}
.field.wide{grid-column:1/-1;}
label,.lbl{font-size:12px; font-weight:600; color:var(--muted);}
.req::after{content:" *"; color:var(--red);}
input[type=text],input[type=email],input[type=password],input[type=number],input[type=date],input[type=tel],select,textarea{
  font:inherit; font-size:14px; color:var(--ink); background:#fff; border:1px solid var(--line-2); border-radius:8px; padding:8px 10px; width:100%;}
textarea{resize:vertical; min-height:70px; line-height:1.5;}
input:focus,select:focus,textarea:focus{outline:2px solid var(--gold-soft); border-color:var(--gold);}
.help{font-size:11.8px; color:var(--faint); line-height:1.45;}
.check{display:flex; gap:8px; align-items:flex-start; font-size:13.5px; cursor:pointer;}
.check input{margin-top:3px; accent-color:var(--red);}
fieldset{border:0; padding:0; margin:0;}
.section{margin-top:22px;}
.section > h2{margin-bottom:4px;}
.section > .help{margin-bottom:12px;}
.actions-bar{display:flex; gap:10px; flex-wrap:wrap; align-items:center;}
.sticky-actions{position:sticky; bottom:0; background:linear-gradient(0deg, var(--ground) 70%, rgba(246,243,238,0)); padding:16px 0 6px; margin-top:20px; display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; z-index:4;}

/* tables */
.table-wrap{overflow-x:auto;}
table.list{width:100%; border-collapse:collapse; font-size:13.5px;}
table.list th{text-align:left; font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--faint); font-weight:600; padding:10px 12px; border-bottom:1px solid var(--line); white-space:nowrap;}
table.list td{padding:11px 12px; border-bottom:1px solid var(--line); vertical-align:middle;}
table.list tr:last-child td{border-bottom:0;}
table.list tr.click{cursor:pointer;} table.list tr.click:hover td{background:var(--surface-2);}
.t-main{font-weight:600;} .t-sub{font-size:12px; color:var(--faint);}

/* dashboard */
.stats{display:grid; grid-template-columns:repeat(6,1fr); gap:10px; margin-bottom:18px;}
.stat{padding:12px 14px; border-radius:var(--r); background:var(--surface); border:1px solid var(--line); text-decoration:none; color:var(--ink);}
.stat:hover{border-color:var(--line-2); color:var(--ink);}
.stat.on{border-color:var(--ink); box-shadow:inset 0 0 0 1px var(--ink);}
.stat .n{font-family:'Lora',serif; font-size:24px; font-weight:700; line-height:1.1;}
.stat .l{font-size:12px; color:var(--muted); margin-top:3px; display:flex; align-items:center; gap:6px;}
@media (max-width:900px){.stats{grid-template-columns:repeat(3,1fr);}}
.filters{display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:12px;}
.filters input[type=text]{max-width:280px;}
.callout{border-left:4px solid var(--warn); background:var(--warn-soft); border-radius:0 var(--r) var(--r) 0; padding:12px 16px; margin-bottom:18px;}
.callout h3{font-size:15px; margin-bottom:6px;}
.callout ul{margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:6px;}
.callout li{display:flex; justify-content:space-between; gap:10px; align-items:center; flex-wrap:wrap;}
.empty{padding:40px 20px; text-align:center; color:var(--muted);}
.empty h3{color:var(--ink); margin-bottom:6px;}

/* template picker */
.tpl-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:14px;}
.tpl{position:relative; border-radius:var(--r); overflow:hidden; background:var(--surface); border:1px solid var(--line); box-shadow:var(--shadow); display:flex; flex-direction:column; cursor:pointer;}
.tpl:hover{border-color:var(--ink);}
.tpl input{position:absolute; opacity:0;}
.tpl .ph{height:150px; background:#DDD5C8 center/cover;}
.tpl .bd{padding:12px 14px 14px;}
.tpl .nm{font-family:'Lora',serif; font-weight:700; font-size:16px;}
.tpl .meta{font-size:12.5px; color:var(--muted); margin-top:3px;}
.tpl:has(input:checked){outline:3px solid var(--red); border-color:var(--red);}
.dest-h{display:flex; align-items:center; gap:10px; margin:22px 0 10px;}
.dest-h .sw{width:12px; height:12px; border-radius:3px;}

/* steps */
.stepper{display:flex; gap:6px; margin-bottom:20px; flex-wrap:wrap;}
.stepper a,.stepper span{display:flex; align-items:center; gap:8px; padding:7px 12px 7px 8px; border-radius:99px; font-size:13px; text-decoration:none; color:var(--muted); background:var(--surface); border:1px solid var(--line);}
.stepper .n{width:22px; height:22px; border-radius:50%; background:#EFEAE2; color:var(--muted); display:flex; align-items:center; justify-content:center; font-weight:600; font-size:12px;}
.stepper .on{color:var(--ink); border-color:var(--ink); font-weight:600;}
.stepper .on .n{background:var(--red); color:#fff;}
.stepper .done .n{background:var(--jade); color:#fff;}
.builder{display:grid; grid-template-columns:minmax(0,1fr) 380px; gap:22px; align-items:start;}
.builder .aside{position:sticky; top:18px;}
@media (max-width:1100px){.builder{grid-template-columns:1fr;} .builder .aside{position:static;}}
.summary dl{display:grid; grid-template-columns:auto 1fr; gap:6px 14px; margin:0; font-size:13px;}
.summary dt{color:var(--muted);} .summary dd{margin:0; font-weight:500;}

/* hotel choice */
.city-block{padding:16px 0; border-top:1px solid var(--line);}
.city-block:first-child{border-top:0; padding-top:0;}
.hotel-opts{display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:10px; margin-top:8px;}
.hopt{display:flex; gap:10px; align-items:center; border:1px solid var(--line); border-radius:9px; padding:8px; cursor:pointer; background:#fff;}
.hopt:hover{border-color:var(--line-2);}
.hopt:has(input:checked){border-color:var(--red); box-shadow:inset 0 0 0 1px var(--red); background:#FFFBFA;}
.hopt input{accent-color:var(--red);}
.hopt .th{width:64px; height:46px; border-radius:6px; background:#E8E1D6 center/cover; flex:none;}
.hopt b{display:block; font-size:13px; line-height:1.3;}
.hopt .stars{color:var(--gold); font-size:11px;}
.price-input{display:flex; align-items:center; gap:0; max-width:260px;}
.price-input span{background:var(--surface-2); border:1px solid var(--line-2); border-right:0; border-radius:8px 0 0 8px; padding:8px 12px; font-weight:600;}
.price-input input{border-radius:0 8px 8px 0; font-size:18px; font-weight:600;}

/* day editor */
.days{display:flex; flex-direction:column; gap:14px;}
.day-ed{background:var(--surface); border:1px solid var(--line); border-radius:var(--r); overflow:hidden;}
.day-ed > summary{list-style:none; display:flex; align-items:center; gap:12px; padding:12px 16px; cursor:pointer; background:var(--surface-2);}
.day-ed > summary::-webkit-details-marker{display:none;}
.day-ed .dn{font-family:'Lora',serif; font-weight:700; font-style:italic; color:var(--red); font-size:20px; min-width:46px;}
.day-ed .dt{font-weight:600; flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.day-ed .tools{display:flex; gap:4px;}
.day-ed .body{padding:14px 16px 18px; display:grid; grid-template-columns:1fr 1fr; gap:12px 16px;}
.day-ed .body .full{grid-column:1/-1;}
@media (max-width:700px){.day-ed .body{grid-template-columns:1fr;}}
.photo-slots{display:flex; gap:10px; flex-wrap:wrap;}
.slot{width:150px; height:100px; border-radius:8px; border:1.5px dashed var(--line-2); background:var(--surface-2) center/cover no-repeat; display:flex; align-items:flex-end; justify-content:space-between; padding:6px; cursor:pointer; position:relative;}
.slot.has{border-style:solid; border-color:transparent;}
.slot .add{position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:12.5px; color:var(--muted); font-weight:500;}
.slot.has .add{display:none;}
.slot .x{background:rgba(0,0,0,.6); color:#fff; border:0; border-radius:6px; font-size:11px; padding:2px 7px; cursor:pointer; display:none;}
.slot.has .x{display:inline-block;}
.slot.wide{width:260px; height:140px;}

/* image picker modal */
.modal-bg{position:fixed; inset:0; background:rgba(20,16,12,.55); z-index:50; display:flex; align-items:center; justify-content:center; padding:20px;}
.modal{background:var(--surface); border-radius:14px; width:min(1000px,100%); max-height:90vh; display:flex; flex-direction:column; overflow:hidden; box-shadow:0 20px 60px rgba(0,0,0,.35);}
.modal-h{display:flex; align-items:center; justify-content:space-between; padding:14px 18px; border-bottom:1px solid var(--line); gap:12px;}
.modal-f{display:flex; gap:10px; flex-wrap:wrap; padding:12px 18px; border-bottom:1px solid var(--line); background:var(--surface-2); align-items:center;}
.modal-f input,.modal-f select{width:auto; min-width:140px; font-size:13px; padding:6px 9px;}
.modal-b{overflow:auto; padding:14px 18px; flex:1;}
.pick-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px;}
.pick{border-radius:8px; overflow:hidden; border:2px solid transparent; cursor:pointer; background:#F1ECE4; position:relative;}
.pick img{width:100%; height:100px; object-fit:cover; display:block;}
.pick .cap{font-size:11.5px; padding:4px 6px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.pick .k{position:absolute; top:5px; left:5px; background:rgba(0,0,0,.6); color:#fff; font-size:10px; padding:1px 6px; border-radius:4px; text-transform:uppercase; letter-spacing:.06em;}
.pick:hover{border-color:var(--line-2);}
.pick.sel{border-color:var(--red);}
.upload-row{display:flex; gap:8px; flex-wrap:wrap; align-items:center; padding:12px 18px; border-top:1px solid var(--line); background:var(--surface-2);}
.upload-row input,.upload-row select{width:auto; font-size:13px; padding:6px 9px;}

/* detail */
.detail{display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:22px; align-items:start;}
@media (max-width:1100px){.detail{grid-template-columns:1fr;}}
.preview-frame{width:100%; height:78vh; border:1px solid var(--line); border-radius:var(--r); background:#E9E4DB;}
.panel{margin-bottom:14px;}
.panel h3{margin-bottom:10px;}
.timeline-log{list-style:none; margin:0; padding:0; font-size:12.8px;}
.timeline-log li{padding:7px 0; border-bottom:1px solid var(--line); display:flex; flex-direction:column;}
.timeline-log li:last-child{border-bottom:0;}
.timeline-log .a{font-weight:600; text-transform:capitalize;}
.status-banner{display:flex; gap:14px; align-items:center; justify-content:space-between; flex-wrap:wrap; padding:14px 18px; border-radius:var(--r); margin-bottom:16px; border:1px solid var(--line); background:var(--surface);}
.status-banner.changes{background:var(--bad-soft); border-color:#F3C3BC;}
.status-banner.submitted{background:var(--warn-soft); border-color:#F0D9A6;}
.status-banner.approved{background:var(--ok-soft); border-color:#BFE3CE;}
.copy-row{display:flex; gap:6px;} .copy-row input{font-size:12.5px;}

/* library */
.lib-dest{margin-bottom:24px;}
.lib-dest .hd{display:flex; align-items:center; gap:12px; flex-wrap:wrap; justify-content:space-between; margin-bottom:10px;}
.tcard{display:grid; grid-template-columns:120px 1fr auto; gap:14px; align-items:center; padding:10px; border-bottom:1px solid var(--line);}
.tcard:last-child{border-bottom:0;}
.tcard .ph{width:120px; height:78px; border-radius:7px; background:#DDD5C8 center/cover;}
@media (max-width:700px){.tcard{grid-template-columns:80px 1fr;} .tcard .ph{width:80px; height:60px;} .tcard .act{grid-column:1/-1;}}
.img-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:12px;}
.img-card{background:#fff; border:1px solid var(--line); border-radius:9px; overflow:hidden;}
.img-card img{width:100%; height:130px; object-fit:cover; display:block;}
.img-card .m{padding:8px 10px; font-size:12px;}
.img-card .m b{display:block; font-size:12.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.editor-nav{display:flex; gap:6px; flex-wrap:wrap; position:sticky; top:0; z-index:5; background:var(--ground); padding:8px 0; margin-bottom:6px;}
.editor-nav a{font-size:12.5px; padding:5px 10px; border-radius:99px; background:var(--surface); border:1px solid var(--line); text-decoration:none; color:var(--ink);}
.city-row{display:grid; grid-template-columns:1.2fr 80px 90px 1.6fr 120px 36px; gap:8px; align-items:end; margin-bottom:8px;}
@media (max-width:800px){.city-row{grid-template-columns:1fr 1fr;}}
.login{min-height:100%; display:grid; grid-template-columns:1.1fr 1fr;}
.login .art{background:#222 center/cover; position:relative;}
.login .art::after{content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,.1),rgba(0,0,0,.55));}
.login .art .q{position:absolute; left:40px; right:40px; bottom:40px; color:#fff; z-index:1; font-family:'Lora',serif; font-size:30px; line-height:1.2; font-weight:700;}
.login .art .q small{display:block; font-family:'Poppins'; font-size:12px; letter-spacing:.2em; text-transform:uppercase; font-weight:500; margin-bottom:10px; opacity:.85;}
.login .form{display:flex; align-items:center; justify-content:center; padding:32px 20px; background:var(--surface);}
.login .box{width:100%; max-width:360px; display:flex; flex-direction:column; gap:16px;}
.login .box img{height:34px; align-self:flex-start;}
@media (max-width:800px){.login{grid-template-columns:1fr;} .login .art{min-height:200px;}}
.stats{grid-template-columns:repeat(7,1fr);}
@media (max-width:1000px){.stats{grid-template-columns:repeat(4,1fr);}}
@media (max-width:560px){.stats{grid-template-columns:repeat(2,1fr);}}
