/* Egessia Smart Offers 1.4.2 — scoped, bilingual, performance-focused */
.eso-page,
.eso-shortcode,
.eso-popup {
  --eso-navy: #1b215e;
  --eso-blue: #3b72e4;
  --eso-blue-dark: #2859bd;
  --eso-soft: #bfdbfe;
  --eso-soft-2: #eaf2ff;
  --eso-bg: #f7f9fd;
  --eso-surface: #ffffff;
  --eso-text: #26324f;
  --eso-muted: #667085;
  --eso-border: #dbe5f5;
  --eso-danger: #b42318;
  --eso-radius-lg: 22px;
  --eso-radius-md: 16px;
  --eso-radius-sm: 12px;
  --eso-shadow: 0 16px 42px rgba(27, 33, 94, 0.08);
  --eso-shadow-soft: 0 8px 24px rgba(27, 33, 94, 0.055);
  color: var(--eso-text);
  font-family: Inter, "Tajawal", "Cairo", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.eso-page *,
.eso-page *::before,
.eso-page *::after,
.eso-shortcode *,
.eso-shortcode *::before,
.eso-shortcode *::after,
.eso-popup *,
.eso-popup *::before,
.eso-popup *::after {
  box-sizing: border-box;
}

.eso-page {
  width: 100%;
  overflow: clip;
  background: var(--eso-bg);
}

.eso-shortcode {
  width: 100%;
}

.eso-container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.eso-section {
  padding-block: 38px;
}

.eso-page-results,
.eso-related-section {
  background: var(--eso-bg);
}

/* Hero */
.eso-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 250px;
  padding-block: 54px 44px;
  text-align: center;
  background:
    radial-gradient(circle at 12% 18%, rgba(191, 219, 254, 0.72), transparent 32%),
    radial-gradient(circle at 86% 20%, rgba(59, 114, 228, 0.13), transparent 31%),
    linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
}

.eso-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline: 10%;
  bottom: -100px;
  height: 145px;
  border-radius: 50%;
  background: rgba(59, 114, 228, 0.055);
}

.eso-kicker,
.eso-results-eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--eso-blue-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.eso-kicker {
  justify-content: center;
  min-height: 30px;
  margin-bottom: 10px;
  padding: 5px 12px;
  border: 1px solid rgba(59, 114, 228, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
}

.eso-hero h1,
.eso-section-heading h2,
.eso-results-toolbar h2 {
  margin: 0;
  color: var(--eso-navy);
  font-weight: 850;
  letter-spacing: -0.02em;
}

.eso-hero h1 {
  font-size: clamp(29px, 4vw, 44px);
  line-height: 1.22;
}

.eso-hero p {
  max-width: 670px;
  margin: 12px auto 0;
  color: var(--eso-muted);
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.8;
}

.eso-campaign-hero.has-image {
  color: #ffffff;
  background: var(--eso-navy);
}

.eso-campaign-hero.has-image::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(27, 33, 94, 0.88), rgba(27, 33, 94, 0.66));
}

