/* ===========================
   RESET & BASE STYLES
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0e27;
  --bg-secondary: #0f1535;
  --bg-card: rgba(18, 25, 50, 0.85);
  --bg-card-hover: rgba(25, 35, 65, 0.95);
  --accent-blue: #00d4ff;
  --accent-blue-dark: #0095cc;
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --text-muted: #6b7280;
  --border-color: rgba(0, 212, 255, 0.15);
  --border-color-hover: rgba(0, 212, 255, 0.35);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.4);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: 3rem;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 149, 204, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ===========================
   HEADER STYLES
   =========================== */
header {
  background: rgba(15, 21, 53, 0.8);
  backdrop-filter: blur(20px);
  padding: 2rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

header .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.logo-icon {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-dark));
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 2px;
  position: relative;
}

.logo-text::before {
  content: 'D';
  position: absolute;
  left: -1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-blue);
}

.logo-text::after {
  content: '→';
  position: absolute;
  left: -0.75rem;
  font-size: 1.2rem;
  color: var(--accent-blue);
  opacity: 0.7;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

header p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

header input {
  width: 100%;
  max-width: 600px;
  padding: 0.875rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

header input::placeholder {
  color: var(--text-muted);
}

header input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

/* ===========================
   NAVIGATION TABS
   =========================== */
nav {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(10, 14, 39, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.tab {
  flex: 1;
  max-width: 200px;
  padding: 0.875rem 1.5rem;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: capitalize;
  letter-spacing: 0.5px;
}

.tab:hover {
  background: rgba(0, 212, 255, 0.05);
  border-color: var(--border-color-hover);
  color: var(--text-primary);
}

.tab.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: var(--bg-primary);
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.3);
}

/* ===========================
   FLIGHT LIST - GRID LAYOUT
   =========================== */
.flight-list {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* ===========================
   FLIGHT CARDS - NEW DESIGN
   =========================== */
.flight-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.flight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
  opacity: 0;
  transition: var(--transition);
}

.flight-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.flight-card:hover::before {
  opacity: 1;
}

/* Card Top Section */
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flight-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.plane-icon {
  font-size: 2rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.1);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.flight-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.flight-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-blue);
  letter-spacing: 0.5px;
}

.airline-name {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.status-badge {
  padding: 0.5rem 1rem;
  background: rgba(108, 117, 125, 0.2);
  border: 1px solid rgba(108, 117, 125, 0.4);
  border-radius: 20px;
  color: #a0aec0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.status-badge.status-delayed {
  background: rgba(255, 159, 64, 0.15);
  border-color: #ff9f40;
  color: #ff9f40;
}

.status-badge.status-cancelled {
  background: rgba(255, 99, 99, 0.15);
  border-color: #ff6363;
  color: #ff6363;
}

.status-badge.status-completed {
  background: rgba(75, 192, 75, 0.15);
  border-color: #4bc04b;
  color: #4bc04b;
}

/* Card Bottom Section */
.card-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.route-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.from-section,
.arrival-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.arrival-section {
  text-align: right;
}

.section-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.arrival-section .section-label {
  justify-content: flex-end;
}

.section-label .icon {
  font-size: 0.85rem;
}

.section-label .code {
  color: var(--text-secondary);
  font-weight: 600;
}

.section-label .date {
  color: var(--text-secondary);
  font-weight: 600;
  margin-left: 0.25rem;
}

.city-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-top: 0.25rem;
}

.airport-name {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 0.25rem;
  display: block;
}

.time-display {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -1px;
  line-height: 1;
  margin-top: 0.25rem;
}

.gate-info {
  padding: 0.75rem 1rem;
  background: rgba(0, 212, 255, 0.08);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.9rem;
  color: var(--accent-blue);
  margin-top: 0.5rem;
}

.gate-label {
  color: var(--text-secondary);
  margin-right: 0.5rem;
}

.gate-number {
  font-weight: 700;
  color: var(--accent-blue);
}

