:root {
  --color-header: #1a466c;
  --color-grid-bg: #255d88;
  --color-text-white: #ffffff;
  --color-border: rgba(255, 255, 255, 0.2);
  --font-family: 'Tajawal', 'Cairo', 'IBM Plex Sans Arabic', sans-serif;
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-grid-bg);
  color: var(--color-text-white);
  min-height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  direction: rtl;
}

/* Full Screen Container */
.app-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-grid-bg);
}

/* Header */
.app-header {
  background-color: var(--color-header);
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  width: 100%;
}

.logo-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-container svg,
.app-logo-img {
  height: 42px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Hamburger Menu Button */
.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  padding: 0;
  z-index: 12;
}

.menu-btn span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--color-text-white);
  border-radius: 2px;
  transition: transform var(--transition-speed), opacity var(--transition-speed);
}

/* Menu Toggle State */
.menu-btn.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.menu-btn.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
  width: 100%;
  aspect-ratio: 16 / 9; /* Default aspect ratio for mobile */
  position: relative;
  overflow: hidden;
  background-color: #000;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 6s ease;
}

.hero-section:hover .hero-image {
  transform: scale(1.04);
}

/* Centered Booking Section */
.booking-centered-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  padding: 40px 24px;
  background-color: var(--color-grid-bg);
}

.big-booking-card {
  width: 100%;
  max-width: 320px;
  background-color: #1a466c;
  border-radius: 20px;
  text-decoration: none;
  color: var(--color-text-white);
  padding: 35px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

/* Pulsing effect to invite clicks */
.pulsing-card {
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0% {
    box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.4), 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(230, 126, 34, 0), 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: #e67e22;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(230, 126, 34, 0), 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
  }
}

.big-booking-card:hover {
  transform: translateY(-8px) scale(1.02);
  background-color: #153754;
  border-color: #e67e22;
  box-shadow: 0 15px 35px rgba(230, 126, 34, 0.2), 0 15px 35px rgba(0, 0, 0, 0.5);
}

.booking-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.booking-icon {
  width: 76px;
  height: 76px;
  fill: #ffffff;
  transition: transform 0.3s ease;
}

.big-booking-card:hover .booking-icon {
  transform: scale(1.1) rotate(-3deg);
}

.booking-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.booking-action-btn {
  background-color: #e67e22; /* Clickable orange */
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 8px;
  box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
  transition: background-color 0.3s, transform 0.3s;
  width: 90%;
  text-align: center;
}

.big-booking-card:hover .booking-action-btn {
  background-color: #d35400;
  transform: scale(1.05);
}

.grid-item:active {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Main Body Wrapper */
.main-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Sidebar Navigation */
.sidebar-nav {
  position: absolute;
  top: 0;
  left: -100%;
  width: 82%;
  max-width: 340px;
  height: 100%;
  background-color: var(--color-header);
  /* Repeating geometric pattern using background SVG pattern */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M 0 0 L 30 30 L 60 0 M 0 60 L 30 30 L 60 60' fill='none' stroke='rgba(255, 255, 255, 0.025)' stroke-width='1'/%3E%3Crect x='5' y='5' width='50' height='50' fill='none' stroke='rgba%28255,255,255,0.015%29' stroke-width='1'/%3E%3C/svg%3E");
  z-index: 15;
  transition: left var(--transition-speed) ease-in-out, width var(--transition-speed) ease-in-out;
  box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.sidebar-nav.open {
  left: 0;
}

.sidebar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.55);
  z-index: 12;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-speed) ease;
}

