:root {
  --bg: #f4f8f9;
  --surface: #ffffff;
  --line: #d3e4e2;
  --text: #111827;
  --muted: #64748b;
  --primary: #0f766e;
  --primary-2: #0d625b;
  --info: #0369a1;
  --success: #15803d;
  --warning: #a16207;
  --danger: #be123c;
  --radius: 12px;
  --shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
  --app-max: 520px;
  --bar-height: 52px;
  --safe-bottom: max(12px, env(safe-area-inset-bottom, 0px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: linear-gradient(180deg, #f7fbfb, var(--bg) 22%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.45;
}

.app-frame {
  max-width: var(--app-max);
  margin: 0 auto;
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fcfb 0%, var(--bg) 18%);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

@media (min-width: 560px) {
  .app-frame {
    margin: 12px auto;
    min-height: calc(100vh - 24px);
    border-radius: 16px;
    overflow: hidden;
  }
}

.app-header {
  flex-shrink: 0;
  z-index: 20;
}

.app-main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 14px calc(var(--safe-bottom) + 20px);
  -webkit-overflow-scrolling: touch;
}

.top-app-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  min-height: var(--bar-height);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.app-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  border-radius: 6px;
  transition: opacity 0.15s ease;
}

.app-logo:hover {
  opacity: 0.8;
}

.app-logo img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.top-app-bar .title {
  flex: 1;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: left;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-app-bar .icon-btn {
  min-width: 36px;
  padding: 8px;
  background: transparent;
  color: var(--text);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  font-weight: 600;
}

.top-app-bar .icon-btn:hover {
  background: #f1f5f4;
}

.top-app-bar .icon-btn:disabled {
  opacity: 0.25;
  cursor: default;
}

.top-app-bar .search-slot {
  flex: 1;
  min-width: 0;
}

.top-app-bar .search-slot input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #aac9c6;
  font: inherit;
  font-size: 0.9rem;
}

.top-app-bar .search-slot input:focus {
  border-color: var(--primary);
  outline: 2px solid rgba(15, 118, 110, 0.14);
}

.icon-btn.hidden {
  visibility: hidden;
  pointer-events: none;
}

.desktop-nav {
  display: none;
}

.account-menu {
  margin-left: auto;
  position: relative;
}

.top-app-bar .profile-btn {
  border: 1px solid #8fc8c3;
  border-radius: 999px;
  padding: 3px;
  min-width: 40px;
  min-height: 40px;
}

.profile-avatar {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: center / cover no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%230f766e'/%3E%3Cstop offset='1' stop-color='%230369a1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='64' height='64' rx='32' fill='url(%23g)'/%3E%3Ccircle cx='32' cy='23' r='11' fill='%23ecfeff'/%3E%3Cpath d='M12 58c3-12 11-18 20-18s17 6 20 18' fill='%23ecfeff'/%3E%3C/svg%3E");
}

.account-avatar-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 4px;
}

.account-avatar-preview {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}

.account-avatar-preview-fallback {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: center / cover no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%230f766e'/%3E%3Cstop offset='1' stop-color='%230369a1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='64' height='64' rx='32' fill='url(%23g)'/%3E%3Ccircle cx='32' cy='23' r='11' fill='%23ecfeff'/%3E%3Cpath d='M12 58c3-12 11-18 20-18s17 6 20 18' fill='%23ecfeff'/%3E%3C/svg%3E");
}

.account-avatar-actions {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.small-copy {
  font-size: 0.85rem;
  line-height: 1.35;
}

.account-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 6px;
  display: none;
  z-index: 25;
}

.account-menu.is-open .account-menu-panel {
  display: block;
}

.account-menu-item {
  width: 100%;
  border: none;
  border-radius: 8px;
  background: transparent;
  padding: 9px 10px;
  text-align: left;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.account-menu-item:hover {
  background: #f1f5f4;
}

.account-menu-item-danger {
  color: var(--danger);
}

.desktop-nav-item {
  padding: 6px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--primary);
  cursor: pointer;
  white-space: nowrap;
}

.desktop-nav-item:hover {
  background: #f1f5f4;
}

.home-layout {
  display: block;
}

@media (max-width: 1023px) {
  .home-panel-hidden-mobile {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-sheet,
  .menu-backdrop {
    transition: none;
  }
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.menu-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.menu-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 100%);
  width: min(var(--app-max), 100%);
  max-height: min(78vh, 520px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shadow);
  z-index: 41;
  padding: 8px 0 calc(12px + var(--safe-bottom));
  transition: transform 0.22s ease;
}

.menu-sheet.is-open {
  transform: translate(-50%, 0);
}

@media (min-width: 560px) {
  .menu-sheet {
    border-radius: var(--radius);
    bottom: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    width: min(360px, 100% - 32px);
    max-height: min(70vh, 480px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
  }

  .menu-sheet.is-open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
  }
}

.menu-sheet h2 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 8px 16px 4px;
  margin: 0;
}

