:root {
  color-scheme: light;
  --map-blue: #bfe8f1;
  --map-ink: #172d37;
  --map-muted: #63757a;
  --map-line: rgba(22, 72, 78, 0.22);
  --pin: #e03430;
  --pin-dark: #a81717;
  --pin-core: #fff6f0;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --shadow: 0 18px 45px rgba(16, 43, 49, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: var(--map-blue);
  color: var(--map-ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.map-embed body {
  background: transparent;
}

.map-embed .map-shell {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.map-shell {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 420px;
  isolation: isolate;
}

.map-shell h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

#sri-lanka-map {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(237, 251, 253, 0.58), rgba(174, 220, 230, 0.5)),
    var(--map-blue);
  z-index: 1;
}

.map-embed #sri-lanka-map {
  background: transparent;
}

.map-embed #sri-lanka-map::after {
  box-shadow: none;
}

.map-embed .leaflet-control-container {
  display: none;
}

.map-embed .map-floating-actions {
  display: none;
}

.map-floating-actions {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 900;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.map-floating-action {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  color: #fff;
  pointer-events: auto;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.map-floating-action:hover,
.map-floating-action:focus-visible {
  outline: none;
  filter: saturate(1.05);
  transform: translateY(-3px);
}

.map-floating-action--whatsapp img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.map-floating-action--tickets {
  justify-self: center;
  width: 58px;
  height: 58px;
  border-radius: 15px;
  background: #1faa18;
  box-shadow: 0 14px 28px rgba(18, 152, 32, 0.22);
}

.map-floating-action--tickets i {
  display: block;
  width: 35px;
  height: 35px;
  background: #fff;
  -webkit-mask: url("../floating-actions/airplane.png?v=floating-icons1") center/contain no-repeat;
  mask: url("../floating-actions/airplane.png?v=floating-icons1") center/contain no-repeat;
}

.map-embed .map-hover-card {
  width: min(276px, calc(100vw - 24px));
}

#sri-lanka-map::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 450;
  content: "";
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    inset 0 0 90px rgba(31, 85, 91, 0.1);
}

.map-status,
.noscript-message {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 700;
  max-width: min(420px, calc(100vw - 32px));
  margin: 0;
  padding: 11px 14px;
  border: 1px solid rgba(163, 57, 51, 0.22);
  border-radius: 8px;
  background: rgba(255, 250, 248, 0.94);
  box-shadow: 0 12px 32px rgba(79, 33, 28, 0.16);
  color: #7a2e27;
  font-size: 13px;
  line-height: 1.45;
  transform: translateX(-50%);
}

.map-status:empty {
  display: none;
}

.leaflet-container {
  background: var(--map-blue);
  font-family: inherit;
}

.leaflet-control-zoom {
  overflow: hidden;
  border: 0 !important;
  border-radius: 8px !important;
  box-shadow: var(--shadow) !important;
}

.leaflet-control-zoom a {
  width: 38px !important;
  height: 38px !important;
  border: 0 !important;
  background: var(--surface-strong) !important;
  color: var(--map-ink) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 38px !important;
}

.leaflet-control-zoom a:first-child {
  border-bottom: 1px solid rgba(29, 78, 84, 0.12) !important;
}

.reset-map-control {
  margin-top: 12px !important;
  border: 0 !important;
}

.reset-map-control button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  color: var(--map-ink);
  cursor: pointer;
}

.reset-map-control button:hover,
.reset-map-control button:focus-visible,
.leaflet-control-zoom a:hover,
.leaflet-control-zoom a:focus-visible {
  background: #f6fcfd !important;
  outline: 2px solid rgba(224, 52, 48, 0.36);
  outline-offset: 2px;
}

.reset-map-control svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

.location-marker-icon {
  overflow: visible;
  pointer-events: none !important;
}

.sri-lanka-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 26px;
  height: 34px;
  pointer-events: auto;
  transform: translate(
    calc(-50% + var(--pin-offset-x, 0px)),
    calc(-100% + var(--pin-offset-y, 0px))
  );
}