.eso-campaign-hero.has-image .eso-hero-bg {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.eso-campaign-hero.has-image .eso-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eso-campaign-hero.has-image h1,
.eso-campaign-hero.has-image p {
  color: #ffffff;
}

.eso-campaign-hero.has-image .eso-kicker {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
}

/* Offers browser */
.eso-offers-browser {
  width: 100%;
}

.eso-offers-layout {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.eso-filter-panel {
  position: sticky;
  top: 104px;
  overflow: hidden;
  border: 1px solid var(--eso-border);
  border-radius: var(--eso-radius-lg);
  background: var(--eso-surface);
  box-shadow: var(--eso-shadow-soft);
}

.eso-filter-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 18px;
  border: 0;
  background: transparent;
  color: var(--eso-navy);
  font: inherit;
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
}

.eso-filter-panel-body {
  padding: 19px;
}

.eso-filter-group + .eso-filter-group {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #edf2f8;
}

.eso-filter-group h3 {
  margin: 0 0 10px;
  color: var(--eso-navy);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.4;
}

.eso-filter-option {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 39px;
  align-items: center;
  gap: 9px;
  margin: 3px 0;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--eso-text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  text-align: start;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.eso-filter-option::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border: 2px solid #a8b6cc;
  border-radius: 50%;
  background: transparent;
}

.eso-filter-option:hover {
  border-color: rgba(59, 114, 228, 0.18);
  background: var(--eso-bg);
  color: var(--eso-navy);
}

.eso-filter-option.is-active {
  border-color: rgba(59, 114, 228, 0.2);
  background: var(--eso-soft-2);
  color: var(--eso-navy);
}

.eso-filter-option.is-active::before {
  border-color: var(--eso-blue);
  background: var(--eso-blue);
  box-shadow: 0 0 0 3px rgba(59, 114, 228, 0.12);
}

.eso-filter-reset {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 10px 12px;
  border: 1px solid var(--eso-border);
  border-radius: 11px;
  background: #ffffff;
  color: var(--eso-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
}

.eso-filter-reset:hover {
  border-color: rgba(59, 114, 228, 0.35);
  color: var(--eso-navy);
}

.eso-results-shell {
  min-width: 0;
}

.eso-results-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  margin-bottom: 17px;
}

.eso-results-toolbar h2 {
  margin-top: 4px;
  font-size: clamp(23px, 2.5vw, 31px);
  line-height: 1.3;
}

.eso-filter-status {
  min-height: 20px;
  color: var(--eso-muted);
  font-size: 12px;
  font-weight: 700;
}

.eso-results {
  min-height: 180px;
  transition: opacity 150ms ease;
}

.eso-offers-browser.is-loading .eso-results {
  opacity: 0.48;
  pointer-events: none;
}

.eso-empty {
  display: flex;
  min-height: 170px;
  align-items: center;
  justify-content: center;
  padding: 28px;
  border: 1px dashed #c8d6ea;
  border-radius: var(--eso-radius-lg);
  background: rgba(255, 255, 255, 0.72);
  color: var(--eso-muted);
  font-size: 14px;
  font-weight: 750;
  text-align: center;
}

/* Grids */
.eso-campaign-grid,
.eso-offers-grid {
  display: grid;
  gap: 16px;
  align-items: stretch;
}

.eso-columns-1 { grid-template-columns: minmax(0, 1fr); }
.eso-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.eso-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.eso-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Compact offer cards */
.eso-offer-card {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--eso-border);
  border-radius: 18px;
  background: var(--eso-surface);
  box-shadow: 0 6px 18px rgba(27, 33, 94, 0.045);
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.eso-offer-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 114, 228, 0.32);
  box-shadow: var(--eso-shadow-soft);
}

.eso-offer-card-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--eso-soft-2);
  text-decoration: none !important;
}

.eso-offer-card-image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  object-fit: cover;
  transition: transform 230ms ease;
}

.eso-offer-card:hover .eso-offer-card-image img {
  transform: scale(1.018);
}

.eso-chip {
  position: absolute;
  z-index: 2;
  inset-inline-start: 10px;
  top: 10px;
  max-width: calc(100% - 20px);
  overflow: hidden;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--eso-navy);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eso-placeholder,
.eso-campaign-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 150px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(191, 219, 254, 0.72), #ffffff);
  color: var(--eso-navy);
  font-size: 25px;
  font-weight: 850;
}

.eso-offer-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 15px;
  text-align: start;
}

.eso-offer-card h3 {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.75em;
  margin: 0 0 6px;
  color: var(--eso-navy);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.eso-offer-card h3 a {
  color: inherit !important;
  text-decoration: none !important;
}

.eso-card-desc {
  display: -webkit-box;
  overflow: hidden;
  min-height: 3.2em;
  margin: 0 0 8px;
  color: var(--eso-muted);
  font-size: 12px;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.eso-price-line {
  display: flex;
  min-height: 28px;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  margin: 3px 0 12px;
}

.eso-price-line del {
  color: #98a2b3;
  font-size: 12px;
}

.eso-price-line strong {
  color: var(--eso-navy);
  font-size: 18px;
  font-weight: 850;
}

.eso-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 8px;
  margin-top: auto;
}

.eso-link,
.eso-btn,
.eso-secondary-btn {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-decoration: none !important;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.eso-link {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--eso-border);
  background: #ffffff;
  color: var(--eso-navy) !important;
  font-size: 12px;
}

.eso-link:hover {
  border-color: rgba(59, 114, 228, 0.35);
  background: var(--eso-bg);
}

.eso-btn {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--eso-blue);
  background: var(--eso-blue);
  color: #ffffff !important;
  box-shadow: none;
  font-size: 12px;
  cursor: pointer;
}