.menu-sheet nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 8px;
}

.menu-sheet .menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
}

.menu-sheet .menu-item:hover {
  background: #f1f5f4;
}

.menu-sheet .menu-item.muted-line {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.85rem;
}

.view-stack {
  min-height: 120px;
}

.page {
  max-width: 1080px;
  margin: 0 auto;
}

.hero,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero {
  padding: 16px;
  margin-bottom: 12px;
}

.card {
  padding: 14px;
  margin-bottom: 12px;
}

h1,
h2,
h3 {
  margin: 0;
}

.view-title {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

h2 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.muted {
  color: var(--muted);
  font-size: 0.88rem;
}

.row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.field {
  margin-bottom: 8px;
}

.input-row {
  display: flex;
  gap: 8px;
}

input,
textarea,
select {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #aac9c6;
  background: #fff;
  font: inherit;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  outline: 2px solid rgba(15, 118, 110, 0.14);
}

button:not(.icon-btn):not(.menu-item) {
  border: 0;
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 600;
  cursor: pointer;
  font: inherit;
}

a.btn-primary,
a.btn-secondary,
a.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 600;
  font: inherit;
  cursor: pointer;
  box-sizing: border-box;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
}

.btn-secondary {
  color: #1e293b;
  background: #dbe8e7;
}

.btn-outline {
  color: var(--primary);
  background: transparent;
  border: 1px solid #8fc8c3;
}

.btn-block {
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.76rem;
  font-weight: 600;
}

.badge-ok {
  background: #d8f4e5;
  color: #0f5c31;
}

.badge-pending {
  background: #fff3d1;
  color: #8f5a00;
}

.badge-risk {
  background: #ffe4e8;
  color: #9f1239;
}

/* BugScan structured result (JSON → HTML sections) */
.bugscan-structured {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bugscan-section {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fafcfb;
}

.bugscan-section-title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--text);
}

.bugscan-dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.bugscan-dl dt {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-2, #0d6b62);
}

.bugscan-dl dd {
  margin: 2px 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted, #5a6b68);
}

.bugscan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.bugscan-table th,
.bugscan-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.bugscan-table th {
  font-weight: 600;
  color: var(--text);
  background: #f0f5f4;
}

.bugscan-table tbody tr:last-child td {
  border-bottom: none;
}

.bugscan-structured .table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.bugscan-notes {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted, #5a6b68);
}

.bugscan-notes li {
  margin-bottom: 6px;
}

.bugscan-notes li:last-child {
  margin-bottom: 0;
}

.bugscan-disclaimer {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
}

.alert {
  border-radius: 10px;
  padding: 9px 10px;
  border: 1px solid;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.alert:last-child {
  margin-bottom: 0;
}

.alert-info {
  border-color: #9fcbeb;
  background: #eaf6ff;
}

.alert-warning {
  border-color: #f3d297;
  background: #fff7e5;
}

.alert-danger {
  border-color: #f0b2c0;
  background: #fff0f4;
}

.search-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bugscan-place-loading {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.property-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
  transition: background 0.15s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.property-item:hover {
  background: #f8fcfb;
}

.property-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f1f5f4;
  object-fit: cover;
  flex-shrink: 0;
}

.property-thumb-photo {
  width: 72px;
  height: 56px;
  border-radius: 9px;
}

.property-thumb-fallback {
  background: linear-gradient(160deg, #e0f2f1, #f8fcfb);
}

.property-meta {
  min-width: 0;
}

.property-item strong {
  display: block;
  margin-bottom: 4px;
}

.job-edit-block {
  position: relative;
  z-index: 2;
  isolation: isolate;
}

.job-edit-name-form .job-name-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
  margin-top: 6px;
}

.job-edit-name-form .job-name-actions input {
  flex: 1 1 200px;
  min-width: 0;
}

.job-edit-name-form .job-name-actions .btn-secondary {
  flex: 0 0 auto;
  align-self: center;
}

@media (max-width: 700px) {
  .job-edit-name-form .job-name-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .job-edit-name-form .job-name-actions .btn-secondary {
    align-self: stretch;
    width: 100%;
  }
}

.job-scan-meta-line {
  display: block;
  margin-top: 2px;
}

.job-scan-status {
  display: block;
  margin-top: 8px;
}

.property-gallery {
  margin: 0 0 12px;
}

.property-gallery-hero {
  width: 100%;
  height: 220px;
  border-radius: 10px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: #f1f5f4;
}

.property-gallery-meta {
  display: flex;
  justify-content: flex-end;
  margin: 6px 0 8px;
}

.property-gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.property-gallery-thumb {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
}

.property-gallery-thumb.active {
  box-shadow: inset 0 0 0 2px #4f8a84;
  border-color: #7fb9b3;
}

.property-gallery-thumb img {
  width: 100%;
  height: 62px;
  object-fit: cover;
  display: block;
}

.kpi-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kpi {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px;
  background: #fff;
}

.kpi b {
  display: block;
  font-size: 1.15rem;
}

.photo-drop {
  border: 2px dashed #87beb9;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  background: #f2fbfa;
}

.photo-drop.is-dragover {
  border-color: var(--primary, #0d9488);
  background: #e6f7f5;
}

.photo-drop.has-staged {
  border-style: solid;
  border-color: var(--primary);
  background: var(--surface);
}

.photo-staged-wrap {
  margin-top: 14px;
  text-align: left;
}

.photo-staged-heading {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.photo-staged-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.photo-staged-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7fcfb;
}

.photo-staged-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--line);
}

