/* travelprime - базовые стили портала (светлая тема) */
:root{
  --tp-bg:#F1F5F9;
  --tp-card:#FFFFFF;
  --tp-line:#E2E8F0;
  --tp-dash:#CBD5E1;
  --tp-text:#0F172A;
  --tp-text2:#475569;
  --tp-muted:#94A3B8;
  --tp-accent:#378ADD;
  --tp-accent-h:#2A74C2;
  --tp-accent-d:#185FA5;
  --tp-soft:#DCEFFB;
  --tp-hot:#D85A30;
  --tp-good:#0F6E56;
  --tp-good-bg:#E1F5EE;
  --tp-radius:12px;
  --tp-font:'Montserrat',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
}

/* фон всей страницы на страницах офферов */
body.single-deals,body.tax-deal_type,body.post-type-archive-deals,
body.single-deals #wrapper,body.tax-deal_type #wrapper,body.post-type-archive-deals #wrapper,
body.single-deals #main,body.tax-deal_type #main,body.post-type-archive-deals #main{background:var(--tp-bg) !important}

.tp-page,.tp-page *{box-sizing:border-box}
.tp-page{overflow-x:clip}
.tp-page img{max-width:100%}
.tp-page{font-family:var(--tp-font);color:var(--tp-text);background:transparent;padding:24px 0 48px}
.tp-wrap{max-width:1180px;margin:0 auto;padding:0 16px}
.tp-h1{font-family:var(--tp-font);font-size:28px;font-weight:600;margin:0 0 20px;color:var(--tp-text)}
.tp-h2{font-family:var(--tp-font);font-size:22px;font-weight:600;margin:36px 0 16px;color:var(--tp-text)}
.tp-feed{display:flex;flex-direction:column;gap:16px}

/* герой раздела */
.tp-banner{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);background:var(--tp-soft);border-radius:var(--tp-radius);overflow:hidden;min-height:300px}
.tp-banner__text{padding:36px 40px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:14px}
.tp-banner__title{font-family:var(--tp-font);font-size:36px;font-weight:600;line-height:1.15;margin:0;color:var(--tp-text)}
.tp-banner__sub{font-size:15px;line-height:1.5;color:var(--tp-text2);margin:0;max-width:440px}
.tp-banner__stat{font-size:15px;color:var(--tp-text2);display:flex;flex-wrap:wrap;align-items:baseline;column-gap:5px}
.tp-banner__stat b{font-size:22px;font-weight:600;color:var(--tp-accent-d)}
.tp-banner__img{position:relative;min-height:300px}
.tp-banner__img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

/* спецпредложения */
.tp-mini-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.tp-mini{display:block;background:var(--tp-card);border:1px solid var(--tp-line);border-radius:var(--tp-radius);padding:18px 20px;text-decoration:none;color:inherit;transition:border-color .15s}
.tp-mini:hover{border-color:var(--tp-accent)}
.tp-mini__route{font-size:16px;font-weight:500;color:var(--tp-text);margin-bottom:10px}
.tp-mini__line{font-size:14px;color:var(--tp-text2)}
.tp-mini__line span{color:var(--tp-accent-d);font-weight:600}

/* выходные */
.tp-weekend{display:grid;grid-template-columns:280px minmax(0,1fr);gap:24px;align-items:center;background:var(--tp-soft);border-radius:var(--tp-radius);padding:28px;margin-top:36px}
.tp-weekend__text p{font-size:14px;color:var(--tp-text2);margin:0;line-height:1.5}
.tp-weekend__list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.tp-wk{display:flex;gap:12px;align-items:center;background:var(--tp-card);border-radius:10px;padding:10px;text-decoration:none;color:inherit}
.tp-wk img{width:72px;height:72px;border-radius:8px;object-fit:cover;flex-shrink:0}
.tp-wk__route{font-size:14px;font-weight:500;color:var(--tp-accent-d);line-height:1.3}
.tp-wk__date{font-size:12px;color:var(--tp-text2);margin:2px 0}
.tp-wk__price{font-size:16px;font-weight:600;color:var(--tp-text)}

