/* Base styles */
:root {
  --primary: #0ea5e9;
  --primary-foreground: #ffffff;
  --secondary: #f4f4f5;
  --secondary-foreground: #18181b;
  --muted: #f4f4f5;
  --muted-foreground: #71717a;
  --accent: #f4f4f5;
  --accent-foreground: #18181b;
  --background: #ffffff;
  --foreground: #18181b;
  --card: #ffffff;
  --card-foreground: #18181b;
  --border: #e4e4e7;
  --input: #e4e4e7;
  --amber-500: #f59e0b;
  --black-60: rgba(0, 0, 0, 0.6);
  --black-40: rgba(0, 0, 0, 0.4);
  --white-90: rgba(255, 255, 255, 0.9);
  --white-80: rgba(255, 255, 255, 0.8);
  --radius: 0.5rem;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html,
body {
  height: 100%;
  font-family: var(--font-sans);
  color: var(--foreground);
  background-color: var(--background);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* Layout */
.flex-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

.main {
  flex: 1;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background-color: var(--background);
  backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
}

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

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

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

/* Hero section */
.hero {
  position: relative;
  height: 70vh;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background-color: var(--black-40);
}

.hero-image {
  position: relative;
  height: 100%;
}

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

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-description {
  margin-top: 1rem;
  max-width: 36rem;
  font-size: 1.125rem;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Section styles */
.section-header {
  margin: 0 auto;
  max-width: 60rem;
  text-align: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-description {
  color: var(--muted-foreground);
}

.popular-tours {
  padding: 3rem 0;
}

.why-choose-us {
  background-color: var(--muted);
  padding: 3rem 0;
}

.about-cambodia {
  padding: 3rem 0;
}

.newsletter {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 3rem 0;
}

.newsletter-content {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.newsletter-description {
  color: var(--white-80);
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 28rem;
  margin: 0 auto;
}

/* Tabs */
.tabs {
  margin-top: 2rem;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(1, 1fr);
}

.card {
  background-color: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.card-header {
  padding: 0;
}

.card-image-container {
  position: relative;
  height: 12rem;
  width: 100%;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.card-badge {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  background-color: var(--black-60);
  color: white;
  border-radius: 9999px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

.card-content {
  padding: 1rem;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--amber-500);
}

.star-filled {
  fill: var(--amber-500);
}

.card-title {
  margin-top: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-description {
  margin-top: 0.25rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

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

.card-price {
  display: flex;
  align-items: baseline;
}

.price {
  font-size: 1.125rem;
  font-weight: 700;
}

.view-all {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

/* Features */
.features-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(1, 1fr);
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.feature-title {
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.feature-description {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
}

/* About section */
.about-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}

.about-image {
  position: relative;
  height: 25rem;
  overflow: hidden;
  border-radius: var(--radius);
}

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

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-description {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.about-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background-color: var(--muted);
  background-opacity: 0.5;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 0;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.footer-description {
  margin-top: 0.5rem;
  max-width: 28rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-links {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.footer-link {
  color: var(--primary);
}

.footer-link:hover {
  color: var(--primary-foreground);
  opacity: 0.8;
}

.footer-separator {
  color: var(--muted-foreground);
}

.footer-copyright {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

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

.btn-sm {
  height: 2rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
}

.btn-lg {
  height: 2.75rem;
  padding: 0 1.5rem;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background-color: var(--primary);
  opacity: 0.9;
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.btn-secondary:hover {
  background-color: var(--secondary);
  opacity: 0.9;
}

.btn-white {
  background-color: white;
  color: black;
}

.btn-white:hover {
  background-color: var(--white-90);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background-color: var(--muted);
}

.btn-icon {
  height: 2.25rem;
  width: 2.25rem;
  padding: 0;
}

.btn-full {
  width: 100%;
}

.btn-reset {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.875rem;
  color: var(--primary);
  cursor: pointer;
}

/* Icons */
.icon {
  width: 1.5rem;
  height: 1.5rem;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
  margin-right: 0.25rem;
}

.icon-xs {
  width: 0.875rem;
  height: 0.875rem;
}

/* Excursii page specific styles */
.excursii-section {
  padding: 2rem 0 3rem;
}

.excursii-header {
  margin-bottom: 2rem;
}

.excursii-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.excursii-description {
  color: var(--muted-foreground);
}

.excursii-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.filters-sidebar {
  width: 100%;
}

.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.filters-title {
  font-weight: 600;
}

.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group-title {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.price-input-group {
  display: grid;
  gap: 0.375rem;
}

.price-input-group label {
  font-size: 0.875rem;
}

.price-input {
  height: 2rem;
  padding: 0 0.75rem;
  border: 1px solid var(--input);
  border-radius: var(--radius);
}

.filter-separator {
  height: 1px;
  background-color: var(--border);
  margin: 1.5rem 0;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-checkbox {
  width: 1rem;
  height: 1rem;
}

.filter-label {
  font-size: 0.875rem;
  font-weight: 500;
}

.excursii-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.search-container {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 0.625rem;
  top: 0.625rem;
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
}

.search-input {
  width: 100%;
  padding: 0.5rem 0.5rem 0.5rem 2rem;
  border: 1px solid var(--input);
  border-radius: var(--radius);
}

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

.sort-select {
  width: 180px;
  padding: 0.5rem;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background-color: var(--background);
}

.filter-button-mobile {
  display: none;
}

.newsletter-input {
  padding: 0.5rem 1rem;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background-color: var(--primary-foreground);
}

/* Text utilities */
.text-muted {
  color: var(--muted-foreground);
}

/* Media queries */
@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-actions {
    flex-direction: row;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .excursii-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .search-container {
    width: 300px;
  }

  .filter-button-mobile {
    display: flex;
  }

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

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .about-actions {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .excursii-layout {
    flex-direction: row;
  }

  .filters-sidebar {
    width: 16rem;
    flex-shrink: 0;
    position: sticky;
    top: 6rem;
    height: fit-content;
  }

  .excursii-content {
    flex: 1;
  }
}

