/* =====================================================
   EL EKRAM - RESPONSIVE STYLES
   Mobile-First Design with Touch Support
   ===================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  overflow: hidden;
  height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.main-container {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #89cff0 0%, #4a90e2 50%, #2c5aa0 100%);
  position: relative;
}

/* =====================================================
   STARS BACKGROUND
   ===================================================== */
.stars {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s infinite ease-in-out;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

/* =====================================================
   SCREEN FRAME
   ===================================================== */
.screen-frame {
  width: 90%;
  max-width: 1600px;
  height: 88vh;
  background: linear-gradient(135deg, #1e3a72 0%, #2a4d8a 50%, #1e3a72 100%);
  border-radius: 35px;
  box-shadow: 0 60px 120px rgba(0, 0, 0, 0.6), inset 0 2px 10px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.15);
  z-index: 10;
  -webkit-overflow-scrolling: touch;
  overflow: hidden;
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 35px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, transparent 100%);
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo a {
  display: flex;
  align-items: center;
}

.logo-icon {
  width: 70px;
  height: auto;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text {
  color: white;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 4px;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.5);
}

.nav-menu {
  display: flex;
  gap: 35px;
  align-items: center;
}

.menu-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s;
  -webkit-tap-highlight-color: transparent;
}

.menu-icon:hover,
.menu-icon:active {
  background: rgba(255, 255, 255, 0.25);
}

.menu-line {
  width: 22px;
  height: 2.5px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}

/* =====================================================
   GLOBE CONTAINER
   ===================================================== */
.globe-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 30;
}

.globe-container.slide-left {
  transform: translateX(-280px);
}

#globe-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  touch-action: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

#globe-canvas:active {
  cursor: grabbing;
}

/* =====================================================
   TITLE OVERLAY
   ===================================================== */
.title-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  animation: fadeInTitle 1.2s forwards 0.5s;
  transition: opacity 0.5s, visibility 0.5s;
}

.title-overlay.hide {
  opacity: 0;
  visibility: hidden;
}

@keyframes fadeInTitle {
  to {
    opacity: 1;
  }
}

.subtitle {
  position: absolute;
  top: 36%;
  left: 15%;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.title-left {
  position: absolute;
  top: 50%;
  left: 215px;
  transform: translateY(-50%);
  font-size: 150px;
  font-weight: 900;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: white;
  line-height: 0.9;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

.title-right {
  position: absolute;
  top: 50%;
  right: 50px;
  transform: translateY(-50%);
  font-size: 150px;
  font-weight: 900;
  letter-spacing: 10px;
  text-transform: uppercase;
  color: white;
  line-height: 0.9;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

/* =====================================================
   COUNTRY DISPLAY
   ===================================================== */
.country-display {
  position: absolute;
  top: 50%;
  right: 400px;
  transform: translateY(-50%);
  text-align: right;
  z-index: 55;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s, transform 0.8s;
}

.country-display.show {
  opacity: 1;
}

.country-display-name {
  font-size: 80px;
  font-weight: 900;
  letter-spacing: 15px;
  text-transform: uppercase;
  color: white;
  text-shadow: 0 5px 30px rgba(0, 0, 0, 0.7);
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

/* =====================================================
   CONNECTION LINE
   ===================================================== */
.connection-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  top: 50%;
  left: 35%;
  width: 0;
  transition: width 0.8s ease-out;
  z-index: 45;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.connection-line.show {
  width: 35%;
}

/* =====================================================
   LOADING SCREEN
   ===================================================== */
.loading-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e3a72 0%, #2a4d8a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.8s;
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 70px;
  height: 70px;
  border: 5px solid rgba(255, 255, 255, 0.2);
  border-top: 5px solid white;
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: white;
  font-size: 20px;
  margin-top: 25px;
  font-weight: 600;
  letter-spacing: 2px;
}
/* =====================================================
   ATTRACTIONS PANEL - VIDEO EXACT DESIGN
   ===================================================== */

.attractions-panel {
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%) translateX(500px);
  z-index: 200;
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  width: 300px;
}

.attractions-panel.show {
  transform: translateY(-50%) translateX(0);
}

#attractionsList {
  position: relative;
  padding-right: 0;
}

.timeline-connector {
  position: absolute;
  right: 6px;
  top: 25px;
  bottom: 25px;
  width: 1.5px;
  background: rgba(255, 255, 255, 0.25);
  z-index: 0;
}

.attraction-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 45px;
  cursor: pointer;
  position: relative;
  opacity: 0;
  transform: translateX(30px);
  animation: slideInTimeline 0.5s forwards;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInTimeline {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.attraction-item:nth-child(2) { animation-delay: 0.1s; }
.attraction-item:nth-child(3) { animation-delay: 0.2s; }
.attraction-item:nth-child(4) { animation-delay: 0.3s; }
.attraction-item:nth-child(5) { animation-delay: 0.4s; }
.attraction-item:nth-child(6) { animation-delay: 0.5s; }

.attraction-item.hovered {
  margin-bottom: 220px;
}

.attraction-name {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-right: 18px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  position: relative;
}

.attraction-dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  position: relative;
  flex-shrink: 0;
}

.attraction-item.hovered .attraction-name {
  color: white;
  font-size: 16px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 1);
  transform: translateY(-5px);
}

