/* ==========================================================================
   Joy Holidays - Production Stylesheet
   Modern, Ultra-Fast, Luxury Travel Theme
   ========================================================================== */

:root {
  --primary: #0b1e38;
  --primary-light: #162d4e;
  --primary-dark: #071324;
  --accent: #f2994a;
  --accent-gold: #e5a93c;
  --accent-hover: #e08331;
  --secondary: #0ea5e9;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 28px rgba(0,0,0,0.12);
  --shadow-hover: 0 16px 36px rgba(11,30,56,0.14);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1240px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   TOP ANNOUNCEMENT & CONTACT BAR
   ========================================================================== */
.top-bar {
  background: var(--primary-dark);
  color: #cbd5e1;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0.55rem 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-accreditation {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #f8fafc;
}

.top-accreditation i {
  color: var(--accent-gold);
}

.top-contacts {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #e2e8f0;
}

.top-contacts a:hover {
  color: var(--accent);
}

/* ==========================================================================
   MAIN NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.brand-title span {
  color: var(--accent);
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-light);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.mobile-toggle-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--primary);
  cursor: pointer;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #e08331 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(242, 153, 74, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e08331 0%, #c86e20 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 153, 74, 0.45);
}

.btn-navy {
  background: var(--primary);
  color: #fff;
}

.btn-navy:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--border-color);
  color: var(--primary);
  background: #fff;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff8f1;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.84rem;
}

.btn-lg {
  padding: 0.85rem 1.85rem;
  font-size: 1.05rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-gold {
  background: #fef3c7;
  color: #92400e;
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
}

.badge-blue {
  background: #e0f2fe;
  color: #0369a1;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(11, 30, 56, 0.92) 0%, rgba(15, 41, 77, 0.85) 100%),
              url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  color: #fff;
  padding: 5.5rem 0 6.5rem;
  text-align: center;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #fde68a;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
}

.hero-title span {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #e2e8f0;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* ==========================================================================
   HERO SEARCH / BOOKING WIDGET
   ========================================================================== */
.search-widget-wrap {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  padding: 1.5rem 2rem;
  color: var(--text-main);
  text-align: left;
  max-width: 1040px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.widget-tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.widget-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.widget-tab-btn:hover, .widget-tab-btn.active {
  color: var(--accent);
  background: #fff7ed;
}

.widget-form-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 1rem;
  align-items: end;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.field-group input, .field-group select {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  background: #f8fafc;
  color: var(--text-main);
  transition: var(--transition);
}

.field-group input:focus, .field-group select:focus {
  border-color: var(--accent);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(242, 153, 74, 0.15);
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  background: #fff7ed;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   HOTEL BOOKING SYSTEM (HOME PAGE)
   ========================================================================== */
.hotels-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
  border: 1px solid var(--border-color);
}

.dest-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dest-pill-btn {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.dest-pill-btn:hover, .dest-pill-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.hotel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

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

.hotel-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.hotel-img-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.hotel-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.hotel-badge-floating {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(11, 30, 56, 0.85);
  color: #fff;
  backdrop-filter: blur(6px);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
}

.hotel-rating-floating {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hotel-rating-floating i {
  color: var(--accent-gold);
}

.hotel-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.hotel-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.hotel-location i {
  color: var(--accent);
}

.hotel-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.hotel-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.amenity-tag {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.76rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

.hotel-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hotel-price-block {
  display: flex;
  flex-direction: column;
}

.hotel-price-old {
  font-size: 0.82rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.hotel-price-current {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.hotel-price-current span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   PACKAGES SECTION
   ========================================================================== */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

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

.pkg-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.pkg-img-wrap {
  position: relative;
  height: 230px;
}

.pkg-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pkg-duration-pill {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.pkg-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pkg-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.pkg-highlights {
  list-style: none;
  margin-bottom: 1.25rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.pkg-highlights li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.35rem;
}

.pkg-highlights li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 800;
}

/* ==========================================================================
   TRUST & ACCREDITATION SECTION
   ========================================================================== */
.trust-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 4rem 0;
  position: relative;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.trust-icon {
  width: 68px;
  height: 68px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--accent-gold);
}

.trust-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.trust-desc {
  font-size: 0.86rem;
  color: #cbd5e1;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--primary-dark);
  color: #94a3b8;
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
}

.footer-contact-item i {
  color: var(--accent-gold);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   MODAL DIALOGS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 30, 56, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #fff;
  width: 100%;
  max-width: 620px;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  overflow: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  background: var(--primary);
  color: #fff;
  padding: 1.25rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.modal-title i {
  color: var(--accent);
}

.modal-close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
  opacity: 0.75;
  transition: var(--transition);
}

.modal-close-btn:hover {
  opacity: 1;
  color: var(--accent);
}

.modal-body {
  padding: 1.75rem;
  overflow-y: auto;
}

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

.form-full {
  grid-column: span 2;
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON & TOASTS
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
}

.floating-whatsapp a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: var(--transition);
}

.floating-whatsapp a:hover {
  transform: scale(1.08) translateY(-4px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: #fff;
  color: var(--text-main);
  padding: 1rem 1.35rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-left: 4px solid var(--accent);
  animation: slideInRight 0.3s ease;
}

.toast.toast-success {
  border-left-color: var(--success);
}

.toast.toast-error {
  border-left-color: var(--danger);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .widget-form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .widget-form-grid .btn {
    grid-column: span 2;
  }
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar-inner {
    flex-direction: column;
    text-align: center;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-toggle-btn {
    display: block;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .widget-form-grid {
    grid-template-columns: 1fr;
  }
  .widget-form-grid .btn {
    grid-column: span 1;
  }
  .hotel-grid, .packages-grid {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-full {
    grid-column: span 1;
  }
}