.sri-lanka-pin::before {
  position: absolute;
  left: 50%;
  top: 2px;
  width: 22px;
  height: 22px;
  border: 2px solid var(--surface-strong);
  border-radius: 50% 50% 50% 0;
  background:
    radial-gradient(circle at 50% 48%, var(--pin-core) 0 18%, transparent 19%),
    linear-gradient(145deg, #ff655b 0%, var(--pin) 58%, var(--pin-dark) 100%);
  box-shadow:
    0 10px 16px rgba(113, 25, 20, 0.3),
    0 0 0 1px rgba(108, 23, 20, 0.16);
  content: "";
  transform: translateX(-50%) rotate(-45deg);
}

.sri-lanka-pin::after {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 14px;
  height: 5px;
  border-radius: 999px;
  background: rgba(31, 46, 43, 0.2);
  content: "";
  filter: blur(1px);
  transform: translateX(-50%);
}

.sri-lanka-pin.is-featured::before,
.sri-lanka-pin:hover::before,
.leaflet-marker-icon:focus .sri-lanka-pin::before {
  box-shadow:
    0 13px 20px rgba(113, 25, 20, 0.32),
    0 0 0 5px rgba(224, 52, 48, 0.14),
    0 0 0 1px rgba(108, 23, 20, 0.16);
}

.sri-lanka-image-marker {
  --image-marker-size: 42px;
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  pointer-events: auto;
  place-items: center;
  transform: translate(
    calc(-50% + var(--pin-offset-x, 0px)),
    calc(-50% + var(--pin-offset-y, 0px))
  );
}

.sri-lanka-image-marker img {
  display: block;
  width: var(--image-marker-size);
  height: var(--image-marker-size);
  object-fit: contain;
  filter:
    drop-shadow(0 6px 7px rgba(16, 43, 49, 0.2))
    drop-shadow(0 0 2px rgba(255, 255, 255, 0.74));
  transform-origin: center;
  transform: scale(var(--pin-scale, 1));
  transition: filter 0.18s ease, transform 0.18s ease;
}

.sri-lanka-image-marker:hover img,
.leaflet-marker-icon:focus .sri-lanka-image-marker img {
  filter:
    drop-shadow(0 10px 12px rgba(16, 43, 49, 0.28))
    drop-shadow(0 0 0 rgba(255, 255, 255, 0))
    drop-shadow(0 0 7px rgba(255, 255, 255, 0.86));
  transform: scale(calc(var(--pin-scale, 1) * 1.14));
}

.map-embed .sri-lanka-image-marker {
  --image-marker-size: 38px;
}

.location-label-icon {
  overflow: visible;
  pointer-events: none !important;
}

.map-location-label {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  color: #123f48;
  font-family: "Roboto Condensed", "Arial Narrow", Inter, ui-sans-serif, system-ui, sans-serif;
  pointer-events: none;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.62),
    0 8px 16px rgba(20, 92, 103, 0.12);
}

.map-location-label__line {
  position: absolute;
  overflow: visible;
  fill: none;
}

.map-location-label__line path {
  stroke: rgba(18, 63, 72, 0.82);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
  vector-effect: non-scaling-stroke;
}

.map-location-label__line circle {
  fill: #123f48;
  stroke: rgba(234, 252, 255, 0.86);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.map-location-label__text {
  position: absolute;
  left: var(--label-x);
  top: var(--label-y);
  display: grid;
  width: var(--label-width);
  gap: 2px;
  text-align: var(--label-align);
  transform: translateY(-50%);
}

.map-location-label__text strong,
.map-location-label__text span {
  display: block;
}

.map-location-label__text strong {
  color: #123f48;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
}

.map-location-label__text span {
  color: rgba(18, 63, 72, 0.86);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.12;
}

.map-embed .map-location-label__text strong {
  font-size: clamp(15px, 1.62vw, 19px);
}

.map-embed .map-location-label__text span {
  display: block;
  font-size: clamp(12px, 1.24vw, 15px);
}

@media(max-width:520px) {
  .sri-lanka-image-marker {
    --image-marker-size: 30px;
    width: 50px;
    height: 50px;
  }

  .map-embed .sri-lanka-image-marker {
    --image-marker-size: 34px;
  }
}

@media(max-width:760px), (max-height:520px) {
  .map-location-label__text span {
    display: none;
  }

  .map-location-label__text strong {
    font-size: 11px;
    line-height: 1;
  }

  .map-location-label__line path {
    stroke-width: 1.25;
  }
}

@media(max-width:520px) {
  .map-location-label {
    display: none;
  }
}

.map-adjuster-toggle,
.map-adjuster {
  position: fixed;
  z-index: 1200;
  font-family: inherit;
}

.map-adjuster-toggle {
  top: 14px;
  right: 14px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #172d37;
  box-shadow: 0 14px 34px rgba(16, 43, 49, 0.24);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.map-adjuster-toggle:hover,
.map-adjuster-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.86);
  outline-offset: 2px;
}

