/* ============================================================
   Aeria Apartments — Virtual Tours
   Brand foundation: Zagma type, Lamp Black, Aeria Yellow, Linen
   ============================================================ */

@font-face {
  font-family: "Zagma";
  src: url("fonts/Zagma-Light.woff2") format("woff2"),
       url("fonts/Zagma-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Zagma";
  src: url("fonts/Zagma-Regular.woff2") format("woff2"),
       url("fonts/Zagma-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --lamp: #232827;          /* Lamp Black */
  --lamp-90: rgba(35, 40, 39, 0.9);
  --lamp-70: rgba(35, 40, 39, 0.7);
  --lamp-55: rgba(35, 40, 39, 0.55);
  --lamp-35: rgba(35, 40, 39, 0.35);
  --yellow: #FDD756;        /* Aeria brand 500 */
  --yellow-deep: #FFD028;   /* brand 600 */
  --linen-100: #F4F2F0;
  --linen-200: #EDE9E7;
  --linen-300: #E8E4E1;
  --grey-100: #D3D4D4;
  --grey-200: #BDBFBE;
  --grey-500: #919493;
  --grey-700: #4F5352;
  --white: #ffffff;
  --font: "Zagma", "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  font-weight: 300;
  color: var(--lamp);
  background: var(--linen-100);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--yellow); color: var(--lamp); }
:focus-visible { outline: 2px solid var(--yellow-deep); outline-offset: 2px; }

.eyebrow {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------
   Loading veil (viewer + editor)
   ------------------------------------------------------------ */
.veil {
  position: fixed; inset: 0; z-index: 60;
  background: var(--linen-100);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.veil.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.veil img { width: 54px; height: auto; opacity: 0.95; border-radius: 12px;
  box-shadow: 0 10px 30px -12px rgba(35, 40, 39, 0.35); }
.veil .veil-word {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--grey-700); font-weight: 400;
}
.veil .bar {
  width: 128px; height: 2px; background: var(--linen-300);
  overflow: hidden; border-radius: 2px; position: relative;
}
.veil .bar::after {
  content: ""; position: absolute; top: 0; left: -40%;
  width: 40%; height: 100%; background: var(--yellow-deep);
  animation: veilslide 1.1s var(--ease) infinite;
}
@keyframes veilslide { to { left: 100%; } }
.veil .veil-error { color: var(--grey-700); font-size: 14px; display: none; }
.veil.error .bar { display: none; }
.veil.error .veil-error { display: block; }

/* ------------------------------------------------------------
   Hotspots (viewer + editor share these)
   ------------------------------------------------------------ */
div.pnlm-hotspot-base.aeria-hotspot {
  width: 0; height: 0; overflow: visible;
  background: none; border-radius: 0;
}
.aeria-hotspot .ah-ring {
  position: absolute; left: -22px; top: -22px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(253, 215, 86, 0.9);
  animation: ahpulse 2.4s var(--ease) infinite;
}
@keyframes ahpulse {
  0%   { transform: scale(0.55); opacity: 0.9; }
  70%  { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(1.15); opacity: 0; }
}
.aeria-hotspot .ah-dot {
  position: absolute; left: -14px; top: -14px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(20, 22, 21, 0.35);
  transition: transform 0.25s var(--ease), background 0.25s;
}
.aeria-hotspot .ah-dot svg { width: 13px; height: 13px; stroke: var(--lamp); }
.aeria-hotspot .ah-label {
  position: absolute; top: 22px; left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--lamp-70);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 11.5px; font-weight: 400; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 5px 12px 4px; border-radius: 999px;
  transition: background 0.25s, color 0.25s;
}
.aeria-hotspot:hover .ah-dot { transform: scale(1.18); background: var(--yellow-deep); }
.aeria-hotspot:hover .ah-label { background: var(--yellow); color: var(--lamp); }

/* Editor-only: currently selected hotspot */
.aeria-hotspot.ah-selected .ah-dot { background: var(--white); }
.aeria-hotspot.ah-selected .ah-label { background: var(--white); color: var(--lamp); }

/* ------------------------------------------------------------
   Toast
   ------------------------------------------------------------ */
.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 80;
  transform: translate(-50%, 16px);
  background: var(--lamp-90); color: var(--white);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 12.5px; letter-spacing: 0.06em;
  padding: 10px 18px; border-radius: 999px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Hide Pannellum's own load UI — we use the veil instead */
.pnlm-load-box, .pnlm-load-button { display: none !important; }
.pnlm-about-msg { display: none !important; }