.sidebar-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* Sidebar Header & Logo */
.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.sidebar-logo,
.sidebar-logo-img {
  height: 38px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Links Container */
.sidebar-links-container {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  flex-grow: 1;
  overflow-y: auto;
}

.sidebar-link {
  color: var(--color-text-white);
  text-decoration: none;
  padding: 14px 24px;
  font-size: 1.05rem;
  font-weight: 500;
  transition: background-color var(--transition-speed), padding var(--transition-speed);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-link:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

/* Hide SVG icons inside sidebar links on mobile/tablets as requested: "بدون أيقونات" */
.sidebar-link .sidebar-icon {
  display: none;
  width: 24px;
  height: 24px;
  fill: var(--color-text-white);
}

.sidebar-link.english-text {
  direction: ltr;
  font-family: sans-serif;
  letter-spacing: 0.5px;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(0, 0, 0, 0.15);
  text-align: center;
}

.sidebar-footer .footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  color: #ffffff;
}

.sidebar-footer .footer-subtitle {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
}

/* ==========================================================================
   Tablets / iPad (Screen width between 601px and 1024px)
   ========================================================================== */
@media (min-width: 601px) and (max-width: 1024px) {
  /* Scale up fonts and icons by 15% as requested, but keep full width */
  .grid-item svg {
    width: 55px;
    height: 55px;
    margin-bottom: 16px;
  }

  .grid-item span {
    font-size: 1.2rem;
  }

  .app-header {
    height: 80px;
  }

  .logo-container svg {
    height: 48px;
  }
}

/* ==========================================================================
   Laptops and Desktops (Screen width 1025px and up)
   ========================================================================== */
@media (min-width: 1025px) {
  .menu-btn {
    display: none !important;
  }
  
  /* Flex Layout: Sidebar on the right, main-body on the left */
  /* Flex Layout: Sidebar on the right, main-body on the left (RTL default) */
  .app-container {
    flex-direction: row;
  }

  .main-body {
    flex-grow: 1;
    min-height: 100vh;
    overflow-y: auto;
  }

  /* Fixed Static Sidebar Panel */
  .sidebar-nav {
    position: relative;
    left: auto !important;
    right: auto !important;
    width: 290px;
    height: 100vh;
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.15);
    z-index: 10;
  }

  .sidebar-overlay {
    display: none !important;
  }

  /* Show Icons in Expanded Mode on Desktop */
  .sidebar-link .sidebar-icon {
    display: block;
    width: 22px;
    height: 22px;
    opacity: 0.9;
  }

  /* Collapsed Mode Styling */
  .sidebar-nav.collapsed {
    width: 78px;
  }

  .sidebar-nav.collapsed .sidebar-header {
    padding: 20px 10px;
    justify-content: center;
  }

  /* Shrink the logo or display only the central element */
  .sidebar-nav.collapsed .sidebar-logo,
  .sidebar-nav.collapsed .sidebar-logo-img {
    width: 48px;
    height: auto;
  }

  .sidebar-nav.collapsed .sidebar-link {
    justify-content: center;
    padding: 16px 0;
    gap: 0;
  }

  .sidebar-nav.collapsed .sidebar-link .link-text {
    display: none;
  }

  .sidebar-nav.collapsed .sidebar-footer {
    display: none;
  }

  /* Main Body Layout Adjustments */
  .app-header {
    height: 85px;
    padding: 0 40px;
  }

  .logo-container svg {
    height: 52px;
  }

  /* Aspect ratio roughly 3:1 on large screens */
  .hero-section {
    aspect-ratio: 3.2 / 1;
  }

  /* Transform Grid into 3 Columns, 2 Rows */
  .nav-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }

  /* Reset default mobile border scheme */
  .grid-item {
    border: none !important;
    padding: 45px 25px;
  }

  /* 3-column Layout Border Rules (RTL) */
  .grid-item:nth-child(3n+1),
  .grid-item:nth-child(3n+2) {
    border-left: 1px solid var(--color-border) !important;
  }

  .grid-item:nth-child(1),
  .grid-item:nth-child(2),
  .grid-item:nth-child(3) {
    border-bottom: 1px solid var(--color-border) !important;
  }

  .grid-item svg {
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
  }

  .grid-item span {
    font-size: 1.25rem;
  }
}

/* Ticker Announcement Bar */
.announcement-ticker-bar {
  background-color: #e67e22; /* Warning orange alert bar */
  color: #ffffff;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  width: 100%;
  overflow: hidden;
  box-shadow: inset 0 -1px 3px rgba(0,0,0,0.1);
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  animation: ticker-slide 18s linear infinite;
  padding-left: 100%;
}

@keyframes ticker-slide {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* Welcome Headings */
.welcome-container {
  text-align: center;
  color: #ffffff;
  margin-bottom: 5px;
  width: 100%;
  padding: 0 16px;
}

.welcome-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.welcome-subtitle {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* Update booking center container to align column elements */
.booking-centered-section {
  display: flex;
  flex-direction: column !important;
  gap: 24px;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  padding: 40px 24px;
  background-color: var(--color-grid-bg);
}

/* Secure Checkout Footer */
.home-secure-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  width: 100%;
}

.secure-checkout-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 700;
}

.footer-lock-icon {
  width: 14px;
  height: 14px;
  fill: rgba(255, 255, 255, 0.7);
}

.footer-logos-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  height: 24px;
}

.footer-logos-row img {
  height: 18px;
  width: auto;
  opacity: 0.85;
}