.attraction-item.hovered .attraction-dot {
  background: white;
  border-color: white;
  box-shadow: 0 0 25px rgba(255, 255, 255, 1);
  transform: scale(1.4);
}

.attraction-item.inactive .attraction-name {
  font-size: 11px;
  opacity: 0.5;
  transform: translateY(5px);
}

.attraction-item.inactive .attraction-dot {
  transform: scale(0.8);
  opacity: 0.4;
}

.image-card {
  position: absolute;
  right: 0;
  top: 35px;
  width: 320px;
  height: 0;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.attraction-item.hovered .image-card {
  height: 200px;
  opacity: 1;
  pointer-events: all;
}

.image-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.attraction-item.hovered .image-card-img {
  transform: scale(1.08);
}

.image-card-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
  color: white;
  padding: 15px 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}

.explore-button {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 10px 22px;
  background: #ff3366;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(255, 51, 102, 0.6);
  transition: all 0.3s ease;
  pointer-events: all;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

.explore-button:hover,
.explore-button:active {
  background: #ff0844;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 51, 102, 0.8);
}

.attractions-empty {
  text-align: right;
  color: rgba(255, 255, 255, 0.6);
  padding: 20px 20px 20px 0;
  font-size: 14px;
}

/* =====================================================
   COUNTRY TOOLTIP
   ===================================================== */

.country-tooltip {
  position: fixed;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 51, 102, 0.6);
  transform: translate(-50%, -100%);
}

.country-tooltip.visible {
  opacity: 1;
  animation: tooltipFadeIn 0.2s ease;
}

.country-tooltip::before {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid rgba(0, 0, 0, 0.9);
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-100% + 5px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -100%);
  }
}

/* =====================================================
   SIDE MENU
   ===================================================== */

.side-menu-panel {
  position: absolute;
  right: -400px;
  top: 0;
  width: 400px;
  height: 100%;
  background: linear-gradient(135deg, #1e3a72 0%, #2a4d8a 100%);
  box-shadow: -10px 0 50px rgba(0, 0, 0, 0.7);
  z-index: 1500;
  transition: right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex;
  flex-direction: column;
  border-left: 4px solid rgba(255, 255, 255, 0.2);
}

.side-menu-panel.active {
  right: 0;
}

.side-menu-header {
  padding: 40px 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.2);
}

.menu-close-btn {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  transition: all 0.3s;
  font-weight: 300;
  -webkit-tap-highlight-color: transparent;
}

.menu-close-btn:hover,
.menu-close-btn:active {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg) scale(1.1);
  border-color: white;
}

.side-menu-nav {
  padding: 50px 35px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.side-menu-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px 30px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  -webkit-tap-highlight-color: transparent;
}

.side-menu-item:hover,
.side-menu-item:active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateX(-15px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.menu-item-icon {
  font-size: 28px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* =====================================================
   BOOKING MODAL - SIMPLIFIED
   ===================================================== */

.booking-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.booking-modal.show {
  opacity: 1;
  pointer-events: all;
}

.booking-background {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-size: cover;
  background-position: center;
  filter: blur(0.5px) brightness(0.9);
  transition: filter 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.15s ease-out;
  will-change: transform;
  transform-origin: center center;
}

.booking-modal.show .booking-background {
  filter: blur(0.5px) brightness(0.9);
}

.booking-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 20, 0.6) 0%, rgba(0, 0, 50, 0.4) 50%, rgba(0, 0, 20, 0.6) 100%);
  pointer-events: none;
}

