:root {
  --qm-teal: #0d6e6e;
  --qm-teal-dark: #084f4f;
  --qm-sand: #f4f1ea;
  --qm-ink: #1a2332;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--qm-ink);
  background: var(--qm-sand);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.qm-navbar {
  background: var(--qm-ink);
}

.qm-brand {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff !important;
}

.qm-navbar .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

.qm-navbar .nav-link:hover {
  color: #fff;
}

.qm-navbar .nav-link.active {
  color: #fff;
  font-weight: 600;
}

.qm-nav-end {
  margin-left: 0.25rem;
}

.qm-language-switch {
  display: flex;
  align-items: center;
}

.qm-language-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1;
  padding: 0.5rem 0.65rem;
}

.qm-language-toggle:hover,
.qm-language-toggle:focus,
.qm-language-toggle.show {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.qm-language-menu {
  border: none;
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.15);
}

.qm-language-menu .dropdown-item.active,
.qm-language-menu .dropdown-item:active {
  background-color: var(--qm-teal);
}

@media (min-width: 992px) {
  .qm-nav-end {
    margin-left: 0.5rem;
    padding-left: 0.85rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
  }
}

.qm-country-menu {
  max-height: min(70vh, 420px);
  overflow-y: auto;
  border: none;
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.15);
}

.qm-country-menu .dropdown-item.active,
.qm-country-menu .dropdown-item:active {
  background-color: var(--qm-teal);
}

.qm-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, var(--qm-teal-dark), var(--qm-teal) 55%, #3a9a9a);
  color: #fff;
  padding: 3.5rem 0 3rem;
}

.qm-hero-video-bg {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.qm-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(0.9) contrast(1.05);
}

.qm-hero-video-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 79, 79, 0.55) 0%, rgba(8, 79, 79, 0.82) 55%, rgba(26, 35, 50, 0.92) 100%),
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(13, 110, 110, 0.18), rgba(8, 79, 79, 0.78));
}

.qm-hero-content {
  position: relative;
  z-index: 2;
}

.qm-country-bar-section {
  margin-top: -1.25rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.qm-country-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1.1rem;
  background: #fff;
  border-radius: 0.85rem;
  box-shadow: 0 10px 28px rgba(26, 35, 50, 0.1);
  border: 1px solid rgba(26, 35, 50, 0.08);
}

.qm-country-bar-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--qm-teal-dark);
  white-space: nowrap;
}

.qm-country-select-wrap {
  flex: 1 1 14rem;
  min-width: min(100%, 12rem);
  position: relative;
}

.qm-country-select-wrap::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--qm-teal-dark);
  border-bottom: 2px solid var(--qm-teal-dark);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.qm-country-select {
  width: 100%;
  max-width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid #d4cdc0;
  border-radius: 0.55rem;
  background: var(--qm-sand);
  color: var(--qm-ink);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  padding: 0.6rem 2.25rem 0.6rem 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  touch-action: manipulation;
}

.qm-country-select:hover {
  border-color: #b8b0a0;
}

.qm-country-select:focus {
  outline: none;
  border-color: var(--qm-teal);
  box-shadow: 0 0 0 3px rgba(13, 110, 110, 0.18);
  background: #fff;
}

.qm-country-select option {
  color: var(--qm-ink);
  background: #fff;
}

@media (max-width: 575.98px) {
  .qm-country-bar-section {
    margin-top: -0.75rem;
    margin-bottom: 0.75rem;
    z-index: 5;
  }

  .qm-country-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
  }

  .qm-country-bar-label {
    text-align: left;
  }

  .qm-country-select-wrap {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
  }

  /* Native picker on touch devices — custom appearance breaks on many phones */
  .qm-country-select {
    appearance: auto;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    font-size: 16px;
    min-height: 44px;
    padding: 0.55rem 2rem 0.55rem 0.75rem;
    background: #fff;
  }

  .qm-country-select-wrap::after {
    display: none;
  }
}

