/* Base styles */
:root {
  --color-background: #ffffff;
  --color-foreground: #333333;
  --color-travel-teal: #0cc0df;
  --color-travel-blue: #2a7fff;
  --color-travel-dark: #1f2937;
  --color-travel-gray: #6b7280;
  --color-travel-yellow: #ffb700;
  --font-family: 'Poppins', sans-serif;
  --border-radius: 0.5rem;
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-foreground);
  line-height: 1.6;
  background-color: var(--color-background);
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--color-travel-gray);
  max-width: 600px;
  margin: 0 auto;
}

.section-footer {
  text-align: center;
  margin-top: 2.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--color-travel-blue);
  color: white;
}

.btn-primary:hover {
  background-color: rgba(42, 127, 255, 0.8);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--border-radius);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
}

.navbar-logo {
  font-size: 1.25rem;
  font-weight: 700;
}

.navbar-logo .text-teal {
  color: var(--color-travel-teal);
}

.navbar-logo .text-blue {
  color: var(--color-travel-blue);
}

.navbar-logo .text-gray {
  color: var(--color-travel-dark);
}

.navbar-links {
  display: none;
}

.navbar-links a {
  margin: 0 1rem;
  color: var(--color-travel-dark);
}

.navbar-links a:hover {
  color: var(--color-travel-blue);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-toggle {
  display: block;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1500673922987-e212871fec22?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
  background-position: center 40%;
  background-size: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
  z-index: -1;
}

.hero-content {
  max-width: 650px;
  color: white;
  animation: fadeIn 0.5s ease-out;
}

.hero-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.search-box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 0.75rem;
  border-radius: var(--border-radius);
}

.search-box input {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--border-radius);
  background-color: white;
  font-family: var(--font-family);
}

/* Destinations Section */
.destinations-section {
  padding: 4rem 0;
  background-color: #f9fafb;
}

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

.destination-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.destination-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.destination-card-image {
  position: relative;
  height: 12rem;
  overflow: hidden;
}

.destination-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.destination-card-price {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background-color: white;
  color: var(--color-travel-dark);
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
}

.destination-card-content {
  padding: 1rem;
}

.destination-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.destination-card-title {
  font-weight: 600;
  font-size: 1.125rem;
}

.destination-card-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.destination-card-rating svg {
  color: var(--color-travel-yellow);
  fill: var(--color-travel-yellow);
}

.destination-card-location {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--color-travel-gray);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.destination-card-description {
  color: var(--color-travel-gray);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.destination-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.destination-tag {
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background-color: rgba(0, 0, 0, 0.025);
}

/* Categories Section */
.categories-section {
  padding: 4rem 0;
}

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

.category-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.category-card:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  background-color: rgba(0, 0, 0, 0.025);
}

.category-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.category-name {
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.category-count {
  font-size: 0.875rem;
  color: var(--color-travel-gray);
}

/* Popular Section */
.popular-section {
  padding: 4rem 0;
  background-color: var(--color-travel-dark);
  color: white;
}

.popular-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.popular-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.popular-card-content {
  display: flex;
  flex-direction: column;
}

.popular-card-image {
  height: 15rem;
}

.popular-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.popular-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.popular-card-badge {
  display: inline-block;
  background-color: var(--color-travel-blue);
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.popular-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.popular-card-title {
  font-weight: 600;
  font-size: 1.25rem;
}

.popular-card-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.popular-card-rating svg {
  color: var(--color-travel-yellow);
  fill: var(--color-travel-yellow);
}

.popular-card-location {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #d1d5db;
  font-size: 0.875rem;
}

.popular-card-description {
  color: #d1d5db;
}

.popular-card-facilities h4 {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.popular-card-facility-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.popular-card-facility {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
}

.popular-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.popular-card-price {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-travel-blue);
}

/* Tips Section */
.tips-section {
  padding: 4rem 0;
  background-image: linear-gradient(to right, rgba(12, 192, 223, 0.1), rgba(42, 127, 255, 0.1));
}

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

.tip-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: none;
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.tip-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.tip-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.tip-title {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.tip-description {
  color: var(--color-travel-gray);
}

/* Footer */
.footer {
  background-color: var(--color-travel-dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-info {
  max-width: 100%;
}

.footer-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-info p {
  color: #d1d5db;
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #d1d5db;
  transition: var(--transition);
}

.social-icon:hover {
  color: white;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-links-column h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links-column ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links-column a {
  color: #d1d5db;
}

.footer-links-column a:hover {
  color: white;
}

.footer-links-column p {
  color: #d1d5db;
  margin-bottom: 1rem;
}

.footer-subscribe {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-subscribe input {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--border-radius);
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
  font-family: var(--font-family);
}

.footer-subscribe input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.footer-bottom p {
  color: #9ca3af;
  font-size: 0.875rem;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: #9ca3af;
  font-size: 0.875rem;
}

.footer-bottom-links a:hover {
  color: white;
}

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

/* Responsive */
@media (min-width: 640px) {
  .destinations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .search-box {
    flex-direction: row;
  }
  
  .search-box input {
    flex-grow: 1;
  }
  
  .popular-card-content {
    flex-direction: row;
  }
  
  .popular-card-image {
    width: 33.333%;
    height: auto;
  }
  
  .popular-card-body {
    width: 66.666%;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .navbar-links {
    display: flex;
  }
  
  .navbar-toggle {
    display: none;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .destinations-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .tips-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .footer-content {
    flex-direction: row;
  }
  
  .footer-info {
    max-width: 33.333%;
  }
  
  .footer-links {
    flex-grow: 1;
    grid-template-columns: repeat(3, 1fr);
  }
}