/* ESP V77: additive, configurable editorial cards; permanent header, logo and existing shell untouched. */
:root{--esp-v77-deep:#032354;--esp-v77-cobalt:#0653a3;--esp-v77-light:#2394d5;--esp-v77-gold:#ffd18b}
.esp-v77-discover{position:relative;background:linear-gradient(140deg,rgba(1,38,91,.94),rgba(9,90,164,.65) 46%,rgba(1,35,82,.92));border-top:1px solid #368fe373;border-bottom:1px solid #60a4e76b;}
.esp-v77-discover:before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 81% 0%,rgba(255,179,96,.12),transparent 42%)}
.esp-v77-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin:20px 0}
.esp-v77-grid-hub{max-width:370px;grid-template-columns:minmax(0,1fr)}
.esp-v77-card{min-width:0;display:flex;flex-direction:column;position:relative;overflow:hidden;border-radius:19px;background:linear-gradient(140deg,#085ca8,#032353);border:1px solid #64bbee;color:#fff;text-decoration:none;box-shadow:0 12px 26px #00183f7d;transition:transform .2s,box-shadow .2s}
.esp-v77-card:hover,.esp-v77-card:focus-visible{transform:translateY(-4px);box-shadow:0 17px 29px #001737bb;border-color:#ffe2ae}
.esp-v77-art{display:block;position:relative;height:172px;background-position:center;background-size:cover;overflow:hidden}
.esp-v77-badge{position:absolute;left:11px;top:12px;border-radius:30px;background:#06275dd9;border:1px solid #ffffff75;color:#fff;padding:6px 10px;font-size:12px;font-weight:750}
.esp-v77-cardcopy{display:grid;gap:7px;padding:14px 15px 4px;min-height:96px;align-content:start}
.esp-v77-cardcopy strong{font-size:18px;line-height:1.26}
.esp-v77-cardcopy small{font-size:12px;color:#d8eaff;line-height:1.5}
.esp-v77-action{display:block;margin-top:auto;color:#fff0c4;font-size:13px;font-weight:750;padding:13px 15px 16px}
.esp-v77-module{margin:30px 0;padding:25px;border:1px solid #6eb9f48e;border-radius:22px;background:linear-gradient(130deg,#0b4b96,#04245b);box-shadow:0 12px 24px #001c4b62}
.esp-v77-heading{font:700 clamp(23px,2.6vw,34px)/1.16 Georgia,serif;margin:0 0 8px;color:#fff}
.esp-v77-subtitle{font-size:14px;line-height:1.65;color:#d2e7ff;margin:0 0 12px}
.esp-v77-disclaimer{margin-top:13px;max-width:690px;color:#e4dfce}
.esp-v77-note{padding:17px;border:1px dashed #7fbfff;border-radius:14px;background:#083f84;color:#e2efff;font-size:15px;line-height:1.6}
.esp-v77-mini-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.esp-v77-mini{padding:12px;background:#0a65b7;border-radius:12px;color:#fff;text-decoration:none}
.esp-v77-back{display:inline-block;margin-top:16px;padding:10px 13px;border:1px solid #f8d18c;border-radius:12px;color:#ffe2aa;font-weight:700;text-decoration:none}
.esp-v77-card:focus-visible,.esp-v77-mini:focus-visible,.esp-v77-back:focus-visible{outline:3px solid #fff2a7;outline-offset:3px}
.esp-v77-grid-category{grid-template-columns:repeat(4,minmax(0,1fr));}
[dir=rtl] .esp-v77-badge{left:auto;right:11px}
[dir=rtl] .esp-v77-action{text-align:right}
@media(max-width:1050px){.esp-v77-grid,.esp-v77-grid-category{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.esp-v77-grid,.esp-v77-grid-category{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.esp-v77-module{padding:16px}.esp-v77-art{height:155px}.esp-v77-cardcopy strong{font-size:16px}.esp-v77-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.esp-v77-art{height:122px}.esp-v77-cardcopy{min-height:120px;padding:12px 9px}.esp-v77-cardcopy strong{font-size:14px}.esp-v77-cardcopy small{font-size:11px}.esp-v77-action{padding:11px 9px;font-size:11px}}
@media(prefers-reduced-motion:reduce){.esp-v77-card{transition:none}.esp-v77-card:hover{transform:none}}

/* Links reproduced exactly from existing ESP V73: no invented discounts or confirmed conversion claims. */
.esp-v77-links{margin:24px 0 4px;padding-top:22px;border-top:1px solid #82b5e45d}
.esp-v77-partner-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.esp-v77-linkcard{display:flex;min-width:0;flex-direction:column;gap:8px;padding:18px;text-decoration:none;color:#fff;background:linear-gradient(138deg,#0965ac,#06285b);border:1px solid #5ba9e2;border-radius:17px;box-shadow:0 8px 20px #00194388;transition:transform .2s,border-color .2s}
.esp-v77-linkcard:hover{transform:translateY(-3px);border-color:#ffd18b}
.esp-v77-linkbrand{font-weight:800;color:#ffcf8b;font-size:14px}
.esp-v77-linkcard strong{font-size:16px;line-height:1.35}
.esp-v77-linkcard small{font-size:11px;color:#d2e7ff;line-height:1.5}
.esp-v77-linkaction{margin-top:auto;font-size:13px;font-weight:750;color:#f9d589}
[dir=rtl] .esp-v77-linkcard{text-align:right}
@media(max-width:800px){.esp-v77-partner-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:400px){.esp-v77-partner-grid{grid-template-columns:1fr}}

.esp-v77-partner-logo{display:block;align-self:flex-start;max-width:155px;width:auto;height:38px;object-fit:contain;object-position:left center;margin-bottom:2px}

/* Branded partner tiles, scoped to ESP's existing partner registry. */
.esp-v77-linkcard{position:relative;overflow:hidden;min-height:186px;gap:10px;padding:18px 18px 16px 22px;color:#132744;background:linear-gradient(145deg,#fff 0%,#f6f8fb 100%);border:1px solid #dce4ee;box-shadow:0 10px 24px #00194318}
.esp-v77-linkcard:before{content:"";position:absolute;inset:0 auto 0 0;width:6px;background:var(--esp-brand,#174ea6)}
.esp-v77-linkcard:hover{transform:translateY(-3px);border-color:var(--esp-brand,#174ea6);box-shadow:0 14px 30px #00194324}
.esp-v77-linkcard strong{color:#152944;font-size:16px}
.esp-v77-linkbrand{order:2;color:#66748a;font-size:12px;font-weight:600}
.esp-v77-partner-logo{order:1;align-self:flex-start;max-width:190px;width:auto;height:43px;padding:5px 8px;background:#fff;border:1px solid #edf0f5;border-radius:9px;object-fit:contain;object-position:left center}
.esp-v77-linkaction{order:4;align-self:flex-end;color:var(--esp-brand,#174ea6);font-size:20px;font-weight:700}
.esp-v77-commission-note{margin:12px 0 18px;padding:10px 13px;color:#526176;background:#f5f7fa;border-left:3px solid #87a2c4;border-radius:6px;font-size:13px;line-height:1.55}
.esp-v77-linkcard[data-esp-brand="trip"]{--esp-brand:#287dff;background:linear-gradient(145deg,#edf5ff,#fff)}
.esp-v77-linkcard[data-esp-brand="booking"]{--esp-brand:#003b95;background:linear-gradient(145deg,#edf3ff,#fff)}
.esp-v77-linkcard[data-esp-brand="12go"]{--esp-brand:#20a779;background:linear-gradient(145deg,#eaf9f3,#fff)}
.esp-v77-linkcard[data-esp-brand="noon"]{--esp-brand:#ffcc00;background:linear-gradient(145deg,#fff9dd,#fff)}
.esp-v77-linkcard[data-esp-brand="amazon"]{--esp-brand:#ff9900;background:linear-gradient(145deg,#fff5e8,#fff)}
.esp-v77-linkcard[data-esp-brand="discovercars"]{--esp-brand:#00a879;background:linear-gradient(145deg,#eaf8f4,#fff)}
.esp-v77-linkcard[data-esp-brand="viator"]{--esp-brand:#008768;background:linear-gradient(145deg,#e8f7f3,#fff)}
.esp-v77-linkcard[data-esp-brand="tasjeel"]{--esp-brand:#8c3ba8;background:linear-gradient(145deg,#f7effa,#fff)}
.esp-v77-linkcard[data-esp-brand="systeme"]{--esp-brand:#1967d2;background:linear-gradient(145deg,#edf4ff,#fff)}
.esp-v77-linkcard[data-esp-brand="etihad"]{--esp-brand:#9f7a42;background:linear-gradient(145deg,#f7f3ea,#fff)}