.qm-hero .stat-pill {
  background: rgba(26, 35, 50, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.5rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.92);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.qm-hero .stat-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 6px 20px rgba(26, 35, 50, 0.35);
}

.qm-hero .stat-pill strong {
  color: #f4f1ea;
  font-weight: 700;
}

.qm-hero .stat-pill strong[data-count] {
  display: inline-block;
  min-width: 2.5ch;
  font-variant-numeric: tabular-nums;
}

.qm-hero-sm {
  padding: 2.5rem 0 2rem;
}

@media (prefers-reduced-motion: reduce) {
  .qm-hero-video-bg {
    display: none !important;
  }
}

.qm-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  opacity: 0.85;
  margin-bottom: 0.5rem;
}

.qm-eyebrow-breadcrumb {
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.875rem;
}

.qm-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(26, 35, 50, 0.08);
}

.qm-map {
  height: 420px;
  border-radius: 0.75rem;
  overflow: hidden;
  z-index: 0;
}

.qm-map.qm-map-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8e4dc;
}

.qm-map-loading-inner {
  padding: 1rem;
}

.qm-map-tall {
  height: 360px;
}

.qm-landmark-card .card-img-top {
  height: 160px;
  object-fit: cover;
}

.qm-img-placeholder {
  height: 160px;
  background: #e8e4dc;
}

.qm-detail-img {
  max-height: 420px;
  object-fit: cover;
}

.qm-detail-img.qm-img-placeholder {
  min-height: 280px;
}

.qm-landmark-hero img {
  display: block;
  max-height: min(52vh, 520px);
  width: 100%;
  object-fit: cover;
}

.qm-article {
  max-width: 42rem;
}

.qm-article-p {
  line-height: 1.7;
  margin-bottom: 1.1rem;
  color: var(--qm-ink);
}

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

.qm-article-figure {
  margin: 1.5rem 0;
}

.qm-article-figure img {
  max-height: 420px;
  object-fit: cover;
}

.qm-landmark-aside {
  position: sticky;
  top: 1rem;
}

@media (max-width: 991.98px) {
  .qm-landmark-aside {
    position: static;
  }
}

.qm-map-aside {
  height: 240px;
  border-radius: 0.5rem;
  overflow: hidden;
}

.qm-coords-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.qm-coords-text {
  font-size: 0.8rem;
  color: var(--qm-ink);
  background: rgba(0, 0, 0, 0.04);
  padding: 0.15rem 0.35rem;
  border-radius: 0.25rem;
}

.qm-aside-links li + li {
  margin-top: 0.35rem;
}

.qm-facts dt {
  color: #6c757d;
}

.qm-facts dd {
  margin-bottom: 0.65rem;
}

.qm-facts dt {
  margin-bottom: 0.65rem;
}

