/* AVIATRIP TOUR LOCATION + CURRENCY V9.2.1 */

/* Tour builder: keep the destination picker on its own full-width row. */
.agency-tour-form__grid>.tour-location-picker{
  grid-column:1/-1!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:2px 0 5px!important;
  box-sizing:border-box!important;
}
.agency-tour-form__grid>.tour-location-picker .tour-location-picker__grid{
  grid-template-columns:minmax(250px,.82fr) minmax(360px,1.18fr)!important;
  gap:14px!important;
}
.admin-form-grid>.tour-location-admin-field-v921{
  grid-column:1/-1!important;
  display:block!important;
  width:100%!important;
  min-width:0!important;
}
.admin-form-grid>.tour-location-admin-field-v921>.tour-location-picker{
  width:100%!important;
  max-width:none!important;
  margin-top:7px!important;
}
.admin-form-grid>.tour-location-admin-field-v921>.tour-location-picker .tour-location-picker__grid{
  grid-template-columns:minmax(250px,.82fr) minmax(360px,1.18fr)!important;
  gap:14px!important;
}
.tour-location-picker .tour-location-results{z-index:420!important}

/* Shared GEL / USD segmented control. */
.tour-currency-switch-v921{
  display:inline-flex;
  align-items:center;
  gap:3px;
  width:max-content;
  padding:3px;
  border:1px solid #d9e4f0;
  border-radius:11px;
  background:#f2f6fb;
  box-shadow:inset 0 1px 2px rgba(12,43,77,.04);
}
.tour-currency-switch-v921 button{
  display:grid;
  min-width:38px;
  height:27px;
  place-items:center;
  padding:0 7px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#65778b;
  font:900 9px/1 "Noto Sans Georgian",system-ui,sans-serif;
  letter-spacing:.01em;
  cursor:pointer;
  transition:background .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.tour-currency-switch-v921 button:hover{color:#0b66c8;background:#e6f1ff}
.tour-currency-switch-v921 button.is-active,
.tour-currency-switch-v921 button[aria-pressed="true"]{
  color:#fff;
  background:linear-gradient(135deg,#0b78ef,#0758bd);
  box-shadow:0 5px 12px rgba(8,100,211,.24);
}
.tour-currency-switch-v921 button[data-tour-currency-option="USD"].is-active,
.tour-currency-switch-v921 button[data-tour-currency-option="USD"][aria-pressed="true"]{
  background:linear-gradient(135deg,#159565,#08744d);
  box-shadow:0 5px 12px rgba(8,116,77,.22);
}
.tour-currency-switch-v921.is-loading{opacity:.67;pointer-events:none}
.tour-currency-switch-v921.is-unavailable{opacity:.55}

/* Tour cards. */
.v6-tour-card__footer{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:12px!important;
}
.v6-tour-card__footer>.tour-card-price-v921{
  display:grid;
  min-width:0;
  gap:6px;
}
.tour-card-price-v921__amount{
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:4px;
  min-width:0;
}
.v6-tour-card__footer .tour-card-price-v921__amount strong{
  display:block!important;
  min-width:0;
  margin:0!important;
  color:#102b49!important;
  font-size:19px!important;
  line-height:1.05!important;
  letter-spacing:-.02em;
  white-space:nowrap;
}
.v6-tour-card__footer .tour-card-price-v921__amount small{
  color:#8391a2!important;
  font-size:8px!important;
  font-weight:850!important;
  white-space:nowrap;
}
.tour-currency-switch-v921--card{padding:2px;border-radius:9px}
.tour-currency-switch-v921--card button{min-width:31px;height:23px;padding:0 5px;border-radius:7px;font-size:8px}
.v6-tour-card__footer>a{flex:0 0 auto!important}

/* Tour detail prices: V9.1 premium view and legacy view compatibility. */
.tour-detail-price-v921{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:end;
  column-gap:12px;
  row-gap:5px;
}
.tour-detail-price-v921>small:first-child{grid-column:1/-1}
.tour-detail-price-v921>strong{min-width:0}
.tour-detail-price-v921>.tour-currency-switch-v921{grid-column:2;grid-row:2;align-self:center}
.tour-detail-price-v921>.tour-price-note-v921{grid-column:1/-1!important;margin-top:2px!important}
.tour-price-note-v921 em{color:inherit;font-style:normal}
.atd910-booking-card__top.tour-detail-price-v921 strong,
.v6-tour-price-card .tour-detail-price-v921 strong,
.v6-booking-price.tour-detail-price-v921 strong{
  display:block;
  margin:5px 0 0;
}
.atd910-booking-card__top.tour-detail-price-v921>span,
.v6-tour-price-card .tour-detail-price-v921>span{
  grid-column:1/-1;
}

.tour-mobile-price-v921{
  display:grid!important;
  grid-template-columns:auto auto;
  align-items:center;
  gap:2px 8px;
  min-width:0;
}
.tour-mobile-price-v921>small{grid-column:1;grid-row:1}
.tour-mobile-price-v921>strong{grid-column:1;grid-row:2;min-width:0;white-space:nowrap}
.tour-mobile-price-v921>.tour-currency-switch-v921{grid-column:2;grid-row:1/3;align-self:center}
.tour-mobile-price-v921 .tour-currency-switch-v921 button{min-width:29px;height:24px;padding:0 4px;font-size:8px}

@media(max-width:900px){
  .agency-tour-form__grid>.tour-location-picker .tour-location-picker__grid,
  .admin-form-grid>.tour-location-admin-field-v921>.tour-location-picker .tour-location-picker__grid{
    grid-template-columns:minmax(210px,.78fr) minmax(280px,1.22fr)!important;
  }
}
@media(max-width:720px){
  .agency-tour-form__grid>.tour-location-picker,
  .admin-form-grid>.tour-location-admin-field-v921{grid-column:1/-1!important}
  .agency-tour-form__grid>.tour-location-picker .tour-location-picker__grid,
  .admin-form-grid>.tour-location-admin-field-v921>.tour-location-picker .tour-location-picker__grid{
    grid-template-columns:1fr!important;
    gap:11px!important;
  }
  .tour-location-picker{padding:14px!important}
  .v6-tour-card__footer{gap:9px!important}
  .v6-tour-card__footer .tour-card-price-v921__amount strong{font-size:18px!important}
  .tour-currency-switch-v921--card button{min-width:30px}
  .atd910-mobile-booking,
  .v6-mobile-booking{gap:9px!important}
}
@media(max-width:390px){
  .v6-tour-card__footer{align-items:stretch!important;flex-direction:column!important}
  .v6-tour-card__footer>a{width:100%!important;justify-content:center!important}
  .tour-card-price-v921{grid-template-columns:1fr auto;align-items:center}
  .tour-card-price-v921__amount{grid-column:1}
  .tour-card-price-v921>.tour-currency-switch-v921{grid-column:2}
  .tour-mobile-price-v921{gap:2px 5px}
  .tour-mobile-price-v921 .tour-currency-switch-v921 button{min-width:27px}
}
@media(prefers-reduced-motion:reduce){.tour-currency-switch-v921 button{transition:none!important}}