.eso-btn:hover {
  border-color: var(--eso-blue-dark);
  background: var(--eso-blue-dark);
  transform: translateY(-1px);
}

.eso-btn-disabled {
  border-color: #d0d5dd;
  background: #eaecf0;
  color: #667085 !important;
  cursor: not-allowed;
}

/* Legacy horizontal filter, retained for backward compatibility */
.eso-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 18px;
  padding: 9px;
  border: 1px solid var(--eso-border);
  border-radius: 15px;
  background: #ffffff;
}

.eso-filter-title {
  flex: 0 0 auto;
  padding-inline: 7px;
  color: var(--eso-navy);
  font-size: 13px;
  font-weight: 850;
}

.eso-filter-scroll {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.eso-filter-scroll::-webkit-scrollbar { display: none; }

.eso-filter-link {
  flex: 0 0 auto;
  min-height: 35px;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--eso-bg);
  color: var(--eso-navy) !important;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none !important;
  white-space: nowrap;
}

.eso-filter-link.active {
  border-color: var(--eso-blue);
  background: var(--eso-blue);
  color: #ffffff !important;
}

/* Campaign cards used by campaign-only shortcodes */
.eso-campaign-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--eso-border);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(27, 33, 94, 0.045);
}

.eso-campaign-link {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none !important;
}

.eso-campaign-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--eso-soft-2);
}

.eso-campaign-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eso-campaign-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 33, 94, 0.02), rgba(27, 33, 94, 0.78));
}

.eso-campaign-content {
  position: absolute;
  z-index: 2;
  inset-inline: 0;
  bottom: 0;
  padding: 15px;
  text-align: start;
}

.eso-campaign-content span {
  display: block;
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 700;
}

.eso-campaign-content h3 {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.35;
}

/* Single offer */
.eso-single-hero {
  padding-block: 46px;
  background: linear-gradient(180deg, #ffffff, #f5f8ff);
}

.eso-single-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 42px;
  align-items: center;
}

.eso-single-media {
  min-width: 0;
}

.eso-main-offer-img,
.eso-single-placeholder {
  display: block;
  width: 100%;
  max-height: 560px;
  aspect-ratio: 4 / 3;
  border-radius: var(--eso-radius-lg);
  object-fit: cover;
  box-shadow: var(--eso-shadow);
}

.eso-offer-gallery {
  display: flex;
  gap: 9px;
  margin-top: 11px;
  overflow-x: auto;
}

.eso-offer-gallery a {
  flex: 0 0 72px;
  overflow: hidden;
  border: 1px solid var(--eso-border);
  border-radius: 11px;
}

.eso-offer-gallery img {
  display: block;
  width: 72px;
  height: 62px;
  object-fit: cover;
}

.eso-breadcrumb-like {
  margin-bottom: 11px;
  color: var(--eso-muted);
  font-size: 12px;
  font-weight: 700;
}

.eso-breadcrumb-like a {
  color: var(--eso-blue-dark) !important;
  text-decoration: none !important;
}

.eso-single-content h1 {
  margin: 0 0 10px;
  color: var(--eso-navy);
  font-size: clamp(31px, 4.2vw, 49px);
  font-weight: 850;
  line-height: 1.2;
}

.eso-subtitle {
  margin: 0 0 10px;
  color: var(--eso-blue-dark);
  font-size: 15px;
  font-weight: 800;
}

.eso-lead {
  margin: 0 0 16px;
  color: var(--eso-muted);
  font-size: 15px;
  line-height: 1.85;
}

.eso-single-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 11px;
  margin: 16px 0;
}

.eso-single-price del {
  color: #98a2b3;
  font-size: 16px;
}

.eso-single-price strong {
  color: var(--eso-navy);
  font-size: clamp(29px, 4vw, 39px);
  font-weight: 850;
}

.eso-single-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  scroll-margin-top: 120px;
}

.eso-large-btn,
.eso-secondary-btn {
  min-height: 48px;
  padding: 12px 23px;
  font-size: 14px;
}

.eso-secondary-btn {
  border: 1px solid var(--eso-border);
  background: #ffffff;
  color: var(--eso-navy) !important;
}

.eso-secondary-btn:hover {
  border-color: rgba(59, 114, 228, 0.36);
  background: var(--eso-bg);
}

