/* Performance-safe responsive typography and a restrained arrival reveal. */
.dest {
  min-height: 64px;
  padding: clamp(12px, 1.6vw, 17px);
  border-color: rgba(105, 224, 230, 0.22);
  background: linear-gradient(145deg, rgba(8, 27, 36, 0.98), rgba(4, 17, 25, 0.98));
  text-align: start;
}

.dest b {
  display: block;
  color: #f5ffff;
  font-size: clamp(16px, 1.1vw + 12px, 20px);
  line-height: 1.3;
  letter-spacing: 0.005em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.dest small {
  color: #9ab9be;
  font-size: clamp(12px, 0.45vw + 10px, 14px);
  line-height: 1.45;
}

.film-kicker,
.flight {
  max-width: min(92vw, 620px);
}

.film-kicker strong,
.flight .name,
.arrival-bridge-copy strong,
.gallery-copy h1 {
  max-width: 92vw;
  line-height: 1.08;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.film-kicker strong { font-size: clamp(18px, 2.5vw, 30px); }
.flight .name { font-size: clamp(23px, 3.5vw, 36px); }
.arrival-bridge-copy { width: 94vw; }
.arrival-bridge-copy strong { font-size: clamp(30px, 6vw, 64px); }

.gallery-copy {
  max-width: min(760px, 88vw);
}

.gallery-copy h1 {
  width: fit-content;
  max-width: min(88vw, 760px);
  margin-inline: 0;
  text-align: start;
  font-size: clamp(30px, 5.2vw, 58px);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.94), 0 1px 2px #000;
}

.gallery-copy .meta {
  font-size: clamp(13px, 0.65vw + 10px, 16px);
  font-weight: 800;
}

.gallery.opening .gallery-slide.visible .gallery-main-image {
  animation: rihlat-gallery-image-in 850ms cubic-bezier(.16, 1, .3, 1) both;
}

.gallery.opening .gallery-info {
  animation: rihlat-gallery-copy-in 650ms cubic-bezier(.16, 1, .3, 1) 110ms both;
}

.gallery.opening .thumbs {
  animation: rihlat-gallery-copy-in 620ms cubic-bezier(.16, 1, .3, 1) 220ms both;
}

.arrival-bridge-copy::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: min(36vw, 250px);
  aspect-ratio: 1;
  border: 1px solid rgba(156, 239, 235, 0.28);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(.72);
  opacity: 0;
}

.arrival-visual-bridge.active .arrival-bridge-copy::before {
  animation: rihlat-arrival-ring 820ms cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes rihlat-gallery-image-in {
  from { opacity: .15; transform: scale(1.055); filter: saturate(.72) brightness(.72); }
  to { opacity: 1; transform: scale(1.015); filter: saturate(1.03) brightness(1); }
}

@keyframes rihlat-gallery-copy-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes rihlat-arrival-ring {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.65); }
  35% { opacity: .7; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.18); }
}

html[data-performance-profile="lite"] #stage.hollywood-active canvas {
  filter: none !important;
}

html[data-performance-profile="lite"] .film-speed-lines,
.satellite-approach[data-quality="lite"] .satellite-scan {
  display: none;
}

.satellite-approach[data-quality="lite"] {
  filter: none;
}

.satellite-approach[data-quality="lite"] .satellite-frame img {
  filter: brightness(.84) saturate(1.02);
}

.satellite-approach[data-quality="lite"] .satellite-crosshair i,
.satellite-approach[data-quality="lite"] .satellite-orbit-label i {
  animation: none;
}

@media (max-width: 720px) {
  .dest { min-height: 60px; }
  .film-kicker { width: 90vw; }
  .flight { width: min(92vw, 390px); }
  .flight .name { font-size: clamp(22px, 7vw, 30px); }
  .arrival-bridge-copy strong { font-size: clamp(28px, 9vw, 42px); }
  .gallery-copy { max-width: 90vw; }
  .gallery-copy h1 {
    max-width: 90vw;
    font-size: clamp(26px, 8.2vw, 38px);
    line-height: 1.05;
  }
  .gallery-copy p { font-size: clamp(13px, 3.7vw, 15px); }
}

