/* Accepted photo-half layout: every fact remains attached to its own offer. */
.country-offer.card {
  --offer-ink: #172b4d;
  --offer-muted: #526176;
  --offer-blue: #2156b8;
  --offer-price: #17458f;
  color: var(--offer-ink);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 2px 10px #172b4d05;
  overflow: hidden;
}

.city-hotel-carousel > .country-offer.card,
.city-showcase-focus .city-hotel-carousel > .country-offer.card {
  flex: 0 0 min(320px, calc((100% - 10px) / 1.5));
  min-width: 0;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  min-height: 0;
}

.city-hotel-carousel:has(> .country-offer.card) { align-items: flex-start; }

.country-offer.card .offer-photo {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  min-height: 196px;
  padding-top: 44px;
  flex-shrink: 0;
  isolation: isolate;
  overflow: hidden;
  background: #334a66;
}
.country-offer.card .offer-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, #10213900 22%, #10213916 38%, #102139c9 69%, #102139f2 100%);
}
.country-offer.card .offer-photo > img.hotel-photo,
.country-offer.card .offer-photo > .photo-missing {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover;
}
.country-offer.card .offer-photo > .photo-missing {
  display: grid;
  place-content: start center;
  padding-top: 58px;
  background: linear-gradient(145deg, #60738b, #334a66);
  color: #e3ebf7;
  font-size: 14px;
  line-height: 20px;
}
.country-offer.card .offer-photo-caption {
  margin-top: auto;
  padding: 9px 10px 8px;
  color: #fff;
  text-shadow: 0 1px 3px #10213945;
}
.country-offer.card .offer-photo-caption h3 {
  margin: 0 0 3px;
  min-height: 0;
  max-height: none;
  color: #fff;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: -.2px;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
}
.country-offer.card .offer-photo-caption .stars {
  display: block;
  min-height: 15px;
  color: #ffac4c;
  font-size: 12px;
  line-height: 15px;
  margin: 0 0 3px;
}
.country-offer.card .offer-photo-caption .offer-meta {
  min-height: 19px;
  margin: 0;
  gap: 5px;
  color: #fff;
  font-size: 10px;
  line-height: 15px;
}
.country-offer.card .offer-photo-caption .offer-meta svg { color: #fff; }

.country-offer.card .body,
.city-showcase-focus .city-hotel-carousel .country-offer.card .body {
  padding: 7px 10px 3px !important;
  min-width: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.country-offer.card .stars {
  font-size: 12px;
  line-height: 16px;
  color: #c64624;
  letter-spacing: 1px;
}

.country-offer.card .hotel-highlight {
  left: 8px;
  top: 8px;
  max-width: calc(100% - 53px);
  padding: 4px 7px;
  min-height: 24px;
  border-radius: 8px;
  font-size: 10px;
  line-height: 14px;
  box-shadow: 0 1px 6px #172b4d12;
}
.country-offer.card .hotel-highlight-lowest { background: #fff1e9; color: #99401f; }
.country-offer.card .hotel-highlight-value { background: #e9f0ff; color: #204d91; }
.country-offer.card .hotel-highlight-upgrade { background: #eef1f5; color: #46566c; border-color: #e0e5ed; }

.country-offer.card .heart {
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 3px;
  right: 8px;
  top: 8px;
  border-radius: 50%;
  background: #fff;
  color: var(--offer-blue);
  font-size: 18px;
  box-shadow: 0 1px 7px #172b4d12;
}

.country-offer .offer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-height: 23px;
  margin-bottom: 5px;
  color: var(--offer-muted);
  font-size: 10px;
  line-height: 15px;
}
.country-offer .offer-meta > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.country-offer .offer-meta svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--offer-blue); }

.country-offer .offer-services {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  padding: 3px 0;
  margin: 0 0 4px;
  border-top: 1px solid #eef1f5;
  height: auto;
  min-height: 33px;
  flex-shrink: 0;
}
.country-offer .offer-service {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  font-size: 10px;
  line-height: 14px;
  color: var(--offer-muted);
}
.country-offer .offer-service + .offer-service { border-left: 1px solid #eef1f5; padding-left: 5px; }
.country-offer .offer-service svg { flex: 0 0 15px; width: 15px; height: 15px; margin-top: 1px; color: var(--offer-blue); }
.country-offer .offer-service > span { min-width: 0; overflow-wrap: anywhere; }
.country-offer .service-meal > span {
  display: block;
  max-height: none;
  overflow: visible;
}
.country-offer .offer-service small.status {
  display: block;
  color: var(--offer-muted);
  font-size: 9px;
  line-height: 12px;
  margin: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.country-offer .offer-room.offer-service {
  width: 100%;
  gap: 6px;
  align-items: flex-start;
  padding: 4px 7px;
  margin: 0 0 4px;
  border: 1px solid #e9eef5;
  border-radius: 7px;
  background: #f5f8fc;
  font-size: 10px;
  line-height: 14px;
  color: var(--offer-muted);
}
.country-offer .offer-room.offer-service > span {
  display: block;
  min-width: 0;
  max-height: none;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
  -webkit-line-clamp: unset;
}
.country-offer .offer-room.offer-service > svg { margin-top: 0; align-self: center; }
.country-offer .offer-room .room-label { display: block; font-size: 9px; font-weight: 400; line-height: 11px; color: var(--offer-muted); margin: 0; }
.country-offer .offer-room strong { display: block; font-size: 11px; font-weight: 600; line-height: 14px; color: var(--offer-ink); }

.country-offer .offer-flight-block { border: 1px solid #e5edf9; border-radius: 9px; background: #f0f5ff; }
.country-offer.card .offer-flight-block .offer-flight-strip { min-height: 30px; padding: 3px 6px; border: 0; background: transparent; }
.country-offer.card .offer-flight-block .offer-flight-strip:hover { background: #e7effe; }
.country-offer.card .offer-flight-block .offer-airline-brand > img { height: 20px !important; width: 82px !important; }
.country-offer.card small.offer-baggage { display: block; margin: -1px 5px 3px; color: var(--offer-muted); font-size: 9px; line-height: 11px; text-align: center; overflow-wrap: anywhere; }

.country-offer.card .offer-flight-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  padding: 6px 7px;
  min-height: 36px;
  border: 1px solid #e5edf9;
  border-radius: 9px;
  margin-top: 0;
  background: #f0f5ff;
  color: var(--offer-blue);
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  line-height: 14px;
}
.country-offer.card .offer-flight-strip:hover { background: #e7effe; }
.country-offer .offer-flight-strip > svg { width: 15px; height: 15px; flex: 0 0 15px; }
.country-offer .offer-airline-brand { display: flex; align-items: center; min-width: 0; flex: 1; gap: 4px; }
.country-offer.card .offer-airline-brand > img {
  display: block;
  object-fit: contain !important;
  object-position: left center;
  width: 86px !important;
  max-width: 100%;
  height: 22px !important;
  min-height: 0 !important;
  background: transparent;
}
.country-offer .offer-airline-brand > span { min-width: 0; font-size: 9px; line-height: 12px; overflow-wrap: anywhere; }
.country-offer .flight-strip-label { flex-shrink: 0; font-size: 10px; white-space: nowrap; }
.country-offer .offer-flight-strip .chevron { width: 13px; height: 13px; flex-basis: 13px; }

.country-offer.card .offer-price,
.city-showcase-focus .city-hotel-carousel .country-offer.card .offer-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin: 0;
  padding: 3px 10px 7px;
  border-top: 0;
  border-left: 0;
  color: var(--offer-muted);
}
.country-offer.card .offer-fare { min-width: 0; }
.country-offer.card .offer-price .price {
  font-size: 26px;
  line-height: 29px;
  letter-spacing: -.75px;
  color: var(--offer-price);
  white-space: nowrap;
  margin: 0 0 2px;
}
.country-offer.card .offer-price small.price-state,
.country-offer.card .offer-total {
  display: block;
  font-size: 9px;
  font-weight: 400;
  line-height: 11px;
  margin: 0;
  color: var(--offer-muted);
}
.country-offer.card .offer-price .details-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  width: auto;
  min-height: 36px;
  margin: 0;
  padding: 7px 9px;
  border-radius: 9px;
  background: #e9f0ff;
  color: var(--offer-blue);
  font-size: 10px;
  line-height: 14px;
}
.country-offer.card .details-action:hover { background: #dde9ff; }
.country-offer.card .details-action svg { width: 14px; height: 14px; }

/* The city page repeats exactly the same offer information at a wider size. */
.city-hotel-list > .country-offer.card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 160px;
  align-items: stretch;
  margin-bottom: 12px;
}
.city-hotel-list > .country-offer.card > .offer-photo {
  height: 100%;
  min-height: 196px;
}
.city-hotel-list > .country-offer.card .offer-price { flex-direction: column; justify-content: center; align-items: flex-start; padding: 12px; border-left: 1px solid #eef1f5; }
.city-hotel-list > .country-offer.card .offer-price .details-action { width: 100%; margin-top: 8px; }
.city-hotel-list > .country-offer.card .offer-services { height: auto; min-height: 33px; }

.phone-mode .city-hotel-list > .country-offer.card {
  display: flex;
  flex-direction: column;
}
.phone-mode .city-hotel-list > .country-offer.card > .offer-photo { height: auto; min-height: 196px; }
.phone-mode .city-hotel-list > .country-offer.card .offer-price { flex-direction: row; align-items: center; padding: 8px 10px 10px; border-left: 0; }
.phone-mode .city-hotel-list > .country-offer.card .offer-price .details-action { width: auto; margin: 0; }

/* Flight disclosure: readable itinerary, local times and clear close controls. */
dialog.offer-flight-dialog {
  width: min(420px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  padding: 0;
  border: 1px solid #dce5f2;
  border-radius: 16px;
  color: #172b4d;
  background: #fff;
  box-shadow: 0 12px 48px #172b4d26;
}
dialog.offer-flight-dialog[open] { display: flex; flex-direction: column; }
dialog.offer-flight-dialog::backdrop { background: #14223c80; }
.offer-flight-dialog .flight-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; padding: 11px 14px 7px; margin: 0; }
.offer-flight-dialog .flight-dialog-title { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.offer-flight-dialog .flight-dialog-title > svg { width: 19px; height: 19px; flex-shrink: 0; color: #2156b8; }
.offer-flight-dialog .flight-dialog-heading h2 { margin: 0; font-size: 18px; line-height: 24px; letter-spacing: -.3px; }
.offer-flight-dialog .flight-dialog-heading button { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; min-height: 32px; padding: 5px; border-radius: 50%; color: #526176; background: #f0f5ff; }
.offer-flight-dialog .flight-dialog-heading button:hover { background: #e4edfc; }
.offer-flight-dialog .flight-dialog-heading button svg { width: 18px; height: 18px; }
.offer-flight-dialog .flight-dialog-context { flex-shrink: 0; padding: 0 14px 9px; border-bottom: 1px solid #e8edf5; }
.offer-flight-dialog .flight-offer-name { margin: 0 0 2px; font-size: 11px; font-weight: 600; line-height: 15px; color: #172b4d; overflow-wrap: anywhere; }
.offer-flight-dialog .flight-offer-meta { display: flex; flex-wrap: wrap; gap: 2px 5px; font-size: 10px; line-height: 15px; color: #526176; }
.offer-flight-dialog .flight-dialog-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px 14px; scrollbar-width: thin; scrollbar-color: #bdcce2 transparent; }
.offer-flight-dialog .flight-common-carrier { display: flex; align-items: center; gap: 8px; min-height: 27px; margin: 0 0 8px; color: #172b4d; font-size: 12px; line-height: 17px; font-weight: 600; overflow-wrap: anywhere; }
.offer-flight-dialog .flight-common-carrier > img { width: 110px; height: 25px; flex-shrink: 0; object-fit: contain; object-position: left center; }
.offer-flight-dialog .flight-itinerary { display: grid; gap: 8px; }
.offer-flight-dialog .flight-leg-card { padding: 10px; margin: 0; border: 1px solid #e3eaf4; border-radius: 11px; background: #f5f8fc; }
.offer-flight-dialog .flight-leg-heading { display: grid; grid-template-columns: auto auto minmax(0,1fr); align-items: center; gap: 6px; margin: 0 0 6px; }
.offer-flight-dialog .flight-leg-heading h3 { margin: 0; padding: 2px 6px; border-radius: 5px; color: #204d91; background: #e6eefb; font-size: 10px; font-weight: 650; line-height: 16px; }
.offer-flight-dialog .flight-number { font-size: 10px; line-height: 16px; color: #526176; overflow-wrap: anywhere; }
.offer-flight-dialog .flight-carrier { display: flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; margin: 0; color: #172b4d; font-size: 10px; line-height: 14px; font-weight: 600; overflow-wrap: anywhere; }
.offer-flight-dialog .flight-carrier > img { width: 82px; max-width: 100%; height: 20px; object-fit: contain; object-position: right center; }
.offer-flight-dialog .flight-carrier > span { min-width: 0; overflow-wrap: anywhere; }
.offer-flight-dialog .flight-route { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: start; gap: 8px; }
.offer-flight-dialog .flight-stop { display: flex; flex-direction: column; min-width: 0; max-width: none; }
.offer-flight-dialog .flight-stop:last-child { text-align: right; }
.offer-flight-dialog .flight-stop .time { color: #17458f; font-size: 25px; line-height: 30px; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.offer-flight-dialog .flight-stop .airport { display: block; float: none; margin-top: 1px; color: #526176; font-size: 10.5px; line-height: 14px; overflow-wrap: anywhere; }
.offer-flight-dialog .flight-stop small.date { padding: 0; min-height: 0; margin-top: 2px; border: 0; border-radius: 0; background: transparent; color: #526176; font-size: 10px; line-height: 14px; white-space: normal; overflow-wrap: anywhere; }
.offer-flight-dialog .flight-route > svg { width: 20px; height: 20px; margin-top: 5px; color: #2156b8; }
.offer-flight-dialog .flight-leg-meta { display: flex; flex-wrap: wrap; gap: 4px 5px; margin-top: 8px; color: #526176; font-size: 10px; line-height: 14px; }
.offer-flight-dialog .flight-leg-meta > span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; padding: 3px 5px; border: 1px solid #e4eaf3; border-radius: 6px; background: #fff; overflow-wrap: anywhere; }
.offer-flight-dialog .flight-leg-meta svg { width: 12px; height: 12px; flex-shrink: 0; color: #2156b8; }
.offer-flight-dialog .flight-transfer { display: grid; grid-template-columns: 16px auto minmax(0,1fr); align-items: start; gap: 6px; padding: 8px 9px; margin-top: 8px; border: 1px solid #e2eaf7; border-radius: 9px; background: #eef4ff; font-size: 10px; line-height: 15px; color: #526176; }
.offer-flight-dialog .flight-transfer > svg { width: 16px; height: 16px; color: #2156b8; }
.offer-flight-dialog .flight-transfer > strong { color: #172b4d; font-size: 10px; font-weight: 600; }
.offer-flight-dialog .flight-transfer > span { min-width: 0; overflow-wrap: anywhere; }
.offer-flight-dialog .flight-state { padding: 10px 12px; margin: 0; border-radius: 10px; background: #f0f5ff; font-size: 12px; line-height: 18px; color: #526176; }
.offer-flight-dialog .flight-state > svg { display: inline-block; width: 18px; height: 18px; margin-right: 6px; vertical-align: -4px; color: #2156b8; }
.offer-flight-dialog .flight-state > button { display: block; margin-top: 8px; padding: 7px 12px; min-height: 34px; font-size: 12px; }
.offer-flight-dialog .flight-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; margin: 0; padding: 9px 14px 11px; border-top: 1px solid #e8edf5; background: #fff; }
.offer-flight-dialog .flight-dialog-footer small { display: block; min-width: 0; margin: 0; color: #526176; font-size: 10px; line-height: 14px; }
.offer-flight-dialog .flight-dialog-footer button { width: auto; min-width: 100px; min-height: 36px; padding: 7px 18px; border-radius: 9px; background: #2156b8; color: #fff; font-size: 12px; line-height: 18px; }
.offer-flight-dialog .flight-dialog-footer button:hover { background: #17458f; }
.offer-flight-dialog button:focus-visible { outline: 3px solid #86a7df; outline-offset: 2px; }

@media (max-width: 720px) {
  .city-hotel-list > .country-offer.card { display: flex; flex-direction: column; }
  .city-hotel-list > .country-offer.card > .offer-photo { height: auto; min-height: 196px; }
  .city-hotel-list > .country-offer.card .offer-price { flex-direction: row; align-items: center; padding: 8px 10px 10px; border-left: 0; }
  .city-hotel-list > .country-offer.card .offer-price .details-action { width: auto; margin: 0; }
}

@media (max-width: 360px) {
  .city-hotel-carousel > .country-offer.card .offer-price { gap: 4px; padding-left: 8px; padding-right: 8px; }
  .city-hotel-carousel > .country-offer.card .offer-price .price { font-size: 20px; letter-spacing: -.6px; }
  .city-hotel-carousel > .country-offer.card .offer-price .details-action { padding: 7px 6px; font-size: 9px; gap: 2px; }
  .city-hotel-carousel > .country-offer.card .offer-flight-strip { flex-wrap: wrap; gap: 3px 5px; }
  .city-hotel-carousel > .country-offer.card .offer-airline-brand { flex: 1 1 calc(100% - 42px); }
}

@media (prefers-reduced-motion: reduce) {
  .city-hotel-carousel { scroll-behavior: auto; }
}