/* ===========================
   LOADING & ERROR STATES
   =========================== */
.loading,
.error {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
}

.loading {
  color: var(--accent-blue);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.error {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: var(--radius-md);
  max-width: 600px;
  margin: 2rem auto;
}

/* ===========================
   MODAL STYLES - NEW DESIGN
   =========================== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.modal.active {
  display: block;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-new-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal Header */
.modal-header {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.modal-flight-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-blue);
  letter-spacing: 0.5px;
}

.modal-airline {
  font-size: 1rem;
  color: var(--text-secondary);
}

.modal-close {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transform: rotate(90deg);
}

/* Map Container */
.modal-map-container {
  position: relative;
  height: 400px;
  background: #0a0e27;
}

.map-modal {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

/* Route Overlay */
.route-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10, 14, 39, 0.95) 0%, rgba(10, 14, 39, 0.8) 60%, transparent 100%);
  padding: 2rem;
  z-index: 2;
}

.route-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.route-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.route-point {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid var(--accent-blue);
  border-radius: var(--radius-md);
}

.route-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--accent-blue), var(--accent-blue));
  border-top: 2px dashed var(--accent-blue);
  opacity: 0.6;
}

.route-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.route-status {
  font-size: 1rem;
  color: var(--accent-blue);
  font-weight: 600;
}

.route-eta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

.eta-icon {
  font-size: 1rem;
}

.eta-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.eta-time {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Airport Information Section */
.airport-info-section {
  padding: 2rem;
}

.info-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.info-icon {
  font-size: 1.5rem;
}

.info-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Airport Tabs */
.airport-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.airport-tab {
  flex: 1;
  padding: 0.875rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.airport-tab:hover {
  background: rgba(0, 212, 255, 0.05);
  border-color: var(--border-color-hover);
}

.airport-tab.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: var(--bg-primary);
}

/* Airport Details */
.airport-details {
  position: relative;
}

.airport-content {
  display: none;
}

.airport-content.active {
  display: block;
  animation: fadeInUp 0.3s ease-out;
}

.airport-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.airport-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Terminals Section */
.terminals-section {
  margin-top: 2rem;
}

.terminals-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-blue);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.terminal-item {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.terminal-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.terminal-gate {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-blue);
}

.terminal-type {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  display: inline-block;
  width: fit-content;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 1200px) {
  .flight-list {
    gap: 1.25rem;
  }

  .city-name {
    font-size: 1.5rem;
  }

  .time-display {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1.5rem 1rem;
  }

  header h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 0.9rem;
  }

  nav {
    padding: 1rem;
  }

  .tab {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }

  .flight-list {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1rem;
  }

  .flight-card {
    padding: 1.25rem;
  }

  .flight-number {
    font-size: 1.25rem;
  }

  .city-name {
    font-size: 1.35rem;
  }

  .time-display {
    font-size: 1.75rem;
  }

  .route-info {
    flex-direction: column;
    gap: 1.5rem;
  }

  .arrival-section {
    text-align: left;
  }

  .arrival-section .section-label {
    justify-content: flex-start;
  }

  .modal-content {
    padding: 1.5rem;
    margin: 1rem;
  }

  #modal-flight-id {
    font-size: 1.5rem;
  }

  .map {
    height: 300px;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.75rem;
  }

  .plane-icon {
    font-size: 1.75rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .flight-number {
    font-size: 1.1rem;
  }

  .airline-name {
    font-size: 0.75rem;
  }

  .city-name {
    font-size: 1.25rem;
  }

  .time-display {
    font-size: 1.5rem;
  }

  .status-badge {
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
  }
}

/* ===========================
   ADVERTISEMENT SPACES
   =========================== */