@media (prefers-reduced-motion: reduce) {
  .gallery.opening .gallery-slide.visible .gallery-main-image,
  .gallery.opening .gallery-info,
  .gallery.opening .thumbs,
  .arrival-visual-bridge.active .arrival-bridge-copy::before { animation: none; }
}

/* Responsive shell and interactive destination landmarks. */
html, body, .app { min-width: 280px; min-height: 100%; }
.app { height: 100dvh; min-height: 100svh; }
.topbar { gap: 10px; }
.brand { min-width: 0; max-width: min(56vw, 390px); }
.brand b, .brand small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tools { flex: 0 0 auto; }
.drawer { max-width: 100vw; }
.install-media { max-height: calc(100dvh - 24px); overflow: auto; }
#stage canvas.landmark-hover { cursor: pointer; }

.globe-marker-tooltip {
  position: absolute;
  z-index: 14;
  max-width: min(260px, calc(100vw - 24px));
  padding: 8px 11px;
  border: 1px solid rgba(121, 245, 237, .42);
  border-radius: 11px;
  color: #f4ffff;
  background: rgba(2, 13, 19, .9);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .45), 0 0 20px rgba(91, 235, 229, .08);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, calc(-100% - 14px)) scale(.96);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}

.globe-marker-tooltip.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, calc(-100% - 14px)) scale(1);
}

@media (max-width: 720px) {
  .topbar { top: max(8px, env(safe-area-inset-top)); left: 8px; right: 8px; align-items: flex-start; }
  .brand { padding: 9px 11px; border-radius: 15px; }
  .brand b { font-size: clamp(14px, 4vw, 17px); }
  .brand-translation { font-size: 8px; letter-spacing: .13em; }
  .tools { padding: 6px; border-radius: 15px; }
  .iconbtn, .mainbtn { min-height: 40px; }
  .hint {
    width: max-content;
    max-width: calc(100vw - 20px);
    padding: 7px 11px;
    white-space: normal;
    text-align: center;
    font-size: 11px;
    line-height: 1.35;
  }
  .hero .gallery-main-image {
    height: calc(100dvh - 132px - env(safe-area-inset-bottom));
    max-height: calc(100dvh - 132px - env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  .topbar { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 6px; }
  .brand { max-width: calc(100vw - 16px); }
  .brand small { display: none; }
  .tools { max-width: calc(100vw - 16px); justify-self: end; }
  .language-switcher button { min-width: 25px; height: 36px; padding-inline: 3px; }
  .mainbtn { padding-inline: 9px; font-size: 12px; }
  .experience-hud {
    right: 8px;
    bottom: max(54px, calc(env(safe-area-inset-bottom) + 42px));
    width: auto;
    max-width: calc(100vw - 16px);
    padding: 8px 10px;
    border-radius: 13px;
  }
  .experience-hud .pro-hud-main, .experience-hud .pro-library { display: none; }
  .experience-hud .pro-status { min-width: 148px; }
  .drawer { width: 100vw; padding-inline: 10px; }
  .drawer-head { gap: 6px; }
  .drawer h2 { font-size: 20px; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .brand small { display: none; }
  .topbar { top: max(6px, env(safe-area-inset-top)); }
  .brand, .tools { padding-block: 6px; }
  .experience-hud { display: none; }
  .hint { bottom: max(7px, env(safe-area-inset-bottom)); }
  .flight { bottom: max(44px, calc(env(safe-area-inset-bottom) + 34px)); }
  .gallery-info { bottom: max(74px, calc(env(safe-area-inset-bottom) + 62px)); }
}

/* Tourist Direct Controls & Title Readability Polish */
.tools .tourist-btn {
  background: linear-gradient(135deg, rgba(0, 168, 255, 0.22), rgba(0, 243, 255, 0.12));
  border: 1px solid rgba(0, 243, 255, 0.45);
  color: #00f3ff;
  border-radius: 14px;
  min-height: 44px;
  padding: 0 12px;
  font-weight: 800;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 12px rgba(0, 243, 255, 0.2);
}

.tools .tourist-btn:hover {
  background: linear-gradient(135deg, rgba(0, 168, 255, 0.45), rgba(0, 243, 255, 0.3));
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
  transform: translateY(-1px);
}

.gallery-copy {
  background: rgba(3, 14, 22, 0.85);
  border: 1px solid rgba(120, 235, 240, 0.25);
  border-radius: 20px;
  padding: 18px 24px;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.85);
}

.gallery-copy h1 {
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 14px #000, 0 0 24px rgba(0, 243, 255, 0.35);
  margin-bottom: 8px;
}

.gallery-copy p {
  color: #e2f4f7;
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .tools .tourist-btn .btn-label {
    display: none;
  }
  .tools .tourist-btn {
    padding: 0 9px;
  }
  .gallery-copy {
    padding: 14px 18px;
    border-radius: 16px;
  }
}

/* Custom Photo Settings Modal Dialog */
.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  background: rgba(1, 4, 8, 0.72);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-content {
  width: min(520px, 94vw);
  max-height: 85vh;
  background: rgba(3, 14, 22, 0.94);
  border: 1px solid rgba(120, 235, 240, 0.28);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.9);
  padding: 20px;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(120, 235, 240, 0.12);
  padding-bottom: 12px;
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 10px rgba(120, 235, 240, 0.3);
}

.close-modal {
  background: none;
  border: none;
  color: #7b9ca5;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  transition: all 0.2s;
}

.close-modal:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.random-flight-option {
  background: rgba(105, 224, 230, 0.08);
  border: 1px dashed rgba(105, 224, 230, 0.25);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 16px;
}

.random-flight-option label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13.5px;
  color: #e2f4f7;
  font-weight: 700;
}