.qm-country-list .list-group-item {
  border-left: 0;
  border-right: 0;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.gm-style a {
  color: var(--qm-teal-dark);
  font-weight: 600;
}

.qm-related-section {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.qm-type-filters .btn {
  border-radius: 2rem;
}

.qm-country-browse {
  background: #fff;
}

.qm-letter-bar {
  max-height: 7rem;
  overflow-y: auto;
}

.qm-letter-btn {
  min-width: 2rem;
  padding-inline: 0.45rem;
  font-weight: 600;
}

.qm-near-radius {
  max-width: 7rem;
}

.qm-hero-browse {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.qm-top-destinations {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 2rem;
}

.qm-dest-link {
  color: var(--qm-ink);
  text-decoration: none;
  font-weight: 500;
}

.qm-dest-link:hover {
  color: var(--qm-teal-dark);
}

.qm-dest-list .list-group-item {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.qm-city-link {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin-right: 0.75rem;
}

.qm-city-link:hover {
  background: rgba(13, 110, 110, 0.06);
  border-radius: 0.35rem;
}

.qm-search-panel {
  padding: 1.25rem 1.35rem 1.35rem;
}

.qm-search-panel-head {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e5dfd2;
}

.qm-search-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--qm-teal);
  margin: 0;
}

.qm-search-title {
  color: var(--qm-ink);
  font-weight: 700;
}

.qm-search-input-group .input-group-text {
  background: #fff;
  border-color: #d4cdc0;
  color: var(--qm-teal-dark);
  padding-inline: 0.9rem;
}

.qm-search-input-group .qm-search-input {
  border-color: #d4cdc0;
  font-size: 1rem;
  padding: 0.75rem 0.85rem;
  box-shadow: none;
}

.qm-search-input-group .qm-search-input:focus {
  border-color: var(--qm-teal);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 110, 0.15);
}

.qm-search-input-group .qm-search-submit {
  background: var(--qm-teal);
  border-color: var(--qm-teal);
  font-weight: 600;
  padding-inline: 1.1rem;
  white-space: nowrap;
}

.qm-search-input-group .qm-search-submit:hover,
.qm-search-input-group .qm-search-submit:focus {
  background: var(--qm-teal-dark);
  border-color: var(--qm-teal-dark);
}

.qm-search-hint {
  min-height: 1.25rem;
}

.qm-search-results {
  max-height: 420px;
  border-top: 1px solid #ebe6dc;
  padding-top: 0.75rem;
  margin-top: 1rem !important;
}

@media (max-width: 991.98px) {
  .qm-search-input-group .qm-search-submit {
    padding-inline: 0.75rem;
    font-size: 0.9rem;
  }
}

.qm-search-hit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
}

.qm-search-thumb {
  width: 52px;
  height: 52px;
  border-radius: 0.5rem;
  object-fit: cover;
  flex-shrink: 0;
}

.qm-search-thumb-empty {
  background: #e8e4dc;
}

.qm-search-hit-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.qm-search-hit-title {
  font-weight: 600;
  line-height: 1.3;
}

.qm-search-hit-meta {
  line-height: 1.3;
}

/* Landmark visiting conditions — same typography as .qm-facts in aside */
.qm-weather-loading,
.qm-facilities-loading {
  margin-bottom: 0;
}

.qm-facilities-attribution {
  margin-top: 0.5rem;
  font-size: 0.75rem;
}

/* AddToAny share bar (landmark pages) */
.qm-share {
  margin-top: 1rem;
}

.qm-share-label {
  display: block;
  margin-bottom: 0.35rem;
}

.qm-a2a-kit {
  background: #f4f1ea;
  border: 1px solid #ddd6c8;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 32px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.qm-a2a-kit:hover {
  background: #ebe6dc;
  border-color: #c4b9a4;
}

/* Ko-fi floating donate widget — bottom left (default is bottom right) */
.floatingchat-container-wrap,
.floatingchat-container-wrap-mobi {
  left: 16px !important;
  right: auto !important;
}

.floating-chat-kofi-popup-iframe,
.floating-chat-kofi-popup-iframe-mobi,
.floating-chat-kofi-popup-iframe-closer-mobi {
  left: 16px !important;
  right: auto !important;
}

/* Nearby eats — card grid matching landmark cards */
.qm-nearby-eats-section .spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
}

.qm-nearby-eats-card {
  background: #fff;
  border-radius: 0.85rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.qm-nearby-eats-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(26, 35, 50, 0.12) !important;
}

.qm-nearby-eats-card .card-title {
  color: var(--qm-ink);
  line-height: 1.35;
}

.qm-eats-type {
  border-radius: 2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35em 0.65em;
}

.qm-eats-type-restaurant {
  background: #fff3e6;
  color: #9a5b13;
}

.qm-eats-type-cafe {
  background: #efe8dc;
  color: #5c4a32;
}

.qm-eats-type-fast-food {
  background: #fdeaea;
  color: #9b3030;
}

.qm-eats-type-bar,
.qm-eats-type-pub {
  background: #eef4fa;
  color: #2a5080;
}

.qm-nearby-eats-card .badge.text-bg-primary {
  background-color: var(--qm-teal) !important;
  font-variant-numeric: tabular-nums;
}
