/*
 * Booking-Travel Template Security Page Stylesheet
 * Matches the premium royal blue & amber gold travel theme
 * Clean, modern, responsive design for travel agency & reservations portal
 */

:root {
  --primary: #1e40af;        /* Booking Blue */
  --primary-hover: #1d4ed8;  /* Brighter Blue */
  --primary-light: #eff6ff;  /* Soft light blue background */
  --accent: #f59e0b;         /* Amber Gold */
  --dark: #0f172a;           /* Deep Slate Black */
  --dark-hover: #020617;
  --light-bg: #f8fafc;       /* Cool slate white */
  --border: #e2e8f0;         /* Cool border */
  --text-color: #334155;
  --text-muted: #64748b;     /* Muted gray-slate */
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Authorized View (Redirection Iframe Loader) */
html.authorized-html, body.authorized-body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body.authorized-body * {
  box-sizing: border-box;
}

main.authorized-main {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

#loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: url('../img/ajax-loader.gif') no-repeat center center;
  z-index: 9999;
}

/* Safe View (Hospitality Portal Page) */
body.safe-body {
  font-family: 'Assistant', sans-serif;
  background-color: var(--light-bg);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.8;
  direction: rtl; /* RTL */
}

body.safe-body * {
  box-sizing: border-box;
}

.safe-body header {
  background-color: #fff;
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  position: sticky;
  top: 0;
  z-index: 100;
}

.safe-body .header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.safe-body .logo {
  font-weight: 700;
  font-size: 22px;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', 'Assistant', sans-serif;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.safe-body .logo:hover {
  color: var(--primary);
}

.safe-body .logo-icon {
  transition: var(--transition-smooth);
}

.safe-body .logo:hover .logo-icon {
  transform: scale(1.1) rotate(-8deg);
}

.safe-body .nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.safe-body .nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition-smooth);
}

.safe-body .nav-links a:hover {
  color: var(--primary);
}

/* Hero Section */
.safe-body .hero {
  background: linear-gradient(135deg, var(--dark) 0%, #020617 100%);
  color: #fff;
  padding: 80px 20px 150px 20px;
  text-align: center;
  border-bottom: 4px solid var(--accent);
}

.safe-body .hero h1 {
  font-family: 'Outfit', 'Assistant', sans-serif;
  font-size: 42px;
  margin: 0 0 16px 0;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.safe-body .hero p {
  font-size: 18px;
  margin: 0;
  color: #e2e8f0;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Simulated Booking Search Bar */
.safe-body .search-container {
  max-width: 1100px;
  margin: -80px auto 60px auto;
  padding: 0 24px;
  position: relative;
  z-index: 20;
}

.safe-body .booking-search-bar {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 16px;
  align-items: end;
}

.safe-body .search-field {
  display: flex;
  flex-direction: column;
  text-align: right;
  gap: 8px;
}

.safe-body .search-field label {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}

.safe-body .search-field input,
.safe-body .search-field select {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-family: 'Assistant', sans-serif;
  outline: none;
  background-color: var(--light-bg);
  color: var(--dark);
  transition: border-color 0.3s, background-color 0.3s;
}

.safe-body .search-field input:focus,
.safe-body .search-field select:focus {
  border-color: var(--primary);
  background-color: #fff;
}

.safe-body .search-btn {
  background-color: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition-smooth);
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Assistant', sans-serif;
}

.safe-body .search-btn:hover {
  background-color: var(--primary-hover);
}

/* Stats Bar */
.safe-body .stats-bar {
  max-width: 1100px;
  margin: 0 auto 60px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.safe-body .stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.safe-body .stat-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

.safe-body .stat-text {
  text-align: right;
}

.safe-body .stat-text h4 {
  margin: 0;
  font-size: 15px;
  color: var(--dark);
  font-weight: 700;
}

.safe-body .stat-text p {
  margin: 2px 0 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Main Layout Grid */
.safe-body .main-content {
  max-width: 1100px;
  margin: 0 auto 80px auto;
  padding: 0 24px;
}

/* Titles */
.safe-body .section-title {
  text-align: center;
  margin-bottom: 48px;
}

.safe-body .section-title h2 {
  font-family: 'Outfit', 'Assistant', sans-serif;
  font-size: 32px;
  color: var(--dark);
  font-weight: 700;
  margin: 0 0 12px 0;
}

.safe-body .section-title p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Comprehensive Services Grid */
.safe-body .services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.safe-body .service-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: var(--transition-smooth);
  border-right: 4px solid var(--primary);
  text-align: right;
}

.safe-body .service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.safe-body .service-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
}

.safe-body .service-card h3 {
  margin: 0 0 12px 0;
  font-size: 18px;
  color: var(--dark);
  font-weight: 700;
}

.safe-body .service-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Popular Destinations Grid */
.safe-body .destinations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.safe-body .destination-card {
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition-smooth);
  text-align: right;
}

.safe-body .destination-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.safe-body .destination-image-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
  background-color: var(--dark);
}

