/* Aviatrip v9.0.1 — modern tourism agency cards + compact directory hero.
   Scope: homepage agency carousel and /travel-agencies only. */

.v42-operators *,
.op742-hero *,
.op742-catalog *{box-sizing:border-box}

/* --------------------------------------------------------------------------
   Homepage — larger, readable and balanced agency cards
   -------------------------------------------------------------------------- */
.v42-operators{
  padding:82px 0 88px;
  background:
    radial-gradient(circle at 8% 6%,rgba(18,129,211,.07),transparent 26%),
    radial-gradient(circle at 92% 86%,rgba(20,165,132,.07),transparent 28%),
    linear-gradient(180deg,#f8fbfe 0%,#fff 48%,#f8fbfd 100%);
}
.v42-operators__head{align-items:end;gap:28px;margin-bottom:34px}
.v42-operators__heading{max-width:800px}
.v42-operators__heading h2{margin:10px 0 11px;font-size:clamp(34px,3.4vw,49px);line-height:1.1;letter-spacing:-1.45px}
.v42-operators__heading p{max-width:700px;color:#637386;font-size:14px;line-height:1.72}
.v42-operators__controls{gap:10px}
.v42-operators__controls button,
.v42-operators__controls>a{height:50px;border-radius:15px}
.v42-operators__controls button{width:50px}
.v42-operators__controls>a{padding:0 18px;font-size:12px}
.v42-operators__track{gap:22px!important;padding:5px 3px 30px}

.v51-operator-card.v42-operator-card{
  flex:0 0 calc((100% - 66px)/4)!important;
  min-width:270px!important;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid #dce5ed;
  border-radius:27px;
  background:#fff;
  box-shadow:0 20px 52px rgba(20,49,78,.10);
}
.v51-operator-card.v42-operator-card:hover{transform:translateY(-7px);border-color:#bdd6e8;box-shadow:0 30px 68px rgba(20,49,78,.16)}
.v51-operator-card.is-premium-operator{border-color:#ead78f;box-shadow:0 22px 56px rgba(151,111,12,.16)}

.v51-operator-card .v42-operator-card__cover{
  height:218px!important;
  flex:none;
  background-position:center;
  transition:transform .35s ease,filter .35s ease;
}
.v51-operator-card:hover .v42-operator-card__cover{filter:saturate(1.05)}
.v51-operator-card .v42-operator-card__cover:before{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:54%;
  z-index:1;
  background:linear-gradient(180deg,transparent,rgba(5,24,42,.74));
  pointer-events:none;
}
.v51-operator-card .v42-operator-card__cover .v42-operator-card__role,
.v51-operator-card .v42-operator-card__verified,
.v51-operator-card .v50-operator-premium{
  top:14px!important;
  min-height:31px;
  padding:7px 10px!important;
  font-size:9.5px!important;
  line-height:1!important;
  white-space:nowrap;
}
.v51-operator-card .v42-operator-card__cover .v42-operator-card__role{
  left:14px!important;
  max-width:54%;
  overflow:hidden;
  text-overflow:ellipsis;
}
.v51-operator-card .v42-operator-card__verified,
.v51-operator-card .v50-operator-premium{right:14px!important;max-width:42%}
.v51-operator-card .v42-operator-card__verified i{width:17px;height:17px;font-size:9px}
.v51-operator-card .v42-operator-card__tour-count{
  left:auto!important;
  right:16px;
  bottom:16px!important;
  z-index:3;
  min-height:39px;
  padding:7px 11px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:13px;
  background:rgba(5,25,44,.64);
  backdrop-filter:blur(10px);
  font-size:10px!important;
}
.v51-operator-card .v42-operator-card__tour-count b{font-size:22px!important}

.v51-operator-card .v42-operator-card__body{
  flex:1;
  display:flex;
  flex-direction:column;
  padding:0 20px 21px!important;
}
.v51-operator-card .v42-operator-card__identity{
  display:grid!important;
  grid-template-columns:72px minmax(0,1fr)!important;
  align-items:end!important;
  gap:14px!important;
  margin-top:-36px!important;
}
.v51-operator-card .v42-operator-card__avatar{
  width:72px!important;
  height:72px!important;
  flex-basis:72px!important;
  border-width:5px!important;
  border-radius:22px!important;
  font-size:27px!important;
}
.v51-operator-card .v42-operator-card__identity>div{
  display:block!important;
  min-width:0;
  min-height:69px;
  padding:38px 0 0!important;
}
.v51-operator-card .v42-operator-card__identity h3{
  display:block;
  margin:0!important;
  overflow:hidden;
  color:#122b45;
  font-size:20px!important;
  line-height:1.25!important;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.v51-operator-card .v42-operator-card__identity small{
  display:block;
  margin-top:5px;
  overflow:hidden;
  color:#718195;
  font-size:11.5px;
  line-height:1.35;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.v51-operator-card .op760-home-rating{margin-top:6px;font-size:12px;line-height:1.2}
.v51-operator-card .v42-operator-card__button{
  width:100%;
  height:52px!important;
  display:flex;
  flex:none;
  align-items:center;
  justify-content:space-between;
  margin-top:17px!important;
  padding:0 9px 0 17px!important;
  border:0;
  border-radius:15px!important;
  background:linear-gradient(135deg,#073f72,#0c82cf);
  color:#fff;
  font-size:12.5px!important;
  letter-spacing:.01em;
  box-shadow:0 13px 26px rgba(6,92,157,.20);
}
.v51-operator-card .v42-operator-card__button b{
  width:35px!important;
  height:35px!important;
  border-radius:11px!important;
  background:rgba(255,255,255,.15);
  font-size:15px;
}

/* --------------------------------------------------------------------------
   Agency directory — smaller branded hero
   -------------------------------------------------------------------------- */
.op742-hero{
  padding:38px 0 36px;
  background:
    radial-gradient(circle at 88% 8%,rgba(84,215,255,.24),transparent 28%),
    radial-gradient(circle at 5% 100%,rgba(49,105,255,.20),transparent 31%),
    linear-gradient(132deg,#061a30 0%,#074b7d 58%,#0686a7 100%);
}
.op742-hero__grid{opacity:.09;background-size:38px 38px}
.op742-hero__inner{grid-template-columns:minmax(0,1.4fr) minmax(330px,.6fr);gap:36px}
.op742-breadcrumb{margin-bottom:13px;font-size:11px}
.op742-kicker{padding:6px 10px;font-size:10px;letter-spacing:.07em}
.op742-kicker i{width:19px;height:19px;font-size:10px}
.op742-hero__copy h1{
  max-width:780px;
  margin:13px 0 10px;
  font-size:clamp(34px,4vw,49px);
  line-height:1.09;
  letter-spacing:-.045em;
}
.op742-hero__copy>p{max-width:760px;font-size:14px;line-height:1.66}
.op742-hero__actions{gap:10px;margin-top:19px}
.op742-btn{min-height:45px;padding:0 16px;border-radius:13px;font-size:12px}
.op742-btn--primary{box-shadow:0 12px 27px rgba(0,0,0,.18)}

.op742-stats{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  padding:11px;
  border-radius:20px;
  box-shadow:0 19px 48px rgba(0,0,0,.20);
}
.op742-stats article{
  min-width:0;
  min-height:98px;
  flex-direction:column;
  justify-content:center;
  gap:7px;
  padding:11px 7px;
  border-radius:14px;
  text-align:center;
}
.op742-stats article>span{width:34px;height:34px;flex-basis:34px;border-radius:11px;font-size:15px}
.op742-stats strong{font-size:22px;line-height:1}
.op742-stats small{font-size:9px;line-height:1.35}
.op742-stats>p{grid-column:1/-1;margin:2px 3px 0;font-size:10px;line-height:1.45}

/* --------------------------------------------------------------------------
   Agency directory — larger cards, no text/button overlap
   -------------------------------------------------------------------------- */
.op742-catalog{padding:56px 0 74px;background:linear-gradient(180deg,#f3f8fc 0,#fff 30%)}
.op742-catalog__head{align-items:center;margin-bottom:31px}
.op742-catalog__head h2{font-size:34px}
.op742-search label,.op742-search button,.op742-search>a{min-height:52px}
.op742-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:25px}
.op742-card{
  min-width:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border-color:#d8e4ed;
  border-radius:27px;
  box-shadow:0 17px 43px rgba(20,50,80,.095);
}
.op742-card:hover{transform:translateY(-7px);box-shadow:0 29px 60px rgba(20,50,80,.15)}
.op742-card__cover{height:228px;flex:none}
.op742-card__cover:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(115deg,rgba(255,255,255,.13),transparent 38%);
  pointer-events:none;
}
.op742-card__verified,.op742-card__premium,.op742-card__count{z-index:2;font-size:10.5px}
.op742-card__verified{top:15px;left:15px;min-height:32px;padding:7px 11px}
.op742-card__premium{top:15px;right:15px;min-height:32px;padding:7px 11px}
.op742-card__count{right:15px;bottom:15px;min-height:39px;padding:8px 12px}
.op742-card__count strong{font-size:16px}
.op742-card__body{
  flex:1;
  display:flex;
  flex-direction:column;
  padding:0 22px 22px;
}
.op742-card__identity{gap:14px;margin-top:-32px}
.op742-card__avatar{
  width:72px;
  height:72px;
  flex:0 0 72px;
  border-width:5px;
  border-radius:21px;
  font-size:27px;
}
.op742-card__identity>div{min-width:0;padding-top:36px}
.op742-card__identity h3{
  overflow:hidden;
  font-size:21px;
  line-height:1.25;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.op742-card__identity small{margin-top:5px;font-size:11px}
.op742-card__body>p{
  display:-webkit-box;
  min-height:73px;
  margin:19px 0 16px;
  overflow:hidden;
  color:#5f7286;
  font-size:13.5px;
  line-height:1.75;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
}
.op760-card-trust{
  min-height:47px;
  margin:0 0 16px;
  padding:11px 0;
  color:#596d83;
  font-size:11.5px;
}
.op742-card__footer{
  min-height:52px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  margin-top:auto;
  padding-top:16px;
}
.op742-card__footer>span{min-width:0;font-size:11px;line-height:1.45}
.op742-card__footer>a{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 13px;
  border-radius:12px;
  background:linear-gradient(135deg,#0866ac,#0b87d6);
  color:#fff;
  font-size:11.5px;
  white-space:nowrap;
  box-shadow:0 10px 20px rgba(8,105,177,.18);
}
.op742-card__footer>a:hover{transform:translateY(-1px);box-shadow:0 13px 26px rgba(8,105,177,.24)}
.op742-card__footer>a b{font-size:14px}

/* Dark mode */
html[data-theme=dark] .v42-operators{background:linear-gradient(180deg,#081321,#0c1725 50%,#081321)}
html[data-theme=dark] .v51-operator-card.v42-operator-card,
html[data-theme=dark] .op742-card{border-color:#273b50;background:#101d2c;box-shadow:0 18px 48px rgba(0,0,0,.24)}
html[data-theme=dark] .v51-operator-card .v42-operator-card__identity h3,
html[data-theme=dark] .op742-card__identity h3 a{color:#edf5ff}
html[data-theme=dark] .v51-operator-card .v42-operator-card__identity small,
html[data-theme=dark] .op742-card__identity small,
html[data-theme=dark] .op742-card__body>p{color:#a5b5c7}
html[data-theme=dark] .op742-card__footer{border-color:#26384b}

@media(max-width:1180px){
  .v51-operator-card.v42-operator-card{flex-basis:calc((100% - 44px)/3)!important}
  .op742-hero__inner{grid-template-columns:minmax(0,1fr) 350px;gap:28px}
}

@media(max-width:960px){
  .v51-operator-card.v42-operator-card{flex-basis:calc((100% - 22px)/2)!important}
  .op742-hero__inner{grid-template-columns:1fr;gap:22px}
  .op742-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .op742-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:700px){
  .v42-operators{padding:58px 0 64px}
  .v42-operators__head{margin-bottom:24px}
  .v42-operators__heading h2{font-size:31px;line-height:1.15;letter-spacing:-.8px}
  .v42-operators__heading p{font-size:13px;line-height:1.65}
  .v42-operators__controls{display:grid;grid-template-columns:45px 45px minmax(0,1fr);width:100%;margin-top:17px}
  .v42-operators__controls button{width:45px;height:45px}
  .v42-operators__controls>a{height:45px;justify-content:center;margin:0;padding:0 12px;font-size:11px}
  .v51-operator-card.v42-operator-card{flex-basis:88%!important;min-width:286px!important;border-radius:24px}
  .v51-operator-card .v42-operator-card__cover{height:215px!important}
  .v51-operator-card .v42-operator-card__body{padding:0 18px 19px!important}
  .v51-operator-card .v42-operator-card__identity{grid-template-columns:68px minmax(0,1fr)!important}
  .v51-operator-card .v42-operator-card__avatar{width:68px!important;height:68px!important;flex-basis:68px!important}
  .v51-operator-card .v42-operator-card__identity h3{font-size:19px!important}

  .op742-hero{padding:26px 0 27px}
  .op742-breadcrumb{margin-bottom:10px}
  .op742-hero__copy h1{margin:11px 0 9px;font-size:31px;line-height:1.13;letter-spacing:-.035em}
  .op742-hero__copy>p{font-size:13px;line-height:1.6}
  .op742-hero__actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:16px}
  .op742-btn{width:100%;min-height:44px;padding:0 11px;font-size:10.5px;text-align:center}
  .op742-stats{grid-template-columns:repeat(3,minmax(96px,1fr));gap:7px;overflow-x:auto;padding:9px;scrollbar-width:none}
  .op742-stats::-webkit-scrollbar{display:none}
  .op742-stats article{min-height:88px;padding:9px 5px}
  .op742-stats strong{font-size:20px}
  .op742-stats small{font-size:8.5px}
  .op742-stats>p{font-size:9.5px}

  .op742-catalog{padding:42px 0 57px}
  .op742-catalog__head{gap:17px;margin-bottom:23px}
  .op742-catalog__head h2{font-size:29px}
  .op742-grid{grid-template-columns:1fr;gap:20px}
  .op742-card{border-radius:24px}
  .op742-card__cover{height:220px}
  .op742-card__body{padding:0 19px 20px}
  .op742-card__body>p{min-height:auto;font-size:13px}
  .op742-card__footer{grid-template-columns:1fr auto}
}

@media(max-width:430px){
  .v51-operator-card.v42-operator-card{flex-basis:92%!important;min-width:275px!important}
  .v51-operator-card .v42-operator-card__cover .v42-operator-card__role{max-width:52%;font-size:8.8px!important}
  .v51-operator-card .v42-operator-card__verified,
  .v51-operator-card .v50-operator-premium{max-width:43%;font-size:8.8px!important}
  .op742-hero__actions{grid-template-columns:1fr}
  .op742-card__verified,.op742-card__premium{font-size:9.5px}
  .op742-card__footer{grid-template-columns:1fr}
  .op742-card__footer>a{width:100%;min-height:45px}
  .op742-card__footer>span{text-align:center}
  .op760-card-trust{align-items:flex-start;flex-direction:column;gap:5px}
}