/* направления: плавное затемнение сверху вниз, без жёсткой границы */
.tp-dest-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.tp-dest{position:relative;display:block;height:170px;border-radius:var(--tp-radius);overflow:hidden;text-decoration:none}
.tp-dest img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s}
.tp-dest:hover img{transform:scale(1.04)}
.tp-dest:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(15,23,42,.78) 0%,rgba(15,23,42,.35) 45%,rgba(15,23,42,0) 70%);pointer-events:none}
.tp-dest__cap{position:absolute;left:0;right:0;bottom:0;z-index:1;padding:12px 14px;text-align:left;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.4)}
.tp-dest__city{font-size:20px;font-weight:600;line-height:1.2}
.tp-dest__price{font-size:13px;font-weight:500;margin-top:2px}

/* баннер в ленте (tp-banner.php) */
.tp-promo{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:center;background:linear-gradient(135deg,var(--tp-accent-d) 0%,var(--tp-accent) 100%);border-radius:var(--tp-radius);padding:24px 28px;color:#fff;text-decoration:none}
.tp-promo__title{font-size:20px;font-weight:600;line-height:1.25;margin:0 0 6px;color:#fff}
.tp-promo__sub{font-size:14px;line-height:1.5;margin:0;color:rgba(255,255,255,.88)}
.tp-promo__btn{display:inline-block;background:#fff;color:var(--tp-accent-d) !important;border-radius:8px;padding:11px 22px;font-family:var(--tp-font);font-size:15px;font-weight:600;text-decoration:none !important;white-space:nowrap;transition:background .15s}
.tp-promo:hover .tp-promo__btn{background:var(--tp-soft)}

/* аэропорты */
.tp-air-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.tp-air{background:var(--tp-card);border:1px solid var(--tp-line);border-radius:var(--tp-radius);padding:20px}
.tp-air__head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding-bottom:12px;margin-bottom:12px;border-bottom:1px dashed var(--tp-dash)}
.tp-air__name{font-size:18px;font-weight:600;color:var(--tp-text)}
.tp-air__where{font-size:12px;color:var(--tp-muted);margin-top:2px}
.tp-air__code{font-size:22px;font-weight:600;color:var(--tp-accent-d)}
.tp-page .tp-air__ways{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;font-size:13px;line-height:1.45;color:var(--tp-text2)}
.tp-page .tp-air__ways b{color:var(--tp-text);font-weight:500}
.tp-page .tp-air__way{display:flex;align-items:flex-start;gap:8px;margin:0;padding:0}
.tp-page .tp-air__txt{flex:1 1 auto;min-width:0}
.tp-air__logo{height:18px;width:auto;flex-shrink:0;margin-top:1px}
.tp-air__ico{flex-shrink:0;color:var(--tp-accent-d);margin-top:1px}
.tp-page .tp-air__txt a{color:var(--tp-accent-d);font-weight:500;text-decoration:none}
.tp-page .tp-air__txt a:hover{text-decoration:underline}
.tp-page a.tp-air__route{flex:0 0 auto;margin-left:auto;display:inline-block;font-size:12px;font-weight:500;line-height:1.4;color:var(--tp-accent-d) !important;background:#fff;border:1px solid var(--tp-accent);border-radius:6px;padding:3px 10px;text-decoration:none !important;white-space:nowrap;transition:background .15s,color .15s}
.tp-page a.tp-air__route:hover{background:var(--tp-accent);color:#fff !important}

/* карточка-билет (лента) */
.tp-card{display:grid;grid-template-columns:260px minmax(0,1fr) 220px;background:var(--tp-card);border:1px solid var(--tp-line);border-radius:var(--tp-radius);text-decoration:none;color:inherit;transition:border-color .15s}
.tp-card:hover{border-color:var(--tp-dash)}

.tp-card__photo{padding:10px}
.tp-card__img{position:relative;height:170px;border-radius:10px;overflow:hidden;background:#DCE9F7;display:flex;align-items:center;justify-content:center;color:#85B7EB}
.tp-card__img img{width:100%;height:100%;object-fit:cover;display:block}
.tp-card__img svg{width:40px;height:40px}
.tp-badges{position:absolute;top:8px;left:8px;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.tp-badge{font-size:12px;line-height:1;padding:5px 10px;border-radius:14px;background:#fff;color:var(--tp-text)}
.tp-badge--hot{background:var(--tp-hot);color:#fff}
.tp-badge--best{background:var(--tp-good-bg);color:var(--tp-good);margin-left:8px;font-size:11px}

.tp-card__body{padding:16px 20px;display:flex;flex-direction:column;justify-content:center;gap:14px;min-width:0}
.tp-route{display:flex;align-items:flex-start;gap:14px}
.tp-point{min-width:0}
.tp-point__lbl{font-size:11px;letter-spacing:.05em;color:var(--tp-muted);text-transform:uppercase}
.tp-point__code{font-size:28px;font-weight:600;line-height:1.1;color:var(--tp-text)}
.tp-point__city{font-size:13px;color:var(--tp-text2)}
.tp-point--to{text-align:right}
.tp-route__line{flex:1;display:flex;align-items:center;gap:8px;color:var(--tp-accent);font-size:18px;margin-top:22px;min-width:24px}
.tp-route__line:before,.tp-route__line:after{content:"";flex:1;border-top:1px dashed var(--tp-dash)}
.tp-meta{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:13px;color:var(--tp-text2);margin:0;padding:0;list-style:none}

.tp-card__stub{position:relative;border-left:1.5px dashed var(--tp-dash);padding:16px;display:flex;flex-direction:column;justify-content:center;gap:10px}
.tp-card__stub:before,.tp-card__stub:after{content:"";position:absolute;left:-10px;width:18px;height:18px;border-radius:50%;background:var(--tp-bg);border:1px solid var(--tp-line)}
.tp-card__stub:before{top:-10px;clip-path:inset(50% 0 0 0)}
.tp-card__stub:after{bottom:-10px;clip-path:inset(0 0 50% 0)}
.tp-chip{text-align:center;font-size:12px;color:var(--tp-accent-d);border:1px solid var(--tp-accent);border-radius:8px;padding:5px}
.tp-price__lbl{font-size:11px;color:var(--tp-muted)}
.tp-price{font-size:26px;font-weight:600;color:var(--tp-accent-d);line-height:1.15;white-space:nowrap}
.tp-price--na{font-size:16px;font-weight:500}
.tp-more{font-size:12px;color:var(--tp-text2)}

.tp-btn{display:block;text-align:center;background:var(--tp-accent);color:#fff !important;border:0;border-radius:8px;padding:11px 14px;font-family:var(--tp-font);font-size:15px;font-weight:500;text-decoration:none !important;cursor:pointer;transition:background .15s}
.tp-btn:hover{background:var(--tp-accent-h)}
.tp-card:hover .tp-btn{background:var(--tp-accent-h)}
.tp-btn--sm{display:inline-block;padding:8px 16px;font-size:14px}
.tp-btn--inline{display:inline-block;padding:12px 24px}

/* лендинг оффера */
.tp-crumbs{font-size:13px;color:var(--tp-muted);margin-bottom:12px;display:flex;flex-wrap:wrap;gap:6px}
.tp-crumbs a{color:var(--tp-text2);text-decoration:none}
.tp-crumbs a:hover{color:var(--tp-accent)}
.tp-notice{background:#FAEEDA;color:#633806;border-radius:10px;padding:12px 16px;font-size:14px;margin-bottom:16px}
.tp-notice a{color:#633806;font-weight:500}

.tp-offer{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:start}
.tp-offer__main{display:flex;flex-direction:column;gap:16px;min-width:0}
.tp-offer__side{position:sticky;top:100px}
.tp-hero{height:320px;border-radius:var(--tp-radius);overflow:hidden;background:#DCE9F7}
.tp-hero img{width:100%;height:100%;object-fit:cover;display:block}
.tp-box{background:var(--tp-card);border:1px solid var(--tp-line);border-radius:var(--tp-radius);padding:20px}
.tp-stub{display:flex;flex-direction:column;gap:12px}
.tp-stub .tp-price{font-size:30px}

.tp-vars{display:flex;flex-direction:column}
.tp-var{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:16px;padding:12px 0;border-top:1px solid var(--tp-line)}
.tp-var:first-child{border-top:0;padding-top:0}
.tp-var__date{font-size:15px;color:var(--tp-text)}
.tp-var__price{font-size:17px;font-weight:600;color:var(--tp-accent-d);white-space:nowrap}
.tp-var--best .tp-var__price{color:var(--tp-good)}
.tp-disclaimer{font-size:12px;color:var(--tp-muted);margin:0}

/* планшет */
@media (max-width:900px){
  .tp-card{grid-template-columns:200px minmax(0,1fr) 190px}
  .tp-card__img{height:150px}
  .tp-point__code{font-size:24px}
  .tp-route__line{margin-top:19px}
  .tp-offer{grid-template-columns:1fr}
  .tp-offer__side{position:static;order:-1}
  .tp-hero{height:240px}
  .tp-weekend{grid-template-columns:1fr}
  .tp-weekend__list{grid-template-columns:1fr}
  .tp-banner__title{font-size:28px}
  .tp-air-grid{grid-template-columns:1fr}
}

/* мобильный */
@media (max-width:640px){
  .tp-banner{grid-template-columns:1fr}
  .tp-banner__img{min-height:180px;order:-1}
  .tp-banner__text{padding:24px 20px}
  .tp-banner__title{font-size:24px}
  .tp-mini-grid{grid-template-columns:1fr}
  .tp-dest-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tp-dest{height:130px}
  .tp-dest__city{font-size:17px}
  .tp-weekend{padding:20px}
  .tp-promo{grid-template-columns:1fr;gap:14px;padding:20px}
  .tp-promo__title{font-size:18px}
  .tp-promo__btn{display:block;text-align:center}
  .tp-wrap{padding:0 12px}
  .tp-h2{font-size:19px;margin:28px 0 12px}
  .tp-banner__img{min-height:160px}
  .tp-banner__text{gap:10px}
  .tp-banner__stat b{font-size:20px}
  .tp-mini-grid{gap:8px}
  .tp-mini{padding:12px 14px}
  .tp-mini__route{font-size:15px;margin-bottom:4px}
  .tp-mini__line{font-size:13px}
  .tp-dest-grid{gap:10px}
  .tp-dest__cap{padding:10px 12px}
  .tp-card{grid-template-columns:1fr}
  .tp-card__photo{padding:8px 8px 0}
  .tp-card__img{height:auto;aspect-ratio:2 / 1}
  .tp-card__body{padding:12px 14px 14px;gap:10px}
  .tp-point__code{font-size:22px}
  .tp-point__city{font-size:12px;line-height:1.3}
  .tp-route{gap:10px}
  .tp-route__line{margin-top:17px}
  .tp-meta{font-size:12px;gap:4px 12px}
  .tp-card__stub{border-left:0;border-top:1.5px dashed var(--tp-dash);display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;row-gap:2px;align-items:center;padding:12px 14px}
  .tp-card__stub:before,.tp-card__stub:after{top:-10px;bottom:auto}
  .tp-card__stub:before{left:-10px;clip-path:inset(0 0 0 50%)}
  .tp-card__stub:after{left:auto;right:-10px;clip-path:inset(0 50% 0 0)}
  .tp-card__stub .tp-chip{grid-column:1;justify-self:start;font-size:11px;padding:2px 8px;border-radius:6px}
  .tp-card__stub .tp-price{font-size:22px}
  .tp-card__stub .tp-more{grid-column:1}
  .tp-card__stub .tp-btn{grid-column:2;grid-row:1 / span 3;align-self:center;padding:10px 20px}
  .tp-h1{font-size:22px}
  .tp-hero{height:200px}
  .tp-var{grid-template-columns:1fr auto;gap:8px 12px}
  .tp-var .tp-btn--sm{grid-column:1 / -1;display:block}
}