.map-adjuster {
  top: 62px;
  right: 14px;
  display: grid;
  width: min(520px, calc(100vw - 28px));
  max-height: min(760px, calc(100svh - 76px));
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(23, 45, 55, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(16, 43, 49, 0.26);
  color: #172d37;
}

.map-adjuster[hidden] {
  display: none;
}

.map-adjuster__header,
.map-adjuster__output-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.map-adjuster__header {
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(22, 72, 78, 0.14);
}

.map-adjuster__eyebrow,
.map-adjuster h2,
.map-adjuster h3,
.map-adjuster__coords {
  margin: 0;
}

.map-adjuster__eyebrow {
  color: #63757a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-adjuster h2 {
  margin-top: 3px;
  font-size: 18px;
  letter-spacing: 0;
}

.map-adjuster h3 {
  font-size: 15px;
}

.map-adjuster__close,
.map-adjuster button[data-action] {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: #e7f5f8;
  color: #172d37;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.map-adjuster__close {
  padding: 0 12px;
}

.map-adjuster__body {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(150px, 0.88fr) minmax(210px, 1.12fr);
}

.map-adjuster__locations {
  display: grid;
  max-height: 310px;
  align-content: start;
  gap: 4px;
  overflow: auto;
  padding: 12px;
  border-right: 1px solid rgba(22, 72, 78, 0.14);
}

.map-adjuster__locations button {
  width: 100%;
  min-height: 30px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #172d37;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  line-height: 1.25;
  text-align: left;
}

.map-adjuster__locations button:hover,
.map-adjuster__locations button.is-active {
  background: #172d37;
  color: #fff;
}

.map-adjuster__controls {
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 14px;
}

.map-adjuster__coords {
  color: #63757a;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.map-adjuster label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
}

.map-adjuster label span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.map-adjuster input[type="range"] {
  width: 100%;
  accent-color: #1596c8;
}

.map-adjuster__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-adjuster button[data-action] {
  padding: 0 10px;
}

.map-adjuster__output-wrap {
  display: grid;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(22, 72, 78, 0.14);
  background: rgba(241, 249, 251, 0.78);
}

.map-adjuster__output {
  width: 100%;
  height: 132px;
  resize: vertical;
  border: 1px solid rgba(22, 72, 78, 0.2);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  color: #172d37;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  line-height: 1.45;
}

@media(max-width:620px) {
  .map-adjuster {
    left: 10px;
    right: 10px;
    width: auto;
  }

  .map-adjuster__body {
    grid-template-columns: 1fr;
  }

  .map-adjuster__locations {
    max-height: 150px;
    border-right: 0;
    border-bottom: 1px solid rgba(22, 72, 78, 0.14);
  }
}

.sri-lanka-icon-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 48px;
  height: 54px;
  pointer-events: auto;
  place-items: start center;
  transform: translate(
    calc(-50% + var(--pin-offset-x, 0px)),
    calc(-100% + var(--pin-offset-y, 0px))
  );
}

.landmark-icon-badge {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  border: 2px solid var(--surface-strong);
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.92) 0 22%, transparent 23%),
    linear-gradient(145deg, #fffaf0 0%, #f8f1df 100%);
  box-shadow:
    0 12px 18px rgba(19, 57, 61, 0.24),
    0 0 0 1px rgba(108, 23, 20, 0.14);
  color: #213f43;
  place-items: center;
}

.landmark-icon-badge::before {
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--surface-strong);
  border-bottom: 2px solid var(--surface-strong);
  background: #f8f1df;
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.landmark-icon-badge::after {
  position: absolute;
  left: 50%;
  bottom: -11px;
  z-index: -1;
  width: 18px;
  height: 6px;
  border-radius: 999px;
  background: rgba(31, 46, 43, 0.2);
  content: "";
  filter: blur(1px);
  transform: translateX(-50%);
}

.sri-lanka-icon-marker:hover .landmark-icon-badge,
.leaflet-marker-icon:focus .sri-lanka-icon-marker .landmark-icon-badge {
  box-shadow:
    0 15px 22px rgba(19, 57, 61, 0.28),
    0 0 0 5px rgba(224, 52, 48, 0.14),
    0 0 0 1px rgba(108, 23, 20, 0.14);
}

.sri-lanka-icon-marker--lotus-tower {
  --icon-accent: #e0413a;
  --icon-fill: #f7d3ce;
  --icon-soft: #f3ab3f;
}

.sri-lanka-icon-marker--sigiriya {
  --icon-accent: #c97930;
  --icon-fill: #f3d4a8;
  --icon-soft: #4a8776;
}

.landmark-icon {
  position: relative;
  z-index: 1;
  display: block;
  width: 36px;
  height: 36px;
}

.landmark-icon__line,
.landmark-icon__soft,
.landmark-icon__light-line {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.7;
}