.booking-close {
  position: absolute;
  top: 40px;
  left: 40px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
  z-index: 20;
  opacity: 0;
  transform: scale(0.8);
  -webkit-tap-highlight-color: transparent;
}

.booking-modal.show .booking-close {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.5s;
}

.booking-close:hover,
.booking-close:active {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1) rotate(90deg);
  border-color: white;
}

.booking-preview-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  padding: 20px;
}

.booking-preview-header {
  text-align: center;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(-40px) scale(0.9);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.booking-modal.show .booking-preview-header {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.2s;
}

.booking-preview-country {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 12px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 15px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  animation: fadeSlideDown 0.8s ease-out 0.3s both;
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.booking-preview-destination {
  font-size: 50px;
  font-weight: 900;
  letter-spacing: 18px;
  color: white;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 1);
  line-height: 1;
  animation: scaleIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
  text-transform: uppercase;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.booking-expand-btn {
  padding: 20px 60px;
  background: linear-gradient(135deg, #171970, #287ef3);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 20px 60px rgba(255, 51, 102, 0.4);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.booking-modal.show .booking-expand-btn {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.6s;
}

.booking-expand-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.booking-expand-btn:hover::before {
  left: 100%;
}

.booking-expand-btn:hover,
.booking-expand-btn:active {
  background: linear-gradient(135deg, #171970, #287ef3);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 25px 80px #287ef3;
}

.booking-expand-btn svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.booking-expand-btn:hover svg {
  transform: translateX(5px);
}
/* =====================================================
   RESPONSIVE MEDIA QUERIES
   Mobile-First Optimization
   ===================================================== */

/* =====================================================
   TABLET LANDSCAPE - 1400px and below
   ===================================================== */
@media (-wmaxidth: 1400px) {
  .title-left,
  .title-right {
    font-size: 120px;
    letter-spacing: 8px;
  }

  .subtitle {
    font-size: 14px;
    left: 15%;
  }

  .country-display-name {
    font-size: 60px;
    letter-spacing: 10px;
  }

  .country-display {
    right: 300px;
  }

  .attractions-panel {
    right: 40px;
    width: 280px;
  }

  .image-card {
    width: 280px;
    height: 180px;
  }

  .attraction-item.hovered {
    margin-bottom: 200px;
  }
}

/* =====================================================
   TABLET PORTRAIT - 1024px and below
   ===================================================== */
@media (max-width: 1024px) {
  .header {
    padding: 25px 40px;
  }

  .logo-text {
    font-size: 24px;
    letter-spacing: 3px;
  }

  .title-left,
  .title-right {
    font-size: 80px;
    letter-spacing: 5px;
  }

  .title-left {
    left: 60px;
  }

  .title-right {
    right: 60px;
  }

  .subtitle {
    font-size: 12px;
    left: 12%;
  }

  .country-display {
    right: 250px;
  }

  .country-display-name {
    font-size: 50px;
    letter-spacing: 8px;
  }

  /* Globe adjustments */
  .globe-container.slide-left {
    transform: translateX(-180px);
  }

  .connection-line {
    left: 30%;
  }

  .connection-line.show {
    width: 40%;
  }

  /* Attractions panel */
  .attractions-panel {
    right: 30px;
    width: 260px;
  }

  .attraction-name {
    font-size: 12px;
    letter-spacing: 2px;
  }

  .image-card {
    width: 260px;
    height: 160px;
  }

  .attraction-item.hovered {
    margin-bottom: 180px;
  }

  /* Side menu */
  .side-menu-panel {
    width: 350px;
    right: -350px;
  }

  .side-menu-item {
    font-size: 18px;
    padding: 20px 25px;
  }

  /* Booking modal */
  .booking-preview-country {
    font-size: 24px;
    letter-spacing: 8px;
  }

  .booking-preview-destination {
    font-size: 40px;
    letter-spacing: 12px;
  }

  .booking-expand-btn {
    padding: 16px 50px;
    font-size: 18px;
  }
}

/* =====================================================
   MOBILE LANDSCAPE - 896px and below
   ===================================================== */
@media (max-width: 896px) {
  /* Landscape orientation specific */
  @media (orientation: landscape) {
    .title-left {
      font-size: 60px;
      left: 40px;
    }

    .title-right {
      font-size: 60px;
      right: 40px;
    }

    .subtitle {
      font-size: 10px;
      top: 30%;
    }

    .country-display {
      right: 200px;
    }

    .country-display-name {
      font-size: 40px;
    }
  }
}

/* =====================================================
   MOBILE - 768px and below (CRITICAL)
   ===================================================== */
@media (max-width: 768px) {
  body {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100vh;
  }

  #globe-canvas {
    width: 100% !important;
    height: 100% !important;
  }

  .main-container {
    padding: 10px;
  }

  .screen-frame {
    width: 100%;
    height: 100vh;
    border-radius: 0;
    border: none;
  }

  /* Header - Mobile optimized */
  .header {
    padding: 20px 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
  }

  .logo {
    gap: 10px;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
  }

  .logo-text {
    font-size: 20px;
    letter-spacing: 2px;
  }

  .menu-icon {
    width: 40px;
    height: 40px;
    gap: 5px;
  }

  .menu-line {
    width: 20px;
    height: 2px;
  }

  /* Title - Mobile optimized */
  .title-left,
  .title-right {
    font-size: 50px;
    letter-spacing: 3px;
  }

  .title-left {
    left: 20px;
    top: 45%;
  }

  .title-right {
    right: 20px;
    top: 55%;
  }

  .subtitle {
    font-size: 10px;
    letter-spacing: 2px;
    left: 20px;
    top: 38%;
  }

  /* Globe - Touch optimized */
  #globe-canvas {
    cursor: default;
    touch-action: pan-x pan-y pinch-zoom;
  }

  .globe-container.slide-left {
    transform: translateX(0) scale(0.8);
  }

  /* Country display - Mobile */
  .country-display {
    right: auto;
    left: 50%;
    top: 20%;
    transform: translateX(-50%);
    text-align: center;
  }

  .country-display-name {
    font-size: 32px;
    letter-spacing: 5px;
  }

  /* Connection line - Hidden on mobile */
  .connection-line {
    display: none;
  }

  /* Attractions panel - Bottom sheet style */
  .attractions-panel {
    right: auto;
    left: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    max-height: 50vh;
    transform: translateY(100%);
    background: linear-gradient(180deg, transparent, rgba(30, 58, 114, 0.95));
    backdrop-filter: blur(20px);
    border-radius: 25px 25px 0 0;
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .attractions-panel.show {
    transform: translateY(0);
  }

  #attractionsList {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .timeline-connector {
    display: none;
  }

  .attraction-item {
    flex-direction: row;
    justify-content: flex-start;
    margin-bottom: 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    animation: none;
    opacity: 1;
    transform: none;
  }

  .attraction-item.hovered {
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.1);
  }

  .attraction-name {
    margin-right: 0;
    margin-left: 15px;
    font-size: 14px;
    order: 2;
  }

  .attraction-dot {
    order: 1;
    flex-shrink: 0;
  }

  .image-card {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    height: 0;
    margin-top: 15px;
    order: 3;
    border-radius: 12px;
  }

  .attraction-item.hovered .image-card {
    height: 200px;
  }

  .attractions-empty {
    text-align: center;
    padding: 30px 20px;
  }

  /* Side menu - Mobile */
  .side-menu-panel {
    width: 80%;
    max-width: 320px;
    right: -320px;
  }

  .side-menu-header {
    padding: 25px 20px;
  }

  .side-menu-nav {
    padding: 30px 20px;
    gap: 12px;
  }

  .side-menu-item {
    font-size: 16px;
    padding: 18px 20px;
    border-radius: 12px;
  }

  .side-menu-item:hover,
  .side-menu-item:active {
    transform: translateX(-10px) scale(1.02);
  }

  .menu-item-icon {
    font-size: 24px;
  }

  /* Booking modal - Mobile */
  .booking-close {
    top: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
  }

  .booking-preview-header {
    margin-bottom: 40px;
  }

  .booking-preview-country {
    font-size: 18px;
    letter-spacing: 6px;
    margin-bottom: 10px;
  }

  .booking-preview-destination {
    font-size: 32px;
    letter-spacing: 8px;
  }

  .booking-expand-btn {
    padding: 15px 40px;
    font-size: 16px;
    letter-spacing: 2px;
  }

  /* Tooltip - Mobile */
  .country-tooltip {
    font-size: 14px;
    padding: 10px 16px;
  }

  /* Loading screen */
  .spinner {
    width: 50px;
    height: 50px;
    border-width: 4px;
  }

  .loading-text {
    font-size: 16px;
    margin-top: 20px;
  }
}

/* =====================================================
   MOBILE SMALL - 480px and below
   ===================================================== */
@media (max-width: 480px) {
  .header {
    padding: 15px 15px;
  }

  .logo-icon {
    width: 50px;
    height: auto;
  }

  .logo-text {
    font-size: 16px;
    letter-spacing: 1.5px;
  }

  .menu-icon {
    width: 36px;
    height: 36px;
  }

  /* Title - Extra small */
  .title-left,
  .title-right {
    font-size: 36px;
    letter-spacing: 2px;
  }

  .subtitle {
    font-size: 9px;
    letter-spacing: 1.5px;
  }

  .country-display-name {
    font-size: 24px;
    letter-spacing: 3px;
  }

  /* Attractions - Extra small */
  .attractions-panel {
    padding: 15px;
    max-height: 60vh;
  }

  .attraction-item {
    padding: 12px;
  }

  .attraction-name {
    font-size: 12px;
  }

  .attraction-dot {
    width: 10px;
    height: 10px;
  }

  .image-card-title {
    font-size: 12px;
    padding: 12px 15px;
  }

  .explore-button {
    padding: 8px 18px;
    font-size: 11px;
  }

  /* Booking - Extra small */
  .booking-preview-country {
    font-size: 14px;
    letter-spacing: 4px;
  }

  .booking-preview-destination {
    font-size: 24px;
    letter-spacing: 5px;
  }

  .booking-expand-btn {
    padding: 12px 30px;
    font-size: 14px;
  }

  /* Side menu - Extra small */
  .side-menu-panel {
    width: 85%;
  }

  .side-menu-item {
    font-size: 15px;
    padding: 15px 18px;
  }
}



/* No tours message */
.no-tours-message {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.6);
}

