/*
Theme Name: Travel Lounge
Description: A comprehensive travel agency theme with booking capabilities for flights, hotels, car rentals, safaris and tours.
Version: 1.0.2
Author: Musyoki Mutuku
Text Domain: travel-lounge
*/

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
  color: #111111;
  background-color: #f8f9fa;
}
a {
  text-decoration: none;
  color: inherit;
}

/* Header Styles */
.site-header {
  background: rgb(253, 70, 33);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.site-logo h1 {
  font-size: 2rem;
  font-weight: bold;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.main-navigation a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
}

.main-navigation a:hover {
  opacity: 0.8;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("assets/images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-content h2 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

/* Booking Widgets */
.booking-widgets {
  background: white;
  margin: -100px auto 0;
  max-width: 1200px;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 100;
}

.booking-tabs {
  display: flex;
  margin-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.booking-tab {
  padding: 1rem 2rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #666;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
}

.booking-tab.active {
  color: rgb(253, 70, 33);
  border-bottom-color: rgb(253, 70, 33);
}

.booking-form {
  display: none;
}

.booking-form.active {
  display: block;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  min-width: 200px;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #111111;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.btn {
  background: rgb(253, 70, 33);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: transform 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
}

/* Services Section */
.services-section {
  padding: 4rem 0;
  background: white;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #111111;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: rgb(253, 70, 33);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #111111;
}

.service-card p {
  color: #666;
  margin-bottom: 1.5rem;
}

/* Featured Destinations */
.destinations-section {
  padding: 4rem 0;
  background: #f8f9fa;
}

.destinations-grid,
.hotels-grid,
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.destination-card,
.hotel-card,
.activity-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.destination-card:hover {
  transform: translateY(-5px);
}

.destination-image,
.hotel-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.destination-content {
  padding: 1.5rem;
}

.destination-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #111111;
}

.destination-price {
  color: rgb(253, 70, 33);
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.destination-description {
  color: #666;
  margin-bottom: 1rem;
}
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

/* Generic card */
.destination-item,
.tour-item,
.hotel-item,
.activity-item {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.destination-item a,
.tour-item a,
.hotel-item a,
.activity-item a {
  color: inherit;
  text-decoration: none;
  display: block;
  height: 100%;
}

/* Thumbnail area */
.destination-item img,
.tour-item img,
.hotel-item img,
.activity-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* Card content */
.destination-item h2,
.tour-item h2,
.hotel-item h2,
.activity-item h2 {
  font-size: 1.125rem;
  margin: 0.75rem 1rem 0.25rem;
  line-height: 1.2;
}

.destination-item p,
.tour-item p,
.hotel-item p,
.activity-item p {
  margin: 0 1rem 1rem;
  color: #505050;
  font-size: 0.95rem;
}

/* Score badge */
.score {
  margin: 0 1rem 1rem;
  font-weight: 600;
  color: #111;
  font-size: 0.875rem;
}

/* Card hover */
.destination-item:hover,
.tour-item:hover,
.hotel-item:hover,
.activity-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(24, 24, 24, 0.08);
}

/* Pagination spacing */
.pagination {
  margin-top: 1.5rem;
  text-align: center;
}

/* Filter form */
form.filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  align-items: center;
}

form.filters input[type="search"],
form.filters select {
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  font-size: 0.95rem;
}

form.filters button {
  padding: 0.55rem 0.9rem;
  border-radius: 6px;
  border: none;
  background: #0b6efd;
  color: white;
  cursor: pointer;
  font-weight: 600;
}

/* Single post styles (destination, tour, hotel, activity) */
.single-destination .featured-image,
.single-tour .featured-image,
.single-hotel .featured-image,
.single-activity .featured-image {
  width: 100%;
  max-height: 520px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.single-destination .featured-image img,
.single-tour .featured-image img,
.single-hotel .featured-image img,
.single-activity .featured-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Content + meta two-column layout on larger screens */
.single-destination .entry-content,
.single-tour .entry-content,
.single-hotel .entry-content,
.single-activity .entry-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

/* Meta / sidebar inside single post */
.destination-meta,
.tour-meta,
.hotel-meta,
.activity-meta {
  background: #fbfbfb;
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.destination-meta p,
.tour-meta p,
.hotel-meta p,
.activity-meta p {
  margin: 0 0 0.6rem;
}

/* Title & header spacing */
.single-destination .entry-header h1,
.single-tour .entry-header h1,
.single-hotel .entry-header h1,
.single-activity .entry-header h1 {
  margin: 0 0 0.5rem;
  font-size: 1.8rem;
}

/* Responsive adjustments */
@media (max-width: 860px) {
  .single-destination .entry-content,
  .single-tour .entry-content,
  .single-hotel .entry-content,
  .single-activity .entry-content {
    grid-template-columns: 1fr;
  }

  .destination-item img,
  .tour-item img,
  .hotel-item img,
  .activity-item img {
    height: 160px;
  }
}

@media (max-width: 480px) {
  form.filters {
    gap: 0.35rem;
  }

  .destination-item img,
  .tour-item img,
  .hotel-item img,
  .activity-item img {
    height: 140px;
  }

  .destination-item h2,
  .tour-item h2,
  .hotel-item h2,
  .activity-item h2 {
    font-size: 1rem;
  }
}

/* Small utility */
.entry-content img {
  max-width: 100%;
  height: auto;
}

/* Footer */
.site-footer {
  background: #333;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: rgb(253, 70, 33);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #555;
  padding-top: 1rem;
  text-align: center;
  color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

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

  .hero-content h2 {
    font-size: 2.5rem;
  }

  .booking-widgets {
    margin: 0 20px;
    margin-top: -30px;
  }

  .booking-tabs {
    flex-wrap: wrap;
  }

  .form-row {
    flex-direction: column;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

/* Enhanced Filters & Grid Layout */
.page-header {
  background: rgb(253, 70, 33);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.filters-container {
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
  padding: 2rem;
}

.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 180px;
}

.filter-group label {
  font-weight: 600;
  color: #111111;
  font-size: 0.9rem;
}

.filter-select,
.filter-input {
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: border-color 0.3s;
}

.filter-select:focus,
.filter-input:focus {
  outline: none;
  border-color: rgb(253, 70, 33);
}

.price-range-container {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.price-range-container input {
  flex: 1;
}

.filter-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}

.sort-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-filter,
.btn-clear {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-filter {
  background: rgb(253, 70, 33);
  color: white;
}

.btn-filter:hover {
  background: rgba(253, 70, 33, 0.9);
}

.btn-clear {
  background: transparent;
  color: rgb(253, 70, 33);
  border: 2px solid rgb(253, 70, 33);
}

.btn-clear:hover {
  background: rgb(253, 70, 33);
  color: white;
}

.results-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.results-count {
  font-weight: 500;
  color: #111111;
}

/* Enhanced Grid Layout */
.destinations-grid,
.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.destination-card,
.tour-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.destination-card:hover,
.tour-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.destination-image,
.tour-image {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.destination-image img,
.tour-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.destination-card:hover .destination-image img,
.tour-card:hover .tour-image img {
  transform: scale(1.05);
}

.destination-content,
.tour-content {
  padding: 1.5rem;
}

.destination-title,
.tour-title {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: #111111;
  font-weight: 600;
}

.destination-price,
.tour-price {
  color: rgb(253, 70, 33);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.tour-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}

.detail-item i {
  color: rgb(253, 70, 33);
}

.difficulty-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.difficulty-badge.easy {
  background: #4caf50;
  color: white;
}

.difficulty-badge.moderate {
  background: #ff9800;
  color: white;
}

.difficulty-badge.challenging {
  background: #f44336;
  color: white;
}

.tour-actions,
.destination-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.btn-outline {
  background: transparent;
  border: 2px solid rgb(253, 70, 33);
  color: rgb(253, 70, 33);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  flex: 1;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: rgb(253, 70, 33);
  color: white;
}

.tour-actions .btn,
.destination-actions .btn {
  flex: 1;
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
}

/* Loading State */
.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  z-index: 9999;
}

.loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid rgb(253, 70, 33);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Responsive Design for Filters */
@media (max-width: 768px) {
  .filters-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    min-width: auto;
  }

  .filter-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .results-info {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .destinations-grid,
  .tours-grid {
    grid-template-columns: 1fr;
  }

  .tour-actions,
  .destination-actions {
    flex-direction: column;
  }
}