.landmark-icon__soft {
  stroke: var(--icon-soft);
  stroke-width: 2.25;
}

.landmark-icon__accent-fill {
  fill: var(--icon-fill, #f6dcc0);
  stroke: var(--icon-accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.landmark-icon__dark-fill {
  fill: currentColor;
}

.landmark-icon__shadow-fill {
  fill: rgba(33, 63, 67, 0.16);
}

.landmark-icon__light-fill {
  fill: rgba(255, 255, 255, 0.72);
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.landmark-icon__light-line {
  stroke: rgba(255, 255, 255, 0.76);
  stroke-width: 2.2;
}

.map-hover-card {
  position: absolute;
  z-index: 650;
  width: 292px;
  pointer-events: none;
  filter: drop-shadow(var(--shadow));
}

.map-hover-card[hidden] {
  display: none;
}

.location-popup .leaflet-popup-content-wrapper {
  overflow: hidden;
  border: 1px solid rgba(18, 62, 68, 0.12);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.location-popup {
  pointer-events: none;
}

.location-popup .leaflet-popup-content {
  width: 292px !important;
  margin: 0;
}

.location-popup .leaflet-popup-tip {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(18, 62, 68, 0.08);
  background: var(--surface);
  box-shadow: none;
}

.place-card {
  overflow: hidden;
  border: 1px solid rgba(18, 62, 68, 0.12);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  padding: 10px 10px 14px;
}

.place-card__gallery {
  display: grid;
  gap: 4px;
  height: 104px;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 7px;
  background: #d8ecec;
}

.place-card__gallery--1 {
  grid-template-columns: 1fr;
}

.place-card__gallery--2 {
  grid-template-columns: 1fr 1fr;
}

.place-card__gallery--3 {
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 1fr 1fr;
}

.place-card__gallery--3 img:first-child {
  grid-row: 1 / span 2;
}

.place-card__gallery img {
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
  display: block;
}

.place-card__type {
  margin: 0 0 5px;
  color: var(--pin-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.place-card__name {
  margin: 0;
  color: var(--map-ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.16;
}

.place-card__region {
  margin: 5px 0 0;
  color: var(--map-muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
}

.place-card__description {
  margin: 10px 0 0;
  color: #2f474d;
  font-size: 13px;
  line-height: 1.42;
}

.place-card__coordinates {
  display: block;
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid rgba(26, 78, 84, 0.12);
  color: #617277;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.leaflet-interactive.sri-lanka-boundary {
  filter:
    drop-shadow(0 16px 22px rgba(22, 73, 78, 0.2))
    drop-shadow(0 2px 0 rgba(255, 255, 255, 0.48));
}

.leaflet-interactive.sri-lanka-coastline-glow {
  filter: blur(0.2px);
}

@media (max-width: 620px) {
  .map-shell {
    min-height: 100svh;
  }

  .map-floating-actions {
    right: 12px;
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
  }

  .map-floating-action {
    width: 54px;
    height: 54px;
  }

  .map-floating-action--tickets {
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }

  .map-floating-action--tickets i {
    width: 30px;
    height: 30px;
  }

  .leaflet-top.leaflet-left {
    top: 10px;
    left: 10px;
  }

  .location-popup .leaflet-popup-content {
    width: min(286px, calc(100vw - 64px)) !important;
  }

  .map-hover-card {
    width: min(286px, calc(100vw - 64px));
  }

  .place-card__gallery {
    height: 94px;
  }

  .place-card {
    padding: 9px 9px 13px;
  }
}

@media (max-width: 520px) {
  .map-embed .map-location-label {
    display: block;
    transform: scale(0.46);
    transform-origin: 0 0;
  }

  .map-embed .map-location-label__line path {
    stroke: rgba(10, 63, 76, 0.72);
    stroke-width: 1.3;
  }

  .map-embed .map-location-label__line circle {
    fill: #0b4c5a;
    stroke-width: 1.2;
  }

  .map-embed .map-location-label__text {
    gap: 1px;
    padding: 2px 3px;
    border-radius: 4px;
    background: rgba(232, 252, 255, 0.68);
    box-shadow: 0 6px 14px rgba(18, 92, 108, 0.12);
  }

  .map-embed .map-location-label__text strong {
    font-size: 15px;
    line-height: 0.95;
  }

  .map-embed .map-location-label__text span {
    display: block;
    color: rgba(18, 63, 72, 0.84);
    font-size: 12px;
    line-height: 1.03;
  }
}

@media (max-width: 380px) {
  .map-embed .map-location-label {
    transform: scale(0.42);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