.safe-body .destination-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.5s ease;
}

.safe-body .destination-card:hover .destination-image {
  transform: scale(1.05);
}

.safe-body .destination-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: var(--dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.safe-body .destination-rating-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.safe-body .destination-rating-badge span {
  color: var(--accent);
  font-weight: 700;
}

.safe-body .destination-content {
  padding: 24px;
}

.safe-body .destination-content h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  color: var(--dark);
  font-weight: 700;
}

.safe-body .destination-stars {
  display: flex;
  gap: 3px;
  color: var(--accent);
  font-size: 13px;
  margin-bottom: 16px;
}

.safe-body .destination-price {
  margin-bottom: 20px;
}

.safe-body .price-label {
  font-size: 13px;
  color: var(--text-muted);
}

.safe-body .price-amount {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.safe-body .book-btn {
  display: block;
  text-align: center;
  background: var(--dark);
  color: #fff;
  text-decoration: none;
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid var(--dark);
  transition: var(--transition-smooth);
}

.safe-body .book-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* Inquiry Form Section */
.safe-body .inquiry-section {
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--border);
  padding: 48px;
  box-shadow: var(--shadow);
  margin-bottom: 80px;
}

.safe-body .inquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.safe-body .inquiry-info {
  text-align: right;
}

.safe-body .inquiry-info h3 {
  font-size: 26px;
  color: var(--dark);
  font-weight: 700;
  margin: 0 0 16px 0;
}

.safe-body .inquiry-info p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin: 0 0 32px 0;
}

.safe-body .contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.safe-body .contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.safe-body .contact-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.safe-body .contact-text {
  text-align: right;
}

.safe-body .contact-text h5 {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.safe-body .contact-text p {
  margin: 2px 0 0 0;
  font-size: 15px;
  color: var(--dark);
  font-weight: 600;
}

.safe-body .inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: right;
}

.safe-body .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.safe-body .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.safe-body .form-group label {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}

.safe-body .form-group input,
.safe-body .form-group select,
.safe-body .form-group textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-family: 'Assistant', sans-serif;
  outline: none;
  background-color: var(--light-bg);
  transition: border-color 0.3s, background-color 0.3s;
}

.safe-body .form-group input:focus,
.safe-body .form-group select:focus,
.safe-body .form-group textarea:focus {
  border-color: var(--primary);
  background-color: #fff;
}

.safe-body .submit-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: 'Assistant', sans-serif;
  margin-top: 8px;
}

.safe-body .submit-btn:hover {
  background: var(--primary-hover);
}

/* Footer */
.safe-body footer {
  background-color: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .safe-body .booking-search-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .safe-body .search-btn {
    grid-column: span 2;
  }
  .safe-body .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .safe-body .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .safe-body .destinations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .safe-body .header-container {
    flex-direction: column;
    gap: 15px;
  }
  .safe-body .nav-links {
    gap: 15px;
  }
  .safe-body .hero h1 {
    font-size: 32px;
  }
  .safe-body .hero p {
    font-size: 16px;
  }
  .safe-body .booking-search-bar {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .safe-body .search-btn {
    grid-column: span 1;
  }
  .safe-body .stats-bar {
    grid-template-columns: 1fr;
  }
  .safe-body .services-grid {
    grid-template-columns: 1fr;
  }
  .safe-body .destinations-grid {
    grid-template-columns: 1fr;
  }
  .safe-body .inquiry-grid {
    grid-template-columns: 1fr;
  }
  .safe-body .inquiry-section {
    padding: 24px;
  }
  .safe-body .form-row {
    grid-template-columns: 1fr;
  }
}
