/* REHLTAK unified refinement — additive, no business-logic changes.
   Loaded after existing portal styles to retain established layouts and branding. */
:where(.rehltak-portal) {
  --rx-control-height: 46px;
  --rx-focus: #176bce;
  --rx-border: #dee4eb;
  --rx-elevation: 0 12px 32px rgb(28 20 50 / 8%);
  color-scheme: light;
}
.rehltak-portal :is(button,input,select,textarea) { font: inherit; }
.rehltak-portal :is(button,[type="button"],[type="submit"],summary) { cursor: pointer; }
.rehltak-portal :is(button,a,input,select,textarea,summary,[role="tab"]):focus-visible {
  outline: 3px solid var(--rx-focus);
  outline-offset: 3px;
}
.rehltak-portal :is(input,select,textarea):disabled,
.rehltak-portal :is(button,[role="button"]):disabled { cursor: not-allowed; opacity: .62; }
.rehltak-portal :is(input,select,textarea)[aria-invalid="true"] { border-color: #bb304b !important; }
.rehltak-portal :is(input,select,textarea) { max-width: 100%; }
.rehltak-portal :is(.table-card,.search-panel,.info-panel,.feature-panel,.result-card) {
  min-width: 0;
}
.rehltak-portal :is(.table-card,.search-panel,.info-panel) { overflow-wrap: anywhere; }
.rehltak-portal :is(.table-card,.search-panel,.info-panel,.result-card):focus-within {
  border-color: #a4bad0;
}
.rehltak-portal :is(.trip-site-header,.dev-header) { isolation: isolate; }
.rehltak-portal :is(.trip-site-logo,.dev-brand img,.agency-workspace-brand img) {
  object-fit: contain;
}
.rehltak-portal :is(.admin-nav,.agency-nav,.account-links) {
  scrollbar-width: thin;
  scroll-padding-inline: 16px;
}
.rehltak-portal :is(.admin-nav,.agency-nav,.account-links) a[aria-current="page"] {
  border-color: var(--travel-accent,#3b6a99);
  color: var(--travel-accent,#3b6a99);
  background: var(--travel-soft,#eaf1f8);
}
.rehltak-portal :is(.field,.form-field) > label { line-height: 1.5; }
.rehltak-portal :is(.field,.form-field) :is(input,select,textarea) { min-width: 0; }
.rehltak-portal :is(.button,.trip-primary-button) { transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .rehltak-portal :is(.button,.trip-primary-button):not(:disabled):hover { transform: translateY(-1px); }
}
@media (max-width: 768px) {
  .rehltak-portal :is(.shell,.trip-header-inner) { max-width: 100%; }
  .rehltak-portal :is(.form-grid,.search-grid) > * { min-width: 0; }
  .rehltak-portal :is(.admin-nav,.agency-nav,.account-links) {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-block: 6px 12px;
    -webkit-overflow-scrolling: touch;
  }
  .rehltak-portal :is(.admin-nav,.agency-nav,.account-links) a { flex: 0 0 auto; }
  .rehltak-portal :is(.table-card,.search-panel,.info-panel) { padding-inline: clamp(12px,3vw,22px); }
  .rehltak-portal :is(.inline-actions,.result-toolbar) { max-width: 100%; }
  .rehltak-portal :is(input,select,textarea) { font-size: 16px; }
}
@media (max-width: 480px) {
  .rehltak-portal :is(.form-grid,.metric-grid) { grid-template-columns: minmax(0,1fr); }
  .rehltak-portal :is(.inline-actions,.panel-heading) { flex-wrap: wrap; }
  .rehltak-portal :is(.button,.trip-primary-button) { white-space: normal; }
}
@media (prefers-reduced-motion:reduce) {
  .rehltak-portal *, .rehltak-portal *::before, .rehltak-portal *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* 2026 cross-portal polish. Scoped to established components; no global layout reset. */
.rehltak-portal {
  --rx-brand-ink: #112b49;
  --rx-brand-primary: #174c81;
  --rx-brand-muted: #61758a;
  --rx-brand-surface: #ffffff;
  --rx-brand-outline: #dbe4ee;
  --rx-brand-shadow: 0 12px 34px rgb(17 43 73 / 9%);
}
.rehltak-portal :is(.trip-search-card,.result-card,.agency-workspace-main .card,.dev-card,.admin-card) {
  box-shadow: var(--rx-brand-shadow);
  border-color: var(--rx-brand-outline);
}
.rehltak-portal :is(.trip-search-card,.result-card,.dev-card,.admin-card) { border-radius: 18px; }
.rehltak-portal :is(.ota-field,.field,.form-field) :is(input,select,textarea) {
  border-radius: 10px;
  border-color: var(--rx-brand-outline);
  background-color: var(--rx-brand-surface);
}
.rehltak-portal :is(.ota-field,.field,.form-field) :is(input,select,textarea):focus {
  border-color: var(--rx-brand-primary);
  box-shadow: 0 0 0 3px rgb(23 76 129 / 10%);
}
.rehltak-portal :is(.ota-search-submit,.button-primary) {
  font-weight: 700;
  letter-spacing: normal;
}
.rehltak-portal :is(.ota-search-submit,.button-primary):not(:disabled):active { transform: translateY(1px); }
.rehltak-portal [role="tab"][aria-selected="true"] { font-weight: 750; }
.rehltak-portal :is(.ota-alert,.notice-error,[role="alert"]) { overflow-wrap: anywhere; }
.rehltak-portal :is(.trip-search,.agency-workspace-main,.dev-main,.admin-main) { min-width: 0; }
.rehltak-portal :is(table,.data-table) { font-variant-numeric: tabular-nums; }
.rehltak-portal :is(.trip-site-footer,.trip-partner-footer,.dev-footer) a:focus-visible {
  outline-color: #b9d8ff;
}
@media (max-width: 760px) {
  .rehltak-portal :is(.ota-fields,.ota-fields-flight,.ota-fields-hotel,.ota-fields-three) > * { min-width: 0; }
  .rehltak-portal :is(.trip-search-card,.result-card,.dev-card,.admin-card) { border-radius: 14px; }
  .rehltak-portal :is(.agency-workspace,.agency-workspace-main) { max-width: 100%; }
  .rehltak-portal :is(.table-scroll,.table-responsive,.data-table-wrap) { overflow-x: auto; overscroll-behavior-x: contain; }
}
@media (prefers-reduced-motion: reduce) {
  .rehltak-portal :is(.button,.ota-search-submit,.trip-primary-button) { transition: none !important; animation: none !important; }
}

/* The shared palette is an ADMIN-selected enum; no arbitrary CSS is accepted. */
body.rehltak-portal[data-brand-theme="navy"]{--rx-brand-primary:#173b66;--trip-blue:#173b66;--b3-blue:#173b66;--rx-focus:#173b66}
body.rehltak-portal[data-brand-theme="navy"] :is(.button-primary,.ota-search-submit,.ota-tab[aria-selected="true"]){background:#173b66!important;border-color:#173b66!important;color:#fff!important}

/* One visual system for B2C, agencies, administration and developers. */
body.rehltak-portal{margin:0;background:#f5f8fc;color:#102f4b;font-family:Inter,"IBM Plex Sans Arabic",system-ui,sans-serif;--dev-navy:#082d50;--dev-blue:#0869bf;--dev-bg:#f5f8fc;--dev-border:#dce6f0;--portal-brand:#0869bf;--trip-blue:#0869bf;--travel-accent:#0869bf;--travel-night:#082d50;--travel-line:#dce6f0;--rx-border:#dce6f0;--rx-brand-primary:#0869bf}
body.rehltak-portal *{box-sizing:border-box}
body.rehltak-portal :is(.trip-site-header,.trip-partner-header,.dev-header,.admin-workspace-topbar){background:#fff;color:#102f4b;border-bottom:1px solid #dce6f0;box-shadow:0 2px 12px #082d5008}
body.rehltak-portal :is(.trip-site-nav,.trip-partner-header nav,.dev-header nav) a,body.rehltak-portal :is(.dev-brand,.trip-mobile-lang,.trip-mobile-profile,.admin-breadcrumb){color:#102f4b}
body.rehltak-portal :is(.button-primary,.primary-button,.dev-button:not(.dev-secondary),.ota-search-submit,.b2b-login-form button):not(:disabled){background:#0869bf;color:#fff;border-color:#0869bf;border-radius:12px;min-height:46px;padding:12px 22px;font-weight:700;box-shadow:0 6px 16px #0869bf20}
body.rehltak-portal :is(.button-primary,.primary-button,.dev-button:not(.dev-secondary),.ota-search-submit):hover:not(:disabled){background:#075aa8}
body.rehltak-portal :is(.trip-site-footer,.trip-partner-footer,.dev-footer){background:#082d50;color:#e7f2ff;border-color:#123e66}
body.rehltak-portal :is(.trip-site-logo,.dev-brand img,.trip-partner-header img,.b2b-login-logo,.auth-intro-brand img){object-fit:contain;max-width:100%}
body.rehltak-portal .dev-hero{background:linear-gradient(125deg,#082d50,#104f80 65%,#087ca6);border-radius:0}
body.rehltak-portal :is(.auth-card,.b2b-partner-login,.table-card,.dev-card){border:1px solid #dce6f0;border-radius:18px;background:#fff;box-shadow:0 12px 36px #082d500b}
body.rehltak-portal .shell{width:min(1200px,calc(100% - 40px));margin-inline:auto}
body.rehltak-portal :is(.auth-card,.b2b-login-form) label{display:grid;gap:8px;font-size:14px;font-weight:600}
body.rehltak-portal :is(.auth-card,.b2b-login-form) input:not([type=checkbox]){width:100%;min-height:48px;padding:12px 14px;border:1px solid #ccdbe8;border-radius:10px;background:#fff;color:#102f4b;font:inherit}
@media(max-width:760px){body.rehltak-portal .shell{width:calc(100% - 28px)}body.rehltak-portal :is(.trip-site-header,.dev-header){gap:12px}body.rehltak-portal .auth-section{margin-block:24px}}

/* Search and selection share the same hierarchy across product types. */
.results-budget{display:grid;grid-template-columns:1fr 1fr;gap:10px;min-width:0;border:0;padding:0;margin:6px 0 12px}.results-budget legend{font-weight:700;font-size:14px;margin-bottom:10px}.results-budget small{grid-column:1/-1;color:#5b7085;font-size:12px}.results-budget input{width:100%;min-width:0}
.results-view-switch{display:flex;justify-content:flex-end;gap:4px;margin:12px 0}.results-view-switch button{padding:9px 16px;border:1px solid #dce6f0;background:#fff;border-radius:9px;color:#5b7085;font-weight:650}.results-view-switch button[aria-pressed=true]{background:#edf5ff;color:#0869bf;border-color:#a4c9ed}
.b2c-offer-list[data-view=grid]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:18px}.b2c-offer-list[data-view=grid] .b2c-offer-card{display:flex;flex-direction:column;align-items:stretch;overflow:hidden;padding:0}.b2c-offer-list[data-view=grid] .b2c-offer-image{width:100%;height:220px;margin:0}.b2c-offer-list[data-view=grid] .b2c-offer-image img{width:100%;height:100%;object-fit:cover}.b2c-offer-list[data-view=grid] .b2c-offer-content,.b2c-offer-list[data-view=grid] .b2c-offer-price{padding:20px}.b2c-offer-list[data-view=grid] .b2c-offer-price{border-inline-start:0;border-block-start:1px solid #dce6f0;min-width:0;width:100%}.b2c-offer-list[data-view=grid] .b2c-offer-card[hidden]{display:none}
body.rehltak-portal .b2c-offer-card{border:1px solid #dce6f0;box-shadow:0 5px 20px #082d5007;transition:box-shadow .18s,border-color .18s}.b2c-offer-card:hover{border-color:#a4c9ed;box-shadow:0 12px 30px #082d5010}.b2c-offer-card h2{font-size:20px;line-height:1.4;letter-spacing:-.025em}.b2c-offer-details div{background:#f5f8fc;border-radius:8px;padding:8px 10px}.b2c-offer-price strong{font-variant-numeric:tabular-nums}.b2c-offer-image:has(>span){display:grid;place-content:center;background:linear-gradient(135deg,#edf5ff,#dce6f0);color:#5b7085;font-size:13px;padding:16px;text-align:center}
body.rehltak-portal .hotel-gallery-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}body.rehltak-portal .hotel-gallery figure{max-width:none}.hotel-gallery figcaption{padding:8px 0;color:#5b7085;font-size:13px}
@media(max-width:760px){.b2c-offer-list[data-view=grid]{grid-template-columns:1fr}.results-view-switch{justify-content:stretch}.results-view-switch button{flex:1}.b2c-offer-card h2{font-size:18px}}

/* Original white artwork is rendered dark only on white brand surfaces. */
body.rehltak-portal :is(.trip-site-logo,.dev-brand img,.trip-partner-header img,.b2b-login-logo,.auth-intro-brand img,.admin-topbar-mark img,.agency-workspace-brand img){filter:brightness(0) saturate(100%)}
body.rehltak-portal .trip-partner-header>.shell{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:78px}
body.rehltak-portal .trip-partner-header img{width:138px;height:58px}
body.rehltak-portal .b2b-partner-login-inner{gap:16px;padding:32px}
body.rehltak-portal .b2b-hero{padding-block:64px}
body.rehltak-portal .agency-entry-copy h1{font-size:clamp(32px,4vw,54px);line-height:1.25;font-weight:800;max-width:13ch}
body.rehltak-portal .agency-entry-copy p{max-width:46ch;font-size:17px;line-height:1.8}
body.rehltak-portal .auth-card{box-shadow:none;border:0;border-radius:0;padding:clamp(24px,4vw,48px)}
body.rehltak-portal .auth-card h1{font-size:clamp(26px,3vw,36px);line-height:1.3;letter-spacing:-.025em}
@media(max-width:760px){body.rehltak-portal .b2b-hero{padding-block:28px}body.rehltak-portal .b2b-partner-login-inner{padding:22px}body.rehltak-portal .agency-entry-copy h1{max-width:none}body.rehltak-portal .trip-partner-header>.shell{gap:12px;min-height:72px}}

body.rehltak-portal :is(.trip-site-logo,.dev-brand img,.trip-partner-header img,.b2b-login-logo,.auth-intro-brand img,.admin-topbar-mark img,.agency-workspace-brand img){background:transparent!important}
body.rehltak-portal .auth-card .b2c-terms,body.rehltak-portal .auth-card .checkbox-field{display:flex;align-items:center;gap:9px}

body.rehltak-portal .auth-card .check-field{display:flex;align-items:center;justify-content:flex-start;gap:10px;font-weight:400}
body.rehltak-portal .auth-card .check-field input{margin:0;flex:0 0 auto}
.portal-workspace-label{font-weight:700;color:#102f4b;border-inline-end:1px solid #dce6f0;padding-inline-end:20px}
@media(max-width:600px){.portal-workspace-label{display:none}}

@media(max-width:760px){body.rehltak-portal .auth-intro{display:none}body.rehltak-portal .auth-section{grid-template-columns:1fr}}

.hotel-section-links{display:flex;gap:20px;overflow:auto;border-bottom:1px solid #dce6f0;padding:16px 0;position:sticky;top:0;background:#fff;z-index:2}.hotel-section-links a{white-space:nowrap;color:#0869bf;font-weight:650;text-decoration:none;padding:8px 0}.hotel-description{white-space:pre-line;line-height:1.9}.hotel-amenities{display:flex;flex-wrap:wrap;gap:10px;list-style:none;padding:0}.hotel-amenities li{padding:8px 12px;background:#edf5ff;border-radius:9px;color:#102f4b;font-size:14px}.b2c-detail-section[id]{scroll-margin-top:90px}

body.rehltak-portal .rx-booking-progress{margin-block:12px!important}body.rehltak-portal .rx-booking-progress ol{margin:0;padding-block:4px}body.rehltak-portal .search-results-heading{padding-block:12px!important}body.rehltak-portal .search-results-heading .b2c-inline-alert{font-size:12px;padding:8px 12px}body.rehltak-portal .b2c-results{padding-block:18px 40px!important}.results-share-button{border:1px solid #ccdbe8;background:#fff;color:#0869bf;border-radius:9px;padding:9px 13px;font-size:13px;font-weight:650}.results-share-button:hover{background:#edf5ff}.search-results-list .offer-compare-toolbar{padding:12px 16px}.search-results-heading .eyebrow{margin:0}

body.rehltak-portal .b2c-offer-list[data-view=grid] .b2c-offer-price{width:100%!important;max-width:none!important;min-width:0!important;align-self:stretch}body.rehltak-portal .b2c-offer-list[data-view=grid] .b2c-offer-card{grid-template-columns:1fr!important}body.rehltak-portal .b2c-offer-list[data-view=grid] .b2c-offer-image{height:220px!important;width:100%!important;max-width:none!important}
.hotel-photo-viewer{width:min(1050px,95vw);max-height:95vh;padding:18px;border:0;border-radius:16px;background:#fff;color:#102f4b}.hotel-photo-viewer::backdrop{background:#061a30dd}.hotel-photo-viewer-bar{display:flex;justify-content:space-between;align-items:center;gap:20px}.hotel-photo-viewer-bar button,.hotel-photo-viewer-controls button{padding:10px 18px;border:1px solid #ccdbe8;border-radius:9px;background:#edf5ff;color:#102f4b;font:inherit}.hotel-photo-viewer img{display:block;width:100%;height:min(65vh,650px);object-fit:contain;margin-block:12px;background:#f5f8fc}.hotel-photo-viewer-controls{display:flex;justify-content:space-between;gap:15px}.hotel-photo-viewer [hidden]{display:none}

body.rehltak-portal .b2c-page-hero:not(.search-results-heading){background:linear-gradient(120deg,#edf5ff,#f8fbff)!important;color:#102f4b!important;padding-block:24px!important;border-bottom:1px solid #dce6f0}body.rehltak-portal .b2c-page-hero:not(.search-results-heading) h1{color:#102f4b!important;font-size:clamp(25px,3vw,36px)!important;line-height:1.3}body.rehltak-portal .b2c-page-hero:not(.search-results-heading) :is(.back-link,.eyebrow){color:#0869bf!important}body.rehltak-portal .b2c-page-hero:not(.search-results-heading) p{color:#5b7085!important}
.activity-story{display:grid;gap:20px;min-width:0}.activity-request{min-width:0}.activity-request form{display:grid;gap:14px}.activity-request form>label{display:grid;gap:7px}.activity-request .b2c-traveler-fields{grid-template-columns:1fr 1fr}.activity-request :is(input,select){width:100%;min-width:0;min-height:46px;border:1px solid #ccdbe8;border-radius:9px;padding:10px 12px;font:inherit;background:#fff;color:#102f4b}
@media(min-width:1000px){body.b2c-design .b2c-offer-detail-layout{grid-template-columns:minmax(0,1fr) 350px!important;gap:24px!important}body.b2c-design .b2c-activity-layout{grid-template-columns:minmax(0,1fr) 360px!important;gap:24px!important}.activity-request{position:sticky;top:100px}.b2c-detail-summary{position:sticky!important;top:100px!important}}
@media(max-width:999px){body.b2c-design .b2c-offer-detail-layout,body.b2c-design .b2c-activity-layout{grid-template-columns:1fr!important}.b2c-detail-summary{position:static!important}.activity-request{position:static}}

.esim-plan-specs{display:grid;grid-template-columns:48px 1fr;gap:5px 14px;align-items:center;margin-block:14px 20px}.esim-plan-symbol{display:grid;place-items:center;grid-row:span 2;width:48px;height:56px;background:#edf5ff;border:1px solid #c5def5;border-radius:12px;color:#0869bf;font-size:28px}.esim-plan-specs strong{color:#082d50;font-size:30px;font-weight:800;line-height:1.2}.esim-plan-specs>span:last-child{color:#5b7085;font-size:14px}
@media(min-width:1000px) and (max-width:1320px){body.b2c-design .trip-site-nav{gap:3px!important}body.b2c-design .trip-site-nav a{padding-inline:6px!important;font-size:12px!important}body.b2c-design .trip-site-logo{width:124px!important}body.b2c-design .trip-site-nav a[href*="/services/packages"]{display:none}}

body.rehltak-portal.admin-portal .admin-brand-link img.admin-brand-full{filter:brightness(0) saturate(100%)!important;background:transparent!important}