.eso-ended-badge {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #fee4e2;
  color: var(--eso-danger);
  font-size: 12px;
  font-weight: 850;
}

.eso-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.eso-panel,
.eso-sticky-box {
  border: 1px solid var(--eso-border);
  border-radius: var(--eso-radius-lg);
  background: #ffffff;
  box-shadow: 0 7px 22px rgba(27, 33, 94, 0.045);
}

.eso-panel {
  margin-bottom: 17px;
  padding: 23px;
}

.eso-panel h2 {
  margin: 0 0 11px;
  color: var(--eso-navy);
  font-size: 22px;
  font-weight: 850;
  line-height: 1.35;
}

.eso-panel p,
.eso-wp-content {
  color: var(--eso-text);
  font-size: 14px;
  line-height: 1.9;
}

.eso-wp-content > :first-child { margin-top: 0; }
.eso-wp-content > :last-child { margin-bottom: 0; }

.eso-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.eso-list li {
  position: relative;
  padding-block: 8px;
  padding-inline-start: 28px;
  border-bottom: 1px solid #eef2f8;
  color: var(--eso-text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.7;
}

.eso-list li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  top: 9px;
  display: inline-flex;
  width: 19px;
  height: 19px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--eso-soft-2);
  color: var(--eso-blue-dark);
  font-size: 10px;
  font-weight: 900;
}

.eso-list li:last-child { border-bottom: 0; }

.eso-sticky-box {
  position: sticky;
  top: 104px;
  padding: 20px;
}

.eso-sticky-box h3 {
  margin: 0 0 9px;
  color: var(--eso-navy);
  font-size: 18px;
  font-weight: 850;
}

.eso-side-price {
  margin-bottom: 13px;
  color: var(--eso-navy);
  font-size: 25px;
  font-weight: 850;
}

.eso-side-btn {
  width: 100%;
  margin-bottom: 13px;
}

.eso-related-line {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eef2f8;
  color: var(--eso-text);
  font-size: 12px;
  line-height: 1.75;
}

.eso-related-line a {
  color: var(--eso-blue-dark) !important;
  font-weight: 800;
  text-decoration: none !important;
}

.eso-faq-item {
  overflow: hidden;
  margin: 8px 0;
  border: 1px solid var(--eso-border);
  border-radius: 13px;
  background: var(--eso-bg);
}

.eso-faq-item summary {
  padding: 13px 15px;
  color: var(--eso-navy);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.eso-faq-item p {
  margin: 0;
  padding: 0 15px 14px;
}

/* Popup */
.eso-popup {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.eso-popup.is-visible { display: flex; }
body.eso-popup-open { overflow: hidden; }

.eso-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.64);
  backdrop-filter: blur(4px);
}

.eso-popup-box {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  overflow: hidden;
  width: min(820px, 100%);
  max-height: min(88vh, 700px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 23px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
}

.eso-popup-close {
  position: absolute;
  z-index: 5;
  inset-inline-end: 13px;
  top: 13px;
  display: inline-flex;
  width: 37px;
  height: 37px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--eso-border);
  border-radius: 50%;
  background: #ffffff;
  color: var(--eso-navy);
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.eso-popup-image {
  display: block;
  min-height: 320px;
  background: var(--eso-soft-2);
}

.eso-popup-image img,
.eso-popup-image .eso-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.eso-popup-image .eso-placeholder { display: flex; }

.eso-popup-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 36px 30px;
}

.eso-popup-kicker {
  margin-bottom: 7px;
  color: var(--eso-blue-dark);
  font-size: 12px;
  font-weight: 850;
}

.eso-popup-content h3 {
  margin: 0 0 9px;
  color: var(--eso-navy);
  font-size: clamp(25px, 3vw, 33px);
  font-weight: 850;
  line-height: 1.3;
}

.eso-popup-content p {
  margin: 0 0 17px;
  color: var(--eso-muted);
  font-size: 13px;
  line-height: 1.8;
}

.eso-popup-btn {
  align-self: flex-start;
  min-height: 44px;
  padding-inline: 21px;
}

.eso-popup-never {
  align-self: flex-start;
  margin-top: 11px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--eso-muted);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* Smart Booking integration */
