:root {
  color-scheme: light;
  --bg: #f5f8ff;
  --bg-soft: #ffffff;
  --text: #102033;
  --muted: #65758b;
  --line: #dbe5f2;
  --primary: #2367d1;
  --primary-dark: #174ea6;
  --primary-soft: #e9f1ff;
  --success: #0f766e;
  --warning: #a16207;
  --danger: #b42318;
  --shadow: 0 24px 70px rgba(31, 64, 104, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: -12vh 0 -28vh;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(247, 250, 255, 0.88) 0%, rgba(237, 244, 255, 0.84) 50%, rgba(255, 255, 255, 0.9) 100%),
    url("https://sajvwebsiteblobstorage.blob.core.windows.net/blog/tools-2375/featured-background_blur.jpg") center center / cover no-repeat;
}

button,
a {
  font: inherit;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  border: 1px solid rgba(219, 229, 242, 0.9);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

h1,
h2 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 820px;
  font-size: clamp(2rem, 5vw, 4.1rem);
  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  letter-spacing: -0.035em;
}

.intro {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  display: grid;
  gap: 12px;
  justify-items: end;
  flex: 0 0 auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 14px 30px rgba(35, 103, 209, 0.26);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(35, 103, 209, 0.3);
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--success);
  background: #e6fffb;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill.is-loading {
  color: var(--warning);
  background: #fff7d6;
}

.status-pill.is-error {
  color: var(--danger);
  background: #fff0f0;
}

.grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 22px;
  margin-top: 22px;
}

.card {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(219, 229, 242, 0.95);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 18px 45px rgba(30, 58, 92, 0.08);
  backdrop-filter: blur(14px);
}

.wide-card {
  grid-row: span 2;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.compact-header {
  align-items: center;
}

.small-muted {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.info-table th,
.info-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.45;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: 0;
}

.info-table th {
  width: 34%;
  color: #344761;
  background: #f8fbff;
  font-weight: 800;
}

.info-table td {
  color: #17283d;
  overflow-wrap: anywhere;
}

.compact-table th {
  width: 38%;
}

.map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.map-link[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.48;
}

.map-frame-wrap {
  position: relative;
  overflow: hidden;
  height: 340px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.map-frame,
.map-placeholder {
  width: 100%;
  height: 100%;
}

.map-frame {
  display: block;
  border: 0;
  background: #ffffff;
}

.map-placeholder {
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  background: #f8fbff;
  text-align: center;
}

.map-frame[hidden],
.map-placeholder[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .page-shell {
    width: min(100% - 24px, 720px);
    padding: 24px 0 56px;
  }

  .hero {
    align-items: stretch;
    flex-direction: column;
    padding: 26px;
  }

  .hero-actions {
    justify-items: stretch;
  }

  .button,
  .status-pill {
    width: 100%;
  }

  .grid-layout {
    grid-template-columns: 1fr;
  }

  .wide-card {
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .card {
    padding: 18px;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table th {
    padding-bottom: 6px;
    border-bottom: 0;
  }

  .info-table td {
    padding-top: 6px;
  }

  .info-table tr {
    border-bottom: 1px solid var(--line);
  }

  .info-table tr:last-child {
    border-bottom: 0;
  }

  .info-table tr:last-child th,
  .info-table tr:last-child td {
    border-bottom: 0;
  }
}
