/* =========================================================
   Ears Alert - SEO Location Pages (polished dashboard)
   ========================================================= */

.ea-location-page {
  --ea-blue:#68a9ff;
  --ea-blue-2:#8bc3ff;
  --ea-red:#d20b2e;
  --ea-green:#50df86;
  --ea-text:#f3f6f9;
  --ea-muted:#9aa9b6;
  --ea-line:#263544;
  --ea-panel:#0d121a;
  --ea-panel-2:#111824;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 22px 34px;
  color: var(--ea-text);
}

/* Keep every page-specific image under control even if global CSS says otherwise. */
.ea-location-page img {
  max-width: 100%;
  height: auto;
}

.ea-location-topbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  min-height:78px;
  padding:12px 18px;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.ea-location-brand {
  display:inline-flex;
  align-items:center;
  text-decoration:none;
  flex:0 0 auto;
}

.ea-location-brand img {
  width:188px !important;
  max-width:188px !important;
  height:auto !important;
  display:block;
}

.ea-location-topnav {
  display:flex;
  align-items:center;
  gap:8px;
}

.ea-location-topnav a {
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:38px;
  padding:0 13px;
  border-radius:9px;
  color:#d9e3eb;
  text-decoration:none;
  font-size:12px;
  font-weight:800;
}