.random-flight-option input {
  width: 17px;
  height: 17px;
  accent-color: #5be5e3;
  cursor: pointer;
}

.photo-slots {
  flex: 1;
  overflow-y: auto;
  display: grid;
  gap: 12px;
  padding-right: 4px;
  margin-bottom: 16px;
}

.photo-slots::-webkit-scrollbar {
  width: 6px;
}
.photo-slots::-webkit-scrollbar-thumb {
  background: rgba(120, 235, 240, 0.2);
  border-radius: 99px;
}

.photo-slot {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(7, 20, 28, 0.65);
  border: 1px solid rgba(105, 224, 230, 0.12);
  border-radius: 16px;
  padding: 10px 14px;
  transition: all 0.25s;
}

.photo-slot:hover {
  border-color: rgba(105, 224, 230, 0.28);
  background: rgba(7, 20, 28, 0.85);
}

.slot-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #111;
  flex-shrink: 0;
}

.slot-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.slot-details strong {
  font-size: 14px;
  color: #fff;
  font-weight: 800;
}

.slot-details small {
  font-size: 11.5px;
  color: #7b9ca5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slot-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.slot-actions button {
  min-height: 36px !important;
  font-size: 11px !important;
  padding: 0 10px !important;
  border-radius: 10px !important;
  border-color: rgba(105, 224, 230, 0.25) !important;
  background: rgba(3, 19, 27, 0.9) !important;
}

.slot-actions button:hover {
  border-color: rgba(105, 224, 230, 0.5) !important;
  background: #0a2e38 !important;
}

.modal-footer {
  border-top: 1px solid rgba(120, 235, 240, 0.12);
  padding-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.modal-footer button {
  background: linear-gradient(135deg, #441818, #2a0b0b) !important;
  border-color: rgba(255, 100, 100, 0.35) !important;
  color: #ffcccc !important;
}

.modal-footer button:hover {
  background: #601818 !important;
  border-color: rgba(255, 100, 100, 0.6) !important;
  box-shadow: 0 0 15px rgba(255, 100, 100, 0.2) !important;
}

@media (max-width: 640px) {
  .photo-slot {
    flex-direction: column;
    align-items: stretch;
    text-align: right;
    gap: 8px;
  }
  .slot-thumb {
    width: 100%;
    height: 80px;
  }
  .slot-actions {
    justify-content: flex-end;
  }
}


.slot-thumb-empty {
  background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  border: 1px dashed rgba(255,255,255,.16);
}
