/* Jatour travel pages. Builds on site.css tokens. Layout: sticky header, crimson hero with overlapping search card, then content bands. */

/* header */
.o-head{position:sticky;top:0;z-index:40;background:var(--surface);border-bottom:1px solid var(--line)}
.admin-bar .o-head{top:32px}
@media (max-width:782px){.admin-bar .o-head{top:46px}}
.o-head .wrap{display:flex;align-items:center;gap:22px;padding-block:10px}
.o-nav{display:flex;gap:2px;flex-wrap:wrap}
.o-nav a{text-decoration:none;padding:7px 11px;border-radius:9px;font-size:14px;color:var(--muted);display:inline-flex;align-items:center;gap:6px}
.o-nav a:hover{color:var(--brand);background:var(--brand-soft)}
.o-nav .o-nav-gift{color:var(--brand);font-weight:600}
.o-nav .o-nav-gift svg{width:16px;height:16px}
.o-act{margin-inline-start:auto;display:flex;gap:10px;align-items:center}
.o-phone{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;color:var(--muted);direction:ltr}
.o-phone svg{width:18px;height:18px;color:var(--brand)}

/* hero + search */
.o-hero{background:linear-gradient(165deg,#8E0F3A 0%,#5E0A28 55%,#2A0613 100%);color:#fff;padding-block:44px 0;position:relative}
.o-hero::after{content:"";position:absolute;inset:auto 0 0 0;height:90px;background:var(--bg)}
.o-hero .wrap{position:relative;z-index:1}
.o-hero h1{font-size:clamp(24px,3.4vw,38px);font-weight:800;letter-spacing:-.01em}
.o-hero h1 em{font-style:normal;color:#FFC2D6}
.o-sub{margin-top:8px;color:#F1D6E0;font-size:15.5px}
.o-search{margin-top:26px;background:var(--surface);color:var(--fg);border-radius:20px;box-shadow:0 24px 60px -24px rgba(42,6,19,.55),0 0 0 1px rgba(255,255,255,.08);overflow:visible}
.o-tabs{display:flex;gap:2px;padding:8px 10px 0;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.o-tabs::-webkit-scrollbar{display:none}
.o-tab{flex:0 0 auto;display:flex;align-items:center;gap:8px;border:0;background:none;padding:12px 16px 13px;font-size:14.5px;color:var(--muted);cursor:pointer;border-bottom:3px solid transparent;margin-bottom:-1px;font-weight:500}
.o-tab svg{width:20px;height:20px}
.o-tab:hover{color:var(--fg)}
.o-tab[aria-selected="true"]{color:var(--brand);border-bottom-color:var(--brand);font-weight:700}
.o-form{padding:18px 20px 22px;display:grid;gap:14px}
.o-opts{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.o-opts .chip{padding:5px 13px;font-size:13.5px}
.o-row{display:grid;grid-template-columns:minmax(0,2.3fr) minmax(0,2fr) minmax(0,1.3fr) auto;gap:10px;align-items:stretch}
.o-row.hotel{grid-template-columns:minmax(0,2fr) minmax(0,2fr) minmax(0,1.3fr) auto}
.o-pair{display:grid;grid-template-columns:minmax(0,1fr) 0 minmax(0,1fr);gap:10px;position:relative}
.o-swap{position:absolute;inset-inline-start:50%;top:50%;transform:translate(50%,-50%);width:34px;height:34px;border-radius:50%;border:1px solid var(--line-2);background:var(--surface);display:grid;place-items:center;cursor:pointer;z-index:2;color:var(--brand)}
.o-swap:hover{border-color:var(--brand)}
.o-swap svg{width:17px;height:17px}
.o-dates{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0}
.o-dates .o-fld:first-child:not(:last-child){border-start-end-radius:0;border-end-end-radius:0}
.o-dates .o-fld+.o-fld{border-start-start-radius:0;border-end-start-radius:0;border-inline-start:0}
.o-dates .o-fld[aria-expanded="true"]{z-index:5}
.o-dates.single{grid-template-columns:1fr}
.o-fld{position:relative;display:grid;gap:1px;text-align:start;border:1px solid var(--line-2);border-radius:12px;padding:8px 14px;background:var(--surface);cursor:pointer;min-height:58px;align-content:center;min-width:0;width:100%;font:inherit;color:inherit}
.o-fld:hover,.o-fld:focus-within,.o-fld[aria-expanded="true"]{border-color:var(--brand)}
.o-fld small{font-size:12px;color:var(--faint)}
.o-fld b{font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.o-fld b.ph{color:var(--faint);font-weight:400}
.o-fld input{border:0;padding:0;background:none;font-size:15px;font-weight:600;width:100%;outline:none}
.o-fld input::placeholder{color:var(--faint);font-weight:400}
.o-go{min-width:132px;border-radius:12px;font-size:16px}
.o-err{color:var(--bad);font-size:13px}

/* dropdowns */
.o-pop{position:absolute;top:calc(100% + 6px);inset-inline-start:0;z-index:30;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);min-width:100%;max-height:330px;overflow:auto;padding:6px}
.o-pop.wide{min-width:300px}
.o-city{display:flex;justify-content:space-between;gap:12px;align-items:center;width:100%;border:0;background:none;padding:9px 10px;border-radius:9px;cursor:pointer;text-align:start;font-size:14.5px}
.o-city:hover,.o-city.act{background:var(--brand-soft)}
.o-city small{color:var(--faint);font-family:var(--f-latin);letter-spacing:.05em}
.o-city .ct{display:flex;align-items:center;gap:8px}
.o-city .ct svg{width:16px;height:16px;color:var(--faint)}
.o-pop .grp{font-size:12px;color:var(--faint);padding:8px 10px 4px}
.o-pax{display:grid;gap:4px;padding:8px 6px}
.o-pax .r{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:8px 4px}
.o-pax .r small{display:block;color:var(--faint);font-size:12px}
.o-step{display:inline-flex;align-items:center;gap:12px}
.o-step button{width:32px;height:32px;border-radius:50%;border:1px solid var(--line-2);background:var(--surface);display:grid;place-items:center;cursor:pointer;color:var(--brand)}
.o-step button:disabled{opacity:.35;cursor:not-allowed}
.o-step svg{width:16px;height:16px}
.o-step b{min-width:18px;text-align:center}
.o-pax select{margin-top:6px}

/* jalali calendar */
.o-cal{position:absolute;top:calc(100% + 6px);inset-inline-start:0;z-index:31;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:14px;width:min(340px,92vw)}
.o-cal-h{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.o-cal-h b{font-size:15px}
.o-cal-h button{width:32px;height:32px;border-radius:9px;border:0;background:var(--surface-2);cursor:pointer;display:grid;place-items:center}
.o-cal-h button:disabled{opacity:.3;cursor:not-allowed}
.o-cal-g{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;text-align:center;font-variant-numeric:tabular-nums}
.o-cal-g .wd{font-size:12px;color:var(--faint);padding:4px 0}
.o-cal-g button{border:0;background:none;height:38px;border-radius:9px;cursor:pointer;font-size:14px}
.o-cal-g button:hover:not(:disabled){background:var(--brand-soft)}
.o-cal-g button:disabled{color:var(--line-2);cursor:not-allowed}
.o-cal-g button.fri{color:var(--bad)}
.o-cal-g button.in{background:var(--brand-soft);border-radius:0}
.o-cal-g button.sel{background:var(--brand);color:#fff}
.o-cal-g button.today{box-shadow:inset 0 0 0 1px var(--brand)}
.o-cal-f{display:flex;justify-content:space-between;align-items:center;margin-top:10px;font-size:12.5px;color:var(--muted)}

/* steps band */
.o-steps{padding-block:26px 6px}
.o-steps ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;counter-reset:s;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.o-steps li{counter-increment:s;display:grid;grid-template-columns:36px 1fr;column-gap:12px;padding:18px 20px}
.o-steps li+li{border-inline-start:1px solid var(--line)}
.o-steps li::before{content:counter(s,persian);grid-row:span 2;width:36px;height:36px;border-radius:50%;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;font-weight:800}
.o-steps b{font-size:15px}
.o-steps span{color:var(--muted);font-size:13.5px;line-height:1.7}

/* routes */
.o-routes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.o-route{display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:13px 16px;cursor:pointer;text-align:start;font-size:14.5px;transition:border-color .15s,transform .15s}
.o-route:hover{border-color:var(--brand);transform:translateY(-1px)}
.o-route .rt{display:flex;align-items:center;gap:8px;font-weight:600}
.o-route .rt svg{width:15px;height:15px;color:var(--faint)}
.o-route small{color:var(--faint);font-family:var(--f-latin);font-size:11.5px;letter-spacing:.06em}

/* destination tiles */
.o-dest{background:var(--surface-2)}
.o-tiles{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:150px;gap:12px}
.o-tile{position:relative;border:0;border-radius:16px;overflow:hidden;cursor:pointer;text-align:start;padding:16px;display:flex;flex-direction:column;justify-content:flex-end;color:#fff;background:var(--g);isolation:isolate}
.o-tile::before{content:"";position:absolute;inset:0;background:var(--pat);opacity:.55;z-index:-1}
.o-tile::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(20,4,10,.55),transparent 60%);z-index:-1}
.o-tile.big{grid-column:span 2;grid-row:span 2}
.o-tile.wide{grid-column:span 2}
.o-tile b{font-size:19px;font-weight:800}
.o-tile.big b{font-size:28px}
.o-tile small{font-size:13px;opacity:.9}
.o-tile .tg{position:absolute;top:12px;inset-inline-start:12px;font-size:11.5px;background:rgba(255,255,255,.18);padding:2px 10px;border-radius:99px}
.o-tile:hover{filter:saturate(1.15)}

/* gift band */
.o-gift{padding-block:56px}
.o-gift-in{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:40px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:34px 38px}
.o-gift h2{font-size:clamp(22px,2.6vw,30px);font-weight:800}
.o-gift p{color:var(--muted);margin-block:10px 18px;max-width:52ch}
.o-gift-card{max-width:360px;justify-self:center;width:100%;transform:rotate(-5deg);--hole:var(--surface)}

/* inner pages */
.o-page{padding-block:36px 64px;min-height:60vh}
.o-box{width:100%;max-width:720px;margin-inline:auto;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:26px;display:grid;gap:16px;box-shadow:var(--shadow)}
.o-box h1{font-size:22px;font-weight:800}
.o-box h2{font-size:17px;font-weight:800}
.o-box .lead{color:var(--muted)}
.trip-app{display:grid;gap:18px}
.t-head{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.t-ic{width:48px;height:48px;border-radius:14px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;flex:none}
.t-ic svg{width:24px;height:24px}
.t-head .grow{flex:1;min-width:0}
.t-head small{color:var(--muted)}
.t-timer{display:inline-flex;align-items:center;gap:8px;background:var(--warn-bg);color:var(--warn);border-radius:12px;padding:8px 14px;font-weight:700;font-variant-numeric:tabular-nums}
.t-timer.late{background:var(--bad-bg);color:var(--bad)}
.t-timer svg{width:18px;height:18px}
.offers{display:grid;gap:10px}
.offer{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;border:1.5px solid var(--line-2);border-radius:14px;padding:14px 16px;cursor:pointer;background:var(--surface);text-align:start;width:100%;font:inherit;color:inherit}
.offer:hover{border-color:var(--brand)}
.offer[aria-pressed="true"]{border-color:var(--brand);background:var(--brand-soft)}
.offer .rd{width:20px;height:20px;border-radius:50%;border:2px solid var(--line-2);display:grid;place-items:center}
.offer[aria-pressed="true"] .rd{border-color:var(--brand)}
.offer[aria-pressed="true"] .rd::after{content:"";width:10px;height:10px;border-radius:50%;background:var(--brand)}
.offer b{font-size:15.5px}
.offer small{display:block;color:var(--muted);font-size:13px;white-space:pre-line;line-height:1.7}
.offer .pr{font-size:17px;font-weight:800;color:var(--brand);white-space:nowrap}
.pax-card{border:1px solid var(--line);border-radius:14px;padding:14px;display:grid;gap:10px}
.pax-card h3{font-size:14.5px;font-weight:700}
.g3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.docs{display:grid;gap:8px}
.docs a{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:12px;padding:12px 14px;text-decoration:none;font-weight:600}
.docs a:hover{border-color:var(--brand);color:var(--brand)}

@media (max-width:1100px){
  .o-row,.o-row.hotel{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .o-row .o-pair{grid-column:1/-1}
  .o-go{grid-column:1/-1;min-height:52px}
  .o-routes{grid-template-columns:repeat(2,minmax(0,1fr))}
  .o-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
  .o-nav{display:none}
}
@media (max-width:640px){
  .o-head .o-phone{display:none}
  .o-hero{padding-block:28px 0}
  .o-form{padding:14px 14px 18px}
  .o-row,.o-row.hotel{grid-template-columns:1fr}
  .o-pair{grid-template-columns:1fr;gap:8px}
  .o-swap{inset-inline-start:auto;inset-inline-end:14px;transform:translateY(-50%) rotate(90deg)}
  .o-steps ol{grid-template-columns:1fr}
  .o-steps li+li{border-inline-start:0;border-top:1px solid var(--line)}
  .o-routes{grid-template-columns:1fr}
  .o-tiles{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:130px}
  .o-tile.big{grid-column:span 2;grid-row:span 1}
  .o-gift-in{grid-template-columns:1fr;padding:24px}
  .o-box{padding:18px}
  .g3{grid-template-columns:1fr}
  .offer{grid-template-columns:auto 1fr}
  .offer .pr{grid-column:2}
}

#useCard{justify-self:start}
@media (max-width:640px){.o-route:nth-child(n+7){display:none}}

.o-gift-card{max-width:250px}

@media (max-width:640px){.o-head .o-track{display:none}.acc-btn{padding-inline:10px}}

/* destination photos */
.o-tile.ph-mashhad{--img:url(dest/mashhad.jpg?v=2)}
.o-tile.ph-kish{--img:url(dest/kish.jpg?v=3)}
.o-tile.ph-istanbul{--img:url(dest/istanbul.jpg?v=2)}
.o-tile.ph-shiraz{--img:url(dest/shiraz.jpg?v=2)}
.o-tile.ph-antalya{--img:url(dest/antalya.jpg?v=2)}
.o-tile.ph-isfahan{--img:url(dest/isfahan.jpg?v=2)}
.o-tile.ph-dubai{--img:url(dest/dubai.jpg?v=2)}
.o-tile.ph-qeshm{--img:url(dest/qeshm.jpg?v=2)}
.o-tile.ph::before{background:var(--img) center/cover no-repeat;opacity:1;transition:transform .5s ease}
.o-tile.ph::after{background:linear-gradient(to top,rgba(10,10,14,.82),rgba(10,10,14,.25) 55%,rgba(10,10,14,.15))}
.o-tile.ph:hover::before{transform:scale(1.06)}
.o-tile.ph .tg{background:rgba(0,0,0,.38);backdrop-filter:blur(4px)}
.o-tile.ph b,.o-tile.ph small{text-shadow:0 1px 6px rgba(0,0,0,.5)}