.ad-space {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

.ad-content {
  background: rgba(18, 25, 50, 0.5);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.ad-content:hover {
  background: rgba(18, 25, 50, 0.7);
  border-color: var(--border-color-hover);
}

.ad-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.ad-placeholder {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.ad-placeholder p {
  margin: 0;
}

/* Banner Ad (728x90) */
.ad-banner {
  margin-top: 1rem;
}

.ad-banner .ad-content {
  min-height: 100px;
}

/* Mid-content Ad (injected between flight cards) */
.ad-mid-content {
  grid-column: 1 / -1;
  padding: 2rem 0;
}

.ad-mid-content .ad-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Footer Ad */
.ad-footer {
  margin-top: 2rem;
  margin-bottom: 0;
}

/* Responsive Ad Spaces */
@media (max-width: 768px) {
  .ad-space {
    padding: 1rem;
  }

  .ad-banner .ad-content,
  .ad-footer .ad-content {
    min-height: 60px;
  }

  .ad-placeholder {
    font-size: 0.8rem;
  }
}

/* ===========================
   FOOTER STYLES
   =========================== */
footer {
  background: rgba(15, 21, 53, 0.9);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  margin-top: 2rem;
  position: relative;
  z-index: 10;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.footer-logo-icon {
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-dark));
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.footer-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 2px;
}

.footer-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.6;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  margin: 1rem 0;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  position: relative;
}

.footer-nav a:hover {
  color: var(--accent-blue);
}

.footer-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  transition: var(--transition);
}

.footer-nav a:hover::after {
  width: 100%;
}

/* ===========================
   LEGAL PAGES & CONTACT STYLES
   =========================== */

/* Legal Pages (Privacy, Terms) */
.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 1;
}

.legal-content {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
}

.legal-content section {
  margin-bottom: 2.5rem;
}

.legal-content h2 {
  font-size: 1.75rem;
  color: var(--accent-blue);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.legal-content h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin: 1.5rem 0 0.75rem;
}

.legal-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-content ul {
  margin: 1rem 0 1rem 2rem;
  color: var(--text-secondary);
}

.legal-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.legal-content a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: var(--transition);
}

.legal-content a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.contact-info {
  background: rgba(0, 212, 255, 0.05);
  border-left: 4px solid var(--accent-blue);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
}

.contact-info p {
  margin-bottom: 0.75rem;
}

.legal-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

/* Contact Page */
.contact-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 1;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Contact Info Section */
.contact-info-section {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-info-section h2 {
  font-size: 1.75rem;
  color: var(--accent-blue);
  margin-bottom: 1rem;
}

.contact-info-section > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 212, 255, 0.05);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.contact-method:hover {
  background: rgba(0, 212, 255, 0.1);
}

.contact-icon {
  font-size: 2rem;
  min-width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.1);
  border-radius: var(--radius-md);
}

.contact-details h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contact-details p,
.contact-details a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  text-decoration: none;
}

.contact-details a {
  color: var(--accent-blue);
  transition: var(--transition);
}

.contact-details a:hover {
  text-decoration: underline;
}