.no-tours-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-tours-message p {
  font-size: 16px;
  margin: 0;
}

/* Attraction cards updated styles */
.attraction-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.attraction-card:hover {
  transform: translateY(-5px);
}

.attraction-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 20px;
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.meta-item.price {
  font-weight: 700;
  color: #287ef3;
}

/* =====================================================
   MOBILE EXTRA SMALL - 360px and below
   ===================================================== */
@media (max-width: 360px) {
  .title-left,
  .title-right {
    font-size: 28px;
  }

  .subtitle {
    font-size: 8px;
  }

  .country-display-name {
    font-size: 20px;
  }

  .booking-preview-destination {
    font-size: 20px;
    letter-spacing: 3px;
  }

  .booking-expand-btn {
    padding: 10px 25px;
    font-size: 13px;
    gap: 10px;
  }
}

/* =====================================================
   TOUCH DEVICE OPTIMIZATIONS
   ===================================================== */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .attraction-item:hover {
    transform: none;
  }

  .menu-icon:hover {
    background: rgba(255, 255, 255, 0.15);
  }

  /* Larger touch targets */
  .explore-button,
  .menu-icon,
  .booking-close,
  .menu-close-btn {
    min-width: 40px;
    min-height: 40px;
  }

  /* Disable parallax on touch devices */
  .booking-background {
    transform: scale(1.1) !important;
  }
}

/* =====================================================
   DARK MODE SUPPORT
   ===================================================== */
@media (prefers-color-scheme: dark) {
  /* Already dark theme, but can add adjustments if needed */
}

/* =====================================================
   REDUCED MOTION SUPPORT
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =====================================================
   PRINT STYLES
   ===================================================== */
@media print {
  .header,
  .menu-icon,
  .side-menu-panel,
  .booking-close,
  .attractions-panel {
    display: none !important;
  }
}
