/* EliteEdge 360 tour interface — shared by /portadelsol/ and /canaldelsol/ */
@font-face { font-family: 'EE Inter'; src: url('/ee-ui/fonts/inter-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'EE Cinzel'; src: url('/ee-ui/fonts/cinzel-latin.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }

:root {
  --ee-navy: #092437;
  --ee-navy-soft: #123249;
  --ee-ink: #111417;
  --ee-muted: #6B6B67;
  --ee-gold: #8A7535;
  --ee-gold-light: #CDB96B;
  --ee-paper: #FAFAF8;
  --ee-sand: #F1EFEA;
  --ee-line: rgba(9, 36, 55, .12);
  --ee-glass: rgba(250, 250, 248, .86);
  --ee-glass-strong: rgba(250, 250, 248, .95);
  --ee-shadow: 0 10px 30px rgba(9, 36, 55, .18), 0 2px 6px rgba(9, 36, 55, .10);
  --ee-ease: cubic-bezier(.22, 1, .36, 1);
  --ee-gap: 16px;
  --ee-font: 'EE Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ee-display: 'EE Cinzel', Georgia, serif;
}

.ee-ui, .ee-ui * { box-sizing: border-box; }
.ee-ui { position: fixed; inset: 0; z-index: 2000; pointer-events: none; font-family: var(--ee-font); color: var(--ee-ink); -webkit-font-smoothing: antialiased; }
/* zero-specificity reset so component padding/backgrounds always win */
:where(.ee-ui) :where(button) { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; margin: 0; }
.ee-ui button:focus-visible, .ee-ui a:focus-visible { outline: 2px solid var(--ee-gold); outline-offset: 2px; }
.ee-ui .ee-panel { background: var(--ee-glass); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: var(--ee-shadow); border: 1px solid rgba(255, 255, 255, .6); }

/* ---- Top bar: brand + project switch ---- */
.ee-top { position: absolute; top: var(--ee-gap); left: var(--ee-gap); right: var(--ee-gap); display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ee-brand { pointer-events: auto; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 14px; border-radius: 999px; min-width: 0; }
.ee-brand a.ee-logo { display: block; line-height: 0; flex: none; }
.ee-brand img { height: 44px; width: auto; display: block; }
.ee-divider { width: 1px; height: 26px; background: var(--ee-line); flex: none; }
.ee-switch { display: flex; gap: 4px; background: rgba(9, 36, 55, .06); border-radius: 999px; padding: 3px; }
.ee-switch a { display: block; text-decoration: none; color: var(--ee-navy); font-family: var(--ee-display); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; white-space: nowrap; transition: background .3s var(--ee-ease), color .3s var(--ee-ease); }
.ee-switch a:hover { background: rgba(9, 36, 55, .08); }
.ee-switch a[aria-current="true"] { background: var(--ee-navy); color: #fff; }

.ee-scenes-btn { pointer-events: auto; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px 0 18px; border-radius: 999px; color: var(--ee-navy); font-size: 15px; font-weight: 500; flex: none; transition: transform .3s var(--ee-ease); }
.ee-scenes-btn:hover { transform: translateY(-1px); }
.ee-scenes-btn svg { width: 20px; height: 20px; }

/* ---- Scene name: shows briefly on arrival, then fades away ---- */
.ee-toast { position: absolute; left: 50%; top: calc(var(--ee-gap) + 72px); transform: translate(-50%, -6px); padding: 10px 20px; border-radius: 999px; pointer-events: none; text-align: center; white-space: nowrap; max-width: calc(100vw - 2 * var(--ee-gap)); overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .5s var(--ee-ease), transform .5s var(--ee-ease); }
.ee-toast.ee-show { opacity: 1; transform: translate(-50%, 0); }
.ee-toast .ee-proj { font-family: var(--ee-display); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ee-gold); font-weight: 700; margin-right: 10px; }
.ee-toast .ee-scene { font-family: var(--ee-font); font-size: 15px; font-weight: 500; color: var(--ee-navy); }

/* ---- Bottom control dock ---- */
.ee-dock { position: absolute; left: 50%; bottom: var(--ee-gap); transform: translateX(-50%); display: flex; align-items: center; gap: 2px; padding: 6px; border-radius: 999px; pointer-events: auto; }
.ee-dock .ee-sep { width: 1px; height: 24px; background: var(--ee-line); margin: 0 4px; }
.ee-btn { position: relative; width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; color: var(--ee-navy); transition: background .25s var(--ee-ease), color .25s var(--ee-ease); }
.ee-btn:hover { background: rgba(9, 36, 55, .08); }
.ee-btn[aria-pressed="true"] { background: var(--ee-navy); color: #fff; }
.ee-btn svg { width: 20px; height: 20px; }
.ee-btn.ee-film { width: auto; padding: 0 16px 0 12px; gap: 8px; display: flex; align-items: center; background: var(--ee-navy); color: #fff; font-size: 13px; font-weight: 500; letter-spacing: .02em; }
.ee-btn.ee-film:hover { background: var(--ee-navy-soft); }
.ee-btn.ee-film svg { width: 16px; height: 16px; color: var(--ee-gold-light); }
.ee-btn[hidden] { display: none; }
.ee-btn.ee-at-limit { opacity: .35; }            /* zoomed all the way in/out: shows why nothing more happens */
.ee-btn.ee-at-limit:hover { background: none; }
.ee-btn .ee-tip { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translate(-50%, 4px); background: var(--ee-navy); color: #fff; font-size: 12px; white-space: nowrap; padding: 6px 10px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s var(--ee-ease), transform .2s var(--ee-ease); }
.ee-btn:hover .ee-tip, .ee-btn:focus-visible .ee-tip { opacity: 1; transform: translate(-50%, 0); }

/* ---- Scenes drawer ---- */
.ee-scrim { position: absolute; inset: 0; background: rgba(9, 36, 55, .28); opacity: 0; pointer-events: none; transition: opacity .35s var(--ee-ease); }
.ee-ui.ee-open .ee-scrim { opacity: 1; pointer-events: auto; }
.ee-ui .ee-drawer { position: absolute; top: var(--ee-gap); right: var(--ee-gap); bottom: var(--ee-gap); width: 380px; max-width: calc(100vw - 2 * var(--ee-gap)); border-radius: 20px; background: var(--ee-glass-strong); display: flex; flex-direction: column; overflow: hidden; pointer-events: auto; transform: translateX(calc(100% + 40px)); transition: transform .5s var(--ee-ease); }
.ee-ui.ee-open .ee-drawer { transform: none; }
.ee-drawer-head { padding: 20px 20px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ee-drawer-head h2 { margin: 0; font-family: var(--ee-display); font-weight: 600; font-size: 20px; letter-spacing: .12em; text-transform: uppercase; color: var(--ee-navy); }
.ee-close { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; color: var(--ee-navy); }
.ee-close:hover { background: rgba(9, 36, 55, .08); }
.ee-close svg { width: 18px; height: 18px; }
.ee-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 20px 8px; padding: 3px; background: rgba(9, 36, 55, .06); border-radius: 999px; }
.ee-tabs button { padding: 9px 8px; border-radius: 999px; font-family: var(--ee-display); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ee-navy); transition: background .3s var(--ee-ease), color .3s var(--ee-ease); }
.ee-tabs button[aria-selected="true"] { background: var(--ee-navy); color: #fff; }
.ee-list { flex: 1; overflow-y: auto; padding: 4px 14px 24px; overscroll-behavior: contain; scrollbar-width: thin; }
.ee-group { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.ee-group:first-child { margin-top: 8px; }
.ee-group h3 { margin: 0 8px 4px; font-family: var(--ee-font); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ee-gold); }
.ee-item { width: 100%; display: flex; align-items: center; gap: 14px; padding: 8px 10px; border-radius: 14px; text-align: left; transition: background .25s var(--ee-ease); }
.ee-item:hover { background: rgba(9, 36, 55, .06); }
.ee-item img { width: 76px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; background: var(--ee-sand); }
.ee-item span { font-size: 14px; line-height: 1.3; color: var(--ee-ink); }
.ee-item[aria-current="true"] { background: rgba(138, 117, 53, .12); }
.ee-item[aria-current="true"] span { color: var(--ee-navy); font-weight: 600; }
.ee-item[aria-current="true"] img { outline: 2px solid var(--ee-gold); outline-offset: 1px; }
.ee-item .ee-ext { margin-left: auto; color: var(--ee-muted); flex: none; }
.ee-item .ee-ext svg { width: 16px; height: 16px; display: block; }

/* ---- In-scene markers (replace the spinning "360" icons) ---- */
.ee-hs { position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; pointer-events: auto;
  background: rgba(9, 36, 55, .58); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 2px solid rgba(255, 255, 255, .95); box-shadow: 0 4px 16px rgba(0, 0, 0, .28);
  transition: transform .35s var(--ee-ease), background .35s var(--ee-ease), border-color .35s var(--ee-ease); }
.ee-hs::before { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(205, 185, 107, .85); animation: ee-halo 2.8s cubic-bezier(.22, 1, .36, 1) infinite; pointer-events: none; }
.ee-hs i { display: block; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: background .35s var(--ee-ease), transform .35s var(--ee-ease); }
.ee-hs svg { width: 18px; height: 18px; color: #fff; display: block; transition: color .35s var(--ee-ease); }
.ee-hs:hover { transform: scale(1.12); background: rgba(9, 36, 55, .78); border-color: var(--ee-gold-light); }
.ee-hs:hover i { background: var(--ee-gold-light); transform: scale(1.15); }
.ee-hs:hover svg { color: var(--ee-gold-light); }
/* link to the other project: a map-style label (pin on the building, line up to a named pill) */
.ee-tag { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.ee-tag-pin { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--ee-gold); border: 2.5px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); pointer-events: auto; cursor: pointer; }
.ee-tag-pin::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(205, 185, 107, .9); animation: ee-halo 2.8s cubic-bezier(.22, 1, .36, 1) infinite; }
.ee-tag-stem { position: absolute; left: -1px; bottom: 7px; width: 2px; height: 26px; background: var(--ee-navy); box-shadow: 0 0 0 1px rgba(255, 255, 255, .7); border-radius: 2px; }
/* flipped: label below the pin when there is no room above */
.ee-tag--below .ee-tag-stem { bottom: auto; top: 7px; }
.ee-tag--below .ee-tag-pill { bottom: auto; top: 33px; }
.ee-tag-pill { position: absolute; left: 0; bottom: 33px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; white-space: nowrap; pointer-events: auto; cursor: pointer;
  padding: 9px 14px 9px 16px; border-radius: 999px; background: var(--ee-navy); color: #fff; box-shadow: 0 8px 22px rgba(9, 36, 55, .35); border: 1px solid rgba(205, 185, 107, .55);
  transition: background .3s var(--ee-ease), transform .3s var(--ee-ease); }
.ee-tag-pill .ee-tag-name { font-family: var(--ee-display); font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.ee-tag-pill .ee-tag-go { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ee-gold-light); color: var(--ee-navy); }
.ee-tag-pill .ee-tag-go svg { width: 13px; height: 13px; transition: transform .3s var(--ee-ease); }
.ee-tag--below .ee-tag-go svg { transform: rotate(-90deg); }  /* label under the pin: arrow points up at the building */
.ee-tag:hover .ee-tag-pill, .ee-tag-pill:hover { background: var(--ee-gold); transform: translateX(-50%) translateY(-2px); }
.ee-tag:hover .ee-tag-go { background: #fff; }
@keyframes ee-halo { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(1.7); opacity: 0; } }
/* hover preview card */
.ee-card-frame { background: var(--ee-paper) !important; border: 0 !important; border-radius: 14px !important; box-shadow: 0 12px 32px rgba(9, 36, 55, .28) !important; }
.ee-card-img, .ee-card-img img { border-radius: 9px !important; overflow: hidden; }
.ee-hs-below > .ee-card { top: 30px !important; }
/* title strip: pinned exactly to the bottom of the photo (photo = 140x90 at 6.5px inside a 153x103 card) */
.ee-card-text { box-sizing: border-box !important; left: 6.5px !important; width: 140px !important; top: auto !important; bottom: 6.5px !important; height: auto !important;
  padding: 18px 8px 7px !important; background: linear-gradient(to top, rgba(9, 36, 55, .92) 0%, rgba(9, 36, 55, .55) 60%, rgba(9, 36, 55, 0) 100%) !important;
  border-radius: 0 0 9px 9px !important; overflow: hidden !important; }
.ee-card-text > div { position: static !important; width: 100% !important; left: auto !important; top: auto !important; height: auto !important; margin: 0 !important; padding: 0 !important; background: none !important;
  font-family: var(--ee-font) !important; font-size: 12.5px !important; line-height: 1.25 !important; font-weight: 500 !important; color: #fff !important; text-align: center !important;
  white-space: normal !important; overflow-wrap: anywhere; text-shadow: 0 1px 4px rgba(0, 0, 0, .45) !important; }

/* ---- Phones ---- */
@media (max-width: 720px) {
  /* header strip: one shared height for the brand pill and the scenes button, scaled to the phone width */
  :root { --ee-gap: 10px; --ee-bar-h: clamp(50px, 14.6vw, 60px); }
  .ee-top { gap: 8px; }
  .ee-brand { height: var(--ee-bar-h); padding: 5px 5px 5px clamp(8px, 2.6vw, 12px); gap: clamp(6px, 2vw, 10px); flex: 1 1 auto; min-width: 0;
    max-width: calc(100% - var(--ee-bar-h) - 8px); overflow: hidden; }
  .ee-brand a.ee-logo { flex: none; }
  .ee-brand img { height: clamp(30px, 9.8vw, 40px); }
  .ee-divider { display: none; }
  .ee-switch { height: 100%; align-items: stretch; flex: 1 1 auto; min-width: 0; gap: 2px; }
  /* largest size that keeps both names on one row with the logo showing: ~11px on 360px phones -> ~13px on 414px */
  .ee-switch a { display: flex; align-items: center; justify-content: center; flex: 1 1 auto; white-space: nowrap;
    font-size: clamp(10px, calc(3.6vw - 2.9px), 14px); letter-spacing: .06em; padding: 0 clamp(7px, 2vw, 10px); }
  .ee-scenes-btn { width: var(--ee-bar-h); height: var(--ee-bar-h); min-height: 0; padding: 0; justify-content: center; }
  .ee-scenes-btn .ee-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ee-scenes-btn svg { width: clamp(22px, 6.4vw, 26px); height: clamp(22px, 6.4vw, 26px); }
  .ee-toast { top: calc(var(--ee-gap) + var(--ee-bar-h) + 10px); padding: 8px 16px; }
  .ee-toast .ee-scene { font-size: 14px; }
  .ee-dock { max-width: calc(100vw - 2 * var(--ee-gap)); }
  .ee-btn { width: 40px; height: 40px; }
  .ee-btn.ee-film .ee-label { display: none; }
  .ee-btn.ee-film { width: 40px; padding: 0; justify-content: center; }
  .ee-btn .ee-tip { display: none; }
  .ee-ui .ee-drawer { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-width: none; height: min(78vh, 640px); border-radius: 20px 20px 0 0; transform: translateY(100%); }
}
/* Phones held sideways / short windows */
@media (max-height: 500px) {
  :root { --ee-gap: 8px; }
  .ee-brand { padding: 4px 4px 4px 10px; gap: 8px; }
  .ee-brand img { height: 32px; }
  .ee-switch a { font-size: 10px; padding: 6px 10px; }
  .ee-scenes-btn { min-height: 40px; padding: 0 14px 0 12px; font-size: 13px; }
  .ee-toast { top: calc(var(--ee-gap) + 52px); }
  .ee-dock { padding: 4px; }
  .ee-btn { width: 36px; height: 36px; }
  .ee-btn svg { width: 18px; height: 18px; }
  .ee-btn.ee-film { padding: 0 12px 0 10px; font-size: 12px; }
  .ee-btn .ee-tip { display: none; }
  .ee-drawer-head { padding: 12px 16px 6px; }
  .ee-drawer-head h2 { font-size: 16px; }
  .ee-group { margin-top: 8px; }
  .ee-item img { width: 60px; height: 38px; }
}
/* Touch devices: pinch to zoom, so the zoom buttons are not needed */
@media (pointer: coarse) {
  .ee-zoom, .ee-zoom-sep { display: none !important; }
  .ee-btn .ee-tip { display: none; }
  /* No live blur over the constantly redrawing 360 view (it flickers on phones, worst with motion control on):
     use a solid tint instead — looks the same, renders steadily. */
  .ee-ui .ee-panel { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(250, 250, 248, .95); }
  .ee-ui .ee-drawer { background: rgba(250, 250, 248, .98); }
  .ee-hs { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(9, 36, 55, .78); }
}
/* markers move every frame (drag / motion control): give them their own layer so they never repaint-flicker */
.ee-hs, .ee-tag-pin, .ee-tag-pill { will-change: transform; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
/* iPhone home bar / notch */
@supports (padding: max(0px)) {
  .ee-top { top: max(var(--ee-gap), env(safe-area-inset-top)); left: max(var(--ee-gap), env(safe-area-inset-left)); right: max(var(--ee-gap), env(safe-area-inset-right)); }
  .ee-dock { bottom: max(var(--ee-gap), env(safe-area-inset-bottom)); }
}
@media (max-width: 720px), (max-height: 500px) {
  .ee-hs { left: -17px; top: -17px; width: 34px; height: 34px; border-width: 1.5px; }
  .ee-hs i { width: 10px; height: 10px; }
  .ee-hs svg { width: 15px; height: 15px; }
  .ee-tag-stem { height: 18px; }
  .ee-tag-pill { bottom: 25px; padding: 6px 8px 6px 12px; gap: 6px; }
  .ee-tag--below .ee-tag-pill { top: 25px; }
  .ee-tag-pill .ee-tag-name { font-size: 10px; letter-spacing: .12em; }
  .ee-tag-pill .ee-tag-go { width: 18px; height: 18px; }
  .ee-tag-pill .ee-tag-go svg { width: 11px; height: 11px; }
}
@media (max-width: 340px) {
  .ee-brand a.ee-logo { display: none; }   /* very small phones only: names need the room */
}
@media (prefers-reduced-motion: reduce) {
  .ee-ui * { transition: none !important; }
  .ee-hs::before, .ee-tag-pin::before { animation: none; opacity: 0; }
}