/* Contact Form Section */
.contact-form-section {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-form-section h2 {
  font-size: 1.75rem;
  color: var(--accent-blue);
  margin-bottom: 1.5rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.required {
  color: #ff6b6b;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #ff6b6b;
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.char-count {
  display: block;
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.error-message {
  display: none;
  color: #ff6b6b;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.form-message {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.form-message.success {
  background: rgba(75, 192, 75, 0.15);
  border: 1px solid #4bc04b;
  color: #4bc04b;
}

.form-message.error {
  background: rgba(255, 107, 107, 0.15);
  border: 1px solid #ff6b6b;
  color: #ff6b6b;
}

/* Honeypot field (hidden) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.submit-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--accent-blue);
  border: none;
  border-radius: var(--radius-md);
  color: var(--bg-primary);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.submit-btn:hover:not(:disabled) {
  background: var(--accent-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.3);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--bg-primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-note {
  margin-top: 1rem;
  text-align: center;
  color: var(--text-muted);
}

.form-note a {
  color: var(--accent-blue);
  text-decoration: none;
}

.form-note a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.faq-section {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.faq-section h2 {
  font-size: 1.75rem;
  color: var(--accent-blue);
  margin-bottom: 2rem;
  text-align: center;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.faq-item {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-color-hover);
}

.faq-item h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.faq-item p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Responsive Design for Legal & Contact Pages */
@media (max-width: 768px) {
  .legal-content {
    padding: 1.5rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-form-section,
  .contact-info-section,
  .faq-section {
    padding: 1.5rem;
  }
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.flight-card {
  animation: fadeInUp 0.4s ease-out backwards;
}

.flight-card:nth-child(1) { animation-delay: 0.05s; }
.flight-card:nth-child(2) { animation-delay: 0.1s; }
.flight-card:nth-child(3) { animation-delay: 0.15s; }
.flight-card:nth-child(4) { animation-delay: 0.2s; }
.flight-card:nth-child(5) { animation-delay: 0.25s; }
.flight-card:nth-child(6) { animation-delay: 0.3s; }
.flight-card:nth-child(7) { animation-delay: 0.35s; }
.flight-card:nth-child(8) { animation-delay: 0.4s; }

/* ===========================
   NEW NAVIGATION & GUIDES
   =========================== */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 1.5rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--accent-blue);
  border-bottom-color: var(--accent-blue);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  position: relative;
}

.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  left: 0;
  transition: var(--transition);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Guides Section */
.guides-section {
  max-width: 1400px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.guide-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-blue);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.guide-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: rgba(0, 212, 255, 0.05);
  border-bottom: 1px solid var(--border-color);
}

.guide-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.guide-content h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.guide-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.read-more {
  color: var(--accent-blue);
  font-weight: 700;
  margin-top: auto;
  font-size: 0.9rem;
}

/* Hotel Specifics */
.hotel-stars {
  color: #ffb400;
  margin: 0.5rem 0;
  font-size: 1rem;
}

.book-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-blue);
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none !important;
  font-weight: 600;
  margin-top: 1rem;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.book-btn:hover {
  filter: brightness(1.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  color: white;
}

/* Mobile Navigation */
@media (max-width: 992px) {
  .guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-top {
    flex-wrap: wrap;
  }
  
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    background: var(--bg-secondary);
    padding: 1rem 0;
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .guides-grid {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 2rem;
  }
}

/* ===========================
   LANGUAGE SELECTOR
   =========================== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-selector {
  position: relative;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-blue);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: none;
  min-width: 140px;
  z-index: 1001;
  overflow: hidden;
  animation: fadeIn 0.2s ease-out;
}

.lang-selector.active .lang-dropdown {
  display: block;
}

.lang-dropdown a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.lang-dropdown a:hover {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-blue);
}

.lang-dropdown a.active {
  color: var(--accent-blue);
  background: rgba(0, 212, 255, 0.05);
  font-weight: 700;
}

/* RTL Support */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .logo,
[dir="rtl"] .info-header,
[dir="rtl"] .section-label {
  flex-direction: row-reverse;
}

[dir="rtl"] .arrival-section {
  text-align: left;
}

[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

[dir="rtl"] .read-more {
  display: inline-block;
  direction: rtl;
}
/* Hotel Grid and Cards */
.hotel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.hotel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.hotel-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-lg);
}

.hotel-card-image {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.hotel-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.hotel-card:hover .hotel-card-image img {
  transform: scale(1.05);
}

.hotel-card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hotel-card-content h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.hotel-card-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  flex: 1;
}

.hotel-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hotel-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.hotel-features li::before {
  content: '✓';
  color: var(--accent-blue);
}

/* RTL Adjustments for Hotel Cards */
[dir="rtl"] .hotel-features li::before {
  content: '✓';
}

@media (max-width: 600px) {
  .hotel-grid {
    grid-template-columns: 1fr;
  }
}