.eso-page .eso-smart-booking-inline,
.eso-shortcode .eso-smart-booking-inline,
.eso-popup .eso-smart-booking-inline {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.eso-page .eso-smart-booking-inline .egb-popup-shortcode,
.eso-shortcode .eso-smart-booking-inline .egb-popup-shortcode,
.eso-popup .eso-smart-booking-inline .egb-popup-shortcode {
  display: inline-flex;
  width: auto;
  max-width: 100%;
}

.eso-page .eso-smart-booking-inline .egb-popup-open,
.eso-shortcode .eso-smart-booking-inline .egb-popup-open,
.eso-popup .eso-smart-booking-inline .egb-popup-open {
  min-height: 44px;
  padding: 10px 19px;
  border: 1px solid var(--eso-blue) !important;
  border-radius: 999px !important;
  background: var(--eso-blue) !important;
  color: #ffffff !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}

.eso-page .eso-smart-booking-inline .egb-popup-open:hover,
.eso-shortcode .eso-smart-booking-inline .egb-popup-open:hover,
.eso-popup .eso-smart-booking-inline .egb-popup-open:hover {
  border-color: var(--eso-blue-dark) !important;
  background: var(--eso-blue-dark) !important;
}

.eso-page .eso-single-actions .eso-smart-booking-inline .egb-popup-open {
  min-height: 48px;
  padding: 12px 23px;
  font-size: 14px !important;
}

.eso-page .eso-sticky-box .eso-smart-booking-inline,
.eso-page .eso-sticky-box .eso-smart-booking-inline .egb-popup-shortcode,
.eso-page .eso-sticky-box .eso-smart-booking-inline .egb-popup-open {
  width: 100%;
}

.eso-page .egb-modal,
.eso-popup .egb-modal {
  z-index: 1000002 !important;
  font-family: Inter, "Tajawal", "Cairo", Arial, sans-serif !important;
}

.eso-page .egb-modal .egb-wrap,
.eso-popup .egb-modal .egb-wrap {
  box-shadow: none !important;
}

/* Responsive */
@media (max-width: 1080px) {
  .eso-columns-4,
  .eso-columns-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eso-single-grid,
  .eso-content-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .eso-content-side {
    max-width: 520px;
  }

  .eso-sticky-box {
    position: relative;
    top: auto;
  }
}

@media (max-width: 820px) {
  .eso-offers-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .eso-filter-panel {
    position: relative;
    top: auto;
  }

  .eso-filter-toggle {
    display: flex;
  }

  .eso-filter-panel-body {
    padding-top: 0;
  }

  .eso-filter-panel.is-collapsed .eso-filter-panel-body {
    display: none;
  }

  .eso-results-toolbar {
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .eso-container {
    width: min(100% - 22px, 1180px);
  }

  .eso-section {
    padding-block: 30px;
  }

  .eso-hero {
    min-height: 220px;
    padding-block: 44px 34px;
  }

  .eso-columns-4,
  .eso-columns-3,
  .eso-columns-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .eso-offers-grid,
  .eso-campaign-grid {
    gap: 13px;
  }

  .eso-results-toolbar {
    display: block;
  }

  .eso-filter-status {
    display: block;
    margin-top: 7px;
  }

  .eso-card-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .eso-single-hero {
    padding-block: 31px;
  }

  .eso-single-grid {
    gap: 25px;
  }

  .eso-single-content h1 {
    font-size: 30px;
  }

  .eso-single-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .eso-single-actions > *,
  .eso-single-actions .eso-smart-booking-inline,
  .eso-single-actions .eso-smart-booking-inline .egb-popup-shortcode,
  .eso-single-actions .eso-smart-booking-inline .egb-popup-open {
    width: 100%;
  }

  .eso-panel {
    padding: 18px;
  }

  .eso-popup {
    padding: 9px;
  }

  .eso-popup-box {
    grid-template-columns: minmax(0, 1fr);
    max-height: 94dvh;
    overflow-y: auto;
    border-radius: 19px;
  }

  .eso-popup-image,
  .eso-popup-image img,
  .eso-popup-image .eso-placeholder {
    min-height: 205px;
    max-height: 250px;
  }

  .eso-popup-content {
    padding: 24px 19px;
  }

  .eso-popup-btn,
  .eso-popup .eso-smart-booking-inline,
  .eso-popup .eso-smart-booking-inline .egb-popup-shortcode,
  .eso-popup .eso-smart-booking-inline .egb-popup-open {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .eso-card-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .eso-page *,
  .eso-shortcode *,
  .eso-popup * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