.ea-location-topnav a:hover { background:rgba(255,255,255,.05); color:#fff; }
.ea-location-topnav .ea-location-alert-button {
  padding:0 17px;
  border:1px solid rgba(210,11,46,.65);
  background:linear-gradient(180deg,#d51437,#a80622);
  color:#fff;
  box-shadow:0 8px 22px rgba(210,11,46,.14);
}

.ea-location-breadcrumb {
  display:flex;
  align-items:center;
  gap:8px;
  padding:18px 4px 12px;
  color:#80909d;
  font-size:12px;
}
.ea-location-breadcrumb a { color:#ff3152; text-decoration:none; font-weight:800; }

.ea-location-hero {
  position:relative;
  overflow:hidden;
  min-height:250px;
  padding:32px 36px;
  margin-bottom:14px;
  border:1px solid #273747;
  border-radius:16px;
  background:
    radial-gradient(circle at 82% 45%, rgba(94,83,255,.28), transparent 30%),
    radial-gradient(circle at 65% 100%, rgba(22,102,206,.19), transparent 38%),
    linear-gradient(110deg,#0c1422 0%,#0c1420 54%,#10172c 100%);
}

.ea-location-hero::after {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(90deg,rgba(8,12,18,.04),rgba(8,12,18,.06) 55%,rgba(8,12,18,.32));
}

.ea-location-hero-watermark {
  position:absolute;
  right:5.5%;
  top:50%;
  transform:translateY(-50%);
  width:220px;
  height:220px;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:.14;
  filter:drop-shadow(0 0 28px rgba(107,119,255,.4));
  z-index:0;
}
.ea-location-hero-watermark img {
  width:190px !important;
  max-width:190px !important;
  height:190px !important;
  object-fit:contain;
}

.ea-location-hero-copy { position:relative; z-index:2; max-width:760px; }
.ea-location-kicker { color:#72aaff; font-size:10px; font-weight:950; letter-spacing:1.8px; text-transform:uppercase; }
.ea-location-title-row { display:flex; align-items:center; gap:15px; margin:12px 0 8px; }
.ea-location-page-icon {
  width:72px !important;
  height:72px !important;
  min-width:72px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(143,113,255,.5);
  border-radius:50%;
  background:linear-gradient(145deg,rgba(116,73,232,.28),rgba(60,43,124,.45));
  box-shadow:0 0 28px rgba(105,79,214,.2);
  overflow:hidden;
}
.ea-location-page-icon img {
  width:48px !important;
  max-width:48px !important;
  height:48px !important;
  object-fit:contain !important;
  display:block !important;
}
.ea-location-hero h1 { margin:0; font-size:clamp(36px,4.2vw,58px); line-height:1; letter-spacing:-1.2px; }
.ea-location-subtitle { margin-top:7px; color:#8fc1ff; font-size:20px; font-weight:850; }
.ea-location-hero p { max-width:720px; margin:14px 0 0; color:#b3c0cb; font-size:14px; line-height:1.6; }
.ea-location-map-link { display:inline-flex; align-items:center; gap:7px; margin-top:15px; color:#7db7ff; text-decoration:none; font-size:12px; font-weight:850; }

.ea-location-dashboard {
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:16px;
  align-items:start;
}

.ea-location-maincol { min-width:0; }
.ea-location-sidebar { display:flex; flex-direction:column; gap:14px; }

.ea-location-stats {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-bottom:14px;
}
.ea-location-stat {
  display:grid;
  grid-template-columns:52px minmax(0,1fr);
  align-items:center;
  gap:13px;
  min-height:104px;
  padding:16px;
  border:1px solid #273747;
  border-radius:13px;
  background:linear-gradient(180deg,rgba(18,26,38,.96),rgba(10,16,25,.96));
  box-shadow:0 10px 25px rgba(0,0,0,.08);
}
.ea-location-stat-icon {
  width:50px;
  height:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  font-size:24px;
  font-weight:900;
  background:rgba(81,152,255,.11);
  border:1px solid rgba(81,152,255,.32);
  color:#71afff;
}
.ea-location-stat:nth-child(2) .ea-location-stat-icon { color:#52df86; border-color:rgba(82,223,134,.28); background:rgba(82,223,134,.08); }
.ea-location-stat:nth-child(3) .ea-location-stat-icon { color:#ffb21f; border-color:rgba(255,178,31,.28); background:rgba(255,178,31,.08); }
.ea-location-stat:nth-child(4) .ea-location-stat-icon { color:#ba85ff; border-color:rgba(186,133,255,.28); background:rgba(186,133,255,.08); }
.ea-location-stat strong { display:block; font-size:31px; line-height:1; color:#fff; }
.ea-location-stat span { display:block; margin-top:5px; color:#bac6cf; font-size:10px; font-weight:900; letter-spacing:.7px; text-transform:uppercase; }
.ea-location-stat small { display:block; margin-top:4px; color:#71818e; font-size:9px; }

.ea-location-list,
.ea-location-nav,
.ea-location-about,
.ea-location-map-cta {
  border:1px solid #273747;
  border-radius:14px;
  background:linear-gradient(180deg,rgba(13,19,29,.97),rgba(9,14,22,.97));
}

.ea-location-list { padding:20px; }
.ea-location-section-head { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:14px; }
.ea-location-section-title { display:flex; align-items:center; gap:10px; }
.ea-location-section-signal { color:#ff2347; font-size:22px; line-height:1; }
.ea-location-section-head h2 { margin:0; font-size:21px; }
.ea-location-result-count { color:#a0afba; font-size:11px; }

.ea-location-alerts { display:flex; flex-direction:column; gap:10px; }
.ea-location-alert {
  display:grid;
  grid-template-columns:4px 62px minmax(0,1fr) auto;
  gap:15px;
  align-items:center;
  min-height:116px;
  padding:0 16px 0 0;
  border:1px solid #263543;
  border-radius:12px;
  background:rgba(255,255,255,.018);
  overflow:hidden;
}
.ea-location-alert-accent { align-self:stretch; width:4px; background:#697d8e; }
.ea-location-alert-traffic .ea-location-alert-accent { background:#e89a00; }
.ea-location-alert-fire .ea-location-alert-accent { background:#ff553d; }
.ea-location-alert-medical .ea-location-alert-accent { background:#35a7ff; }
.ea-location-alert-suspicious .ea-location-alert-accent,
.ea-location-alert-disturbance .ea-location-alert-accent { background:#e22845; }
.ea-location-alert-property .ea-location-alert-accent { background:#c98aef; }

.ea-location-alert-icon {
  width:52px;
  height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:#a90a24;
  color:white;
  font-size:24px;
}
.ea-location-alert-copy { min-width:0; padding:16px 0; }
.ea-location-alert-copy h3 { margin:0; color:#fff; font-size:18px; line-height:1.25; }
.ea-location-alert-copy h3 a { color:inherit; text-decoration:none; }
.ea-location-alert-area { margin-top:5px; color:#aab8c3; font-size:12px; font-weight:800; }
.ea-location-alert-address { margin-top:5px; color:#8fc1ff; font-size:11px; }
.ea-location-alert-meta { align-self:center; text-align:right; min-width:170px; }
.ea-location-active { display:inline-flex; align-items:center; gap:5px; margin-bottom:6px; color:#53e489; font-size:9px; font-weight:950; }
.ea-location-active i { width:6px; height:6px; border-radius:50%; background:#53e489; box-shadow:0 0 0 3px rgba(83,228,137,.12); }
.ea-location-alert-meta time { display:block; color:#98a7b3; font-size:10px; }
.ea-location-alert-link { display:inline-flex; margin-top:10px; color:#75b4ff; text-decoration:none; font-size:11px; font-weight:900; }

.ea-location-empty { padding:20px; color:#82929f; }
.ea-location-empty strong { color:#e5edf3; }
.ea-location-empty a { color:#7db7ff; }

.ea-location-info-strip {
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top:14px;
  padding:14px 16px;
  border:1px solid rgba(75,151,255,.25);
  border-radius:10px;
  background:rgba(31,91,165,.09);
  color:#9cc9ff;
  font-size:11px;
  line-height:1.5;
}

.ea-location-map-cta {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-top:14px;
  padding:17px 18px;
  border-color:rgba(204,18,49,.55);
  background:linear-gradient(90deg,rgba(88,8,24,.34),rgba(50,9,19,.18));
}
.ea-location-map-copy { display:flex; align-items:center; gap:14px; min-width:0; }
.ea-location-map-icon { width:50px; height:50px; display:flex; align-items:center; justify-content:center; border-radius:12px; background:rgba(199,11,43,.18); border:1px solid rgba(199,11,43,.35); font-size:24px; }
.ea-location-map-copy h3 { margin:0; font-size:18px; }
.ea-location-map-copy p { margin:4px 0 0; color:#9ba9b5; font-size:11px; }
.ea-location-map-button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 20px; border-radius:9px; background:linear-gradient(#e51b3c,#b50826); color:white; text-decoration:none; font-size:12px; font-weight:950; white-space:nowrap; }

.ea-location-nav { padding:18px; }
.ea-location-nav h2,.ea-location-about h2 { margin:0; font-size:18px; }
.ea-location-nav-links { display:flex; flex-direction:column; margin-top:12px; }
.ea-location-nav-links a {
  display:grid;
  grid-template-columns:30px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  min-height:49px;
  padding:7px 8px;
  border-bottom:1px solid rgba(255,255,255,.08);
  color:#e0e7ed;
  text-decoration:none;
  font-size:11px;
  font-weight:800;
}
.ea-location-nav-links a:last-child { border-bottom:0; }
.ea-location-nav-links a[aria-current="page"] { margin:2px 0; border:1px solid #4f91e9; border-radius:9px; background:rgba(59,128,219,.12); }
.ea-location-nav-icon {
  width:28px !important;
  height:28px !important;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  background:rgba(93,126,255,.1);
  overflow:hidden;
}
.ea-location-nav-icon img {
  width:22px !important;
  max-width:22px !important;
  height:22px !important;
  object-fit:contain !important;
  display:block !important;
}
.ea-location-nav-links b { color:#8799a7; font-size:18px; font-weight:400; }
.ea-location-all-alerts { display:flex; align-items:center; gap:9px; margin-top:10px; padding:11px 10px; border-radius:9px; background:#13261c; border:1px solid rgba(70,223,128,.18); color:#dcf6e5; text-decoration:none; font-size:10px; font-weight:900; }
.ea-live-pulse { width:7px; height:7px; border-radius:50%; background:#50df86; box-shadow:0 0 0 4px rgba(80,223,134,.1); }

.ea-location-about { padding:18px; }
.ea-location-about-title { display:flex; align-items:center; gap:9px; }
.ea-location-about-badge { width:27px; height:27px; display:flex; align-items:center; justify-content:center; border:1px solid rgba(175,110,255,.35); border-radius:50%; color:#c38aff; font-size:13px; font-weight:900; }
.ea-location-about p { margin:13px 0 0; color:#8f9eaa; font-size:11px; line-height:1.65; }

.ea-location-footer-meta { display:flex; justify-content:center; flex-wrap:wrap; gap:24px; padding:20px 10px 0; color:#788793; font-size:10px; }

@media (max-width:1050px) {
  .ea-location-dashboard { grid-template-columns:1fr; }
  .ea-location-sidebar { display:grid; grid-template-columns:1fr 1fr; }
  .ea-location-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:760px) {
  .ea-location-page { padding:0 10px 24px; }
  .ea-location-topbar { min-height:66px; padding:10px 4px; }
  .ea-location-brand img { width:145px !important; max-width:145px !important; }
  .ea-location-topnav a:not(.ea-location-alert-button) { display:none; }
  .ea-location-alert-button { min-height:34px !important; padding:0 12px !important; }
  .ea-location-hero { padding:24px 20px; min-height:0; }
  .ea-location-hero-watermark { display:none; }
  .ea-location-page-icon { width:58px !important; height:58px !important; min-width:58px; }
  .ea-location-page-icon img { width:38px !important; max-width:38px !important; height:38px !important; }
  .ea-location-hero h1 { font-size:36px; }
  .ea-location-subtitle { font-size:16px; }
  .ea-location-stats { grid-template-columns:1fr 1fr; }
  .ea-location-stat { grid-template-columns:43px minmax(0,1fr); min-height:88px; padding:12px; }
  .ea-location-stat-icon { width:41px; height:41px; font-size:19px; }
  .ea-location-stat strong { font-size:25px; }
  .ea-location-sidebar { grid-template-columns:1fr; }
  .ea-location-alert { grid-template-columns:4px 48px minmax(0,1fr); padding-right:12px; }
  .ea-location-alert-icon { width:42px; height:42px; font-size:19px; }
  .ea-location-alert-meta { grid-column:3; text-align:left; min-width:0; padding-bottom:12px; }
  .ea-location-map-cta { align-items:flex-start; flex-direction:column; }
  .ea-location-map-button { width:100%; }
}

@media (max-width:480px) {
  .ea-location-stats { grid-template-columns:1fr; }
  .ea-location-title-row { align-items:flex-start; }
  .ea-location-hero h1 { font-size:31px; }
}

/* 2026-08-21 production hardening: location artwork uses fixed glyph badges,
   never full-size park image assets. These rules intentionally win over
   legacy dashboard CSS. */
.ea-location-page .ea-location-hero-watermark { display:none !important; }
.ea-location-page .ea-location-page-icon {
  width:64px !important; height:64px !important; min-width:64px !important;
  max-width:64px !important; max-height:64px !important;
  flex:0 0 64px !important; overflow:hidden !important;
  font-size:36px !important; line-height:1 !important;
  color:#fff !important;
}
.ea-location-page .ea-location-nav-icon {
  width:28px !important; height:28px !important; min-width:28px !important;
  max-width:28px !important; max-height:28px !important;
  flex:0 0 28px !important; overflow:hidden !important;
  font-size:17px !important; line-height:1 !important; color:#fff !important;
}
.ea-location-page .ea-location-nav-icon img {
  display:block !important;
  width:22px !important;
  height:22px !important;
  max-width:22px !important;
  max-height:22px !important;
  object-fit:contain !important;
}
.ea-location-page .ea-location-page-icon img {
  display:block !important;
  width:42px !important;
  height:42px !important;
  max-width:42px !important;
  max-height:42px !important;
  object-fit:contain !important;
}
.ea-location-page .ea-location-hero { min-height:220px !important; }
.ea-location-page .ea-location-stats {
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:10px !important;
}
.ea-location-page .ea-location-list { min-height:0 !important; height:auto !important; }
.ea-location-page .ea-location-alerts { min-height:0 !important; height:auto !important; }
@media (max-width:1050px) {
  .ea-location-page .ea-location-stats { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width:480px) {
  .ea-location-page .ea-location-stats { grid-template-columns:1fr !important; }
}

/* =========================================================
   LOCATION HERO PHOTOGRAPH - right-side image with left fade
   ========================================================= */

.ea-location-hero {
  isolation:isolate;
}

/* Photo layer. The image stays on the right and does not change hero sizing. */
.ea-location-hero::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-image:var(--ea-hero-image);
  background-repeat:no-repeat;
  background-position:right center;
  background-size:cover;
  opacity:.96;
}

/* Dark fade protects the copy while allowing the photo to show on the right. */
.ea-location-hero::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    linear-gradient(
      90deg,
      rgba(7,15,27,1) 0%,
      rgba(7,15,27,1) 28%,
      rgba(7,15,27,.97) 38%,
      rgba(7,15,27,.89) 48%,
      rgba(7,15,27,.65) 60%,
      rgba(7,15,27,.34) 73%,
      rgba(7,15,27,.10) 88%,
      rgba(7,15,27,.04) 100%
    );
}

/* Keep all real hero content above the photo and gradient. */
.ea-location-hero-copy {
  position:relative;
  z-index:2;
}

/* On smaller screens, keep the picture subtle so the title remains dominant. */
@media (max-width:760px) {
  .ea-location-hero::before {
    background-position:right center;
    opacity:.50;
  }

  .ea-location-hero::after {
    background:
      linear-gradient(
        90deg,
        rgba(7,15,27,1) 0%,
        rgba(7,15,27,.99) 54%,
        rgba(7,15,27,.86) 100%
      ),
      linear-gradient(
        0deg,
        rgba(7,15,27,.48) 0%,
        rgba(7,15,27,.08) 100%
      );
  }
}


/* Real Disney area icons - match main dashboard artwork */
.ea-location-page .ea-location-page-icon {
  background:rgba(69,45,140,.62) !important;
  border:1px solid rgba(145,113,255,.45) !important;
}
.ea-location-page .ea-location-nav-icon {
  background:rgba(43,58,99,.72) !important;
  border:1px solid rgba(255,255,255,.06) !important;
}
