/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #FF6B35;
  --primary-dark: #E55A2B;
  --secondary-color: #004E89;
  --text-dark: #1A1A1A;
  --text-light: #666;
  --bg-light: #F8F9FA;
  --white: #FFFFFF;
  --border-color: #E0E0E0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  position: relative;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  background: var(--bg-light);
  border-color: var(--primary-color);
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex !important;
  }
  
  .nav-links {
    display: flex !important;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .nav-links.active {
    transform: translateX(0) !important;
  }

  .nav-links li {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-links li:last-child {
    border-bottom: none;
  }
  
  .nav-links a {
    display: block;
    padding: 0.5rem 0;
    font-size: 1.1rem;
    width: 100%;
  }
  
  .nav-container {
    padding: 0 1rem;
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  margin-top: 70px;
  padding-bottom: 180px;
  margin-bottom: 120px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
  z-index: 2;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 3rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  opacity: 0.95;
}

/* Search Bar */
.search-container {
  position: absolute;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  max-width: 900px;
  width: 90%;
  padding: 0 2rem;
  visibility: visible;
  opacity: 1;
  display: block;
}

.search-bar {
  background: white;
  border-radius: 50px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.search-bar.expanded {
  border-radius: 20px;
  padding: 1rem;
}

.search-section {
  flex: 1;
  padding: 1rem 1.5rem;
  border-right: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.search-section:last-child {
  border-right: none;
}

.search-section:hover {
  background: var(--bg-light);
  border-radius: 12px;
}

.search-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
  display: block;
}

.search-value {
  font-size: 0.9rem;
  color: var(--text-light);
}

.search-value.active {
  color: var(--text-dark);
  font-weight: 500;
}

.search-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.search-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
}

/* Search Modal */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.search-modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
}

.close-modal:hover {
  color: var(--text-dark);
}

.modal-section {
  margin-bottom: 2rem;
}

.modal-section label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.modal-section select,
.modal-section input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
}

.modal-section select:focus,
.modal-section input:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Explore Dhams Section */
.explore-section {
  padding: 5rem 2rem;
  background: var(--bg-light);
  margin-top: 0;
  position: relative;
  z-index: 5;
  min-height: 500px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-dark);
}

.dham-carousel {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.dham-cards {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) transparent;
}

.dham-cards::-webkit-scrollbar {
  height: 8px;
}

.dham-cards::-webkit-scrollbar-track {
  background: transparent;
}

.dham-cards::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

.dham-card {
  min-width: 350px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  opacity: 1;
  visibility: visible;
}

.dham-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.dham-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  position: relative;
}

.dham-card-content {
  padding: 1.5rem;
}

.dham-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.dham-card-description {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.dham-card-cta {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.dham-card:hover .dham-card-cta {
  gap: 1rem;
}

/* Hotel Listings */
.listings-section {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.listings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.view-toggle {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-light);
  padding: 0.25rem;
  border-radius: 8px;
}

.view-toggle button {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.view-toggle button.active {
  background: white;
  box-shadow: var(--shadow);
  color: var(--primary-color);
}

.hotels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.hotels-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hotel-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.hotel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.hotel-card-image-container {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.hotel-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.hotel-card:hover .hotel-card-image {
  transform: scale(1.1);
}

.hotel-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.hotel-card-content {
  padding: 1.5rem;
}

.hotel-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 0.5rem;
}

.hotel-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
}

.hotel-card-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--primary-color);
  font-weight: 600;
}

.hotel-card-location {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hotel-card-amenities {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.amenity-icon {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.hotel-card-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tag {
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.hotel-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.hotel-card-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.hotel-card-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-light);
}

.hotel-card-cta-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: none;
}

.hotel-card:hover .hotel-card-cta-btn {
  display: block;
}

.hotel-card-cta-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

/* List View */
.hotel-card-list {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

.hotel-card-list .hotel-card-image-container {
  width: 400px;
  min-width: 300px;
  height: 250px;
}

.hotel-card-list .hotel-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 4rem 2rem 2rem;
  margin-top: 5rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}

.social-icon:hover {
  background: var(--primary-color);
  transform: translateY(-4px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex !important;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .search-bar {
    flex-direction: column;
    border-radius: 20px;
    padding: 1rem;
  }

  .search-section {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
  }

  .search-section:last-child {
    border-bottom: none;
  }

  .search-btn {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
  }

  .dham-card {
    min-width: 280px;
  }

  .hotels-grid {
    grid-template-columns: 1fr;
  }

  .hotel-card-list {
    flex-direction: column;
  }

  .hotel-card-list .hotel-card-image-container {
    width: 100%;
  }

  .listings-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  /* Additional Mobile Styles for All Pages */
  .listings-section {
    padding: 2rem 1rem !important;
  }
  
  .explore-section {
    padding: 3rem 1rem !important;
  }
  
  .section-title {
    font-size: 2rem !important;
  }
  
  .hotel-detail {
    padding: 1rem !important;
  }
  
  .booking-page {
    padding: 1.5rem 1rem !important;
  }
  
  .filter-modal-content {
    max-width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
  }
  
  .filter-body {
    padding: 1.5rem !important;
  }
  
  .filter-footer {
    padding: 1.5rem !important;
    flex-direction: column;
  }
  
  .clear-filters,
  .apply-filters {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 70vh;
    min-height: 500px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .explore-section,
  .listings-section {
    padding: 3rem 1rem;
  }
}