.photo-staged-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-staged-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.photo-staged-name {
  font-size: 0.88rem;
  line-height: 1.3;
  word-break: break-word;
}

.photo-staged-remove {
  padding: 5px 10px;
  font-size: 0.82rem;
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: #dce9e8;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), #14b8a6);
  transition: width 0.3s ease;
}

.tips-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.tips-checklist li::before {
  content: "✓ ";
  color: var(--success);
  font-weight: 700;
}

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

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 360px;
}

th,
td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}

th {
  background: #f2f9f8;
}

.activity {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}

.activity p {
  margin: 0 0 6px;
  font-size: 0.88rem;
}

.activity p:last-child {
  margin-bottom: 0;
}

.segmented {
  display: flex;
  padding: 0;
  gap: 0;
  background: #e8f2f0;
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 12px;
}

.segmented button {
  flex: 1;
  padding: 10px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  background: transparent;
  color: var(--muted);
  border: none;
  cursor: pointer;
  font: inherit;
}

.segmented button.active {
  background: #fff;
  color: var(--primary);
  box-shadow: inset 0 0 0 1px #8fc8c3;
}

.map-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fcfb;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
}

.map-canvas {
  width: 100%;
  height: 280px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(160deg, #e0f2f1 0%, #f0fdfa 45%, #fff 100%);
}

.map-panel .map-placeholder {
  font-size: 2.5rem;
  opacity: 0.5;
}

.map-panel .map-hint {
  margin: 0;
  text-align: center;
}

.search-panel-hidden {
  display: none !important;
}

.leaflet-popup-content-wrapper {
  border-radius: 10px;
}

.leaflet-popup-content {
  margin: 10px 12px;
  min-width: 160px;
}

.leaflet-popup-content strong {
  display: block;
  margin-bottom: 4px;
}

.job-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #9fcbeb;
  background: #eaf6ff;
  margin-bottom: 12px;
  font-size: 0.88rem;
}

.job-banner > span:first-child {
  min-width: 0;
}

.job-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.job-banner button {
  flex-shrink: 0;
}

.admin-nav-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.admin-nav-card {
  display: block;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.admin-nav-card:hover {
  border-color: #8fc8c3;
}

.admin-nav-card .muted {
  display: block;
  margin-top: 4px;
  font-weight: 500;
}

pre.json-preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.72rem;
  background: #f8fafc;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  max-height: 160px;
  overflow-y: auto;
}

details.raw-job {
  margin-top: 10px;
}

details.raw-job summary {
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.loading-bug {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 16px;
  text-align: center;
}

.loading-bug img {
  width: 72px;
  height: auto;
}

.loading-bug span {
  color: var(--muted);
  font-size: 0.88rem;
}

.area-search-loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  vertical-align: middle;
}

.area-search-spinner {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 2px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: area-search-spin 0.75s linear infinite;
}

@keyframes area-search-spin {
  to {
    transform: rotate(360deg);
  }
}

.lodging-search-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(244, 248, 249, 0.82);
  backdrop-filter: blur(2px);
}

.lodging-search-overlay-card {
  max-width: 280px;
  padding: 20px 22px;
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.lodging-search-overlay-spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto 14px;
  display: block;
  border-width: 3px;
}

.lodging-search-overlay-title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.lodging-search-overlay-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

input.checkbox-inline {
  width: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 1024px) {
  :root {
    --app-max: min(1120px, 92vw);
  }

  .app-main {
    padding: 14px 20px 24px;
  }

  .top-app-bar {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .desktop-nav {
    display: flex;
    flex: 1 1 100%;
    order: 10;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    border-top: 1px solid var(--line);
    margin: 0 -12px;
    padding: 8px 12px 0;
  }

  .layout-desktop #nav-menu {
    display: none;
  }

  .home-tabs-mobile {
    display: none !important;
  }

  .home-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
  }

  .home-layout > .card {
    margin-bottom: 0;
  }

  .home-panel {
    display: block !important;
    margin-bottom: 0;
  }

  .admin-nav-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  ul.search-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .map-canvas {
    height: 340px;
  }
}

@media (max-width: 600px) {
  .account-menu-panel {
    right: -2px;
    min-width: 168px;
  }
}

@media (max-width: 700px) {
  .input-row {
    flex-direction: column;
  }

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

  .property-gallery-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
