/* Global Styles */
body {
  font-family: 'IBM Plex Sans Thai', 'Plus Jakarta Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Container max-width for different screen sizes */
.max-w-md {
  max-width: 640px; /* Mobile first approach */
}

@media (min-width: 640px) {
  .max-w-md {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .max-w-md {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .max-w-md {
    max-width: 1024px;
  }
}

/* Responsive container centering */
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.pb-24 {
  padding-bottom: 6rem;
}

/* Responsive grid */
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 640px) {
  .grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr)); /* Single column on mobile */
  }
  
  .auto-rows-[150px] {
    grid-auto-rows: 120px; /* Smaller rows on mobile */
  }
  
  .col-span-2 {
    grid-column: span 1 / span 1; /* Single column span on mobile */
  }
  
  .row-span-2 {
    grid-row: span 1 / span 1; /* Single row span on mobile */
  }
}

@media (min-width: 640px) {
  .auto-rows-[150px] {
    grid-auto-rows: 150px;
  }
  
  .col-span-2 {
    grid-column: span 2 / span 2;
  }
  
  .row-span-2 {
    grid-row: span 2 / span 2;
  }
}

/* Aspect ratios */
.aspect-\[4\/5\] {
  aspect-ratio: 4/5;
}

.aspect-\[2\/1\] {
  aspect-ratio: 2/1;
}

.aspect-\[4\/3\] {
  aspect-ratio: 4/3;
}

/* Responsive typography */
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

@media (max-width: 640px) {
  .text-lg {
    font-size: 1rem;
    line-height: 1.5rem;
  }
  
  .text-xl {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }
  
  .text-2xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
  
  .text-3xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }
}

/* Responsive navigation */
.sticky {
  position: sticky;
}

.top-0 {
  top: 0px;
}

.top-14 {
  top: 3.5rem;
}

.z-50 {
  z-index: 50;
}

.z-40 {
  z-index: 40;
}

/* Responsive buttons */
.w-full {
  width: 100%;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (max-width: 640px) {
  .py-4 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  
  .px-6 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Responsive footer */
.pb-28 {
  padding-bottom: 7rem;
}

@media (max-width: 640px) {
  .pb-28 {
    padding-bottom: 10rem; /* More space for mobile */
  }
}

/* Responsive gallery */
.grid.grid-cols-2.gap-3.auto-rows-\[150px\] {
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .grid.grid-cols-2.gap-3.auto-rows-\[150px\] {
    gap: 0.5rem; /* Smaller gaps on mobile */
  }
}

/* Responsive booking steps */
.space-y-6 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
}

@media (max-width: 640px) {
  .space-y-6 > :not([hidden]) ~ :not([hidden]) {
    margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(1rem * var(--tw-space-y-reverse));
  }
}

/* Responsive features section */
.grid.grid-cols-2.gap-4 {
  gap: 1rem;
}

@media (max-width: 640px) {
  .grid.grid-cols-2.gap-4 {
    gap: 0.75rem; /* Smaller gaps on mobile */
  }
}

/* Hide scrollbar for Chrome, Safari and Opera */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Common utility classes */
.text-soft {
  color: #5A6655;
}

.bg-cream {
  background-color: #F5EFE6;
}

.bg-sand {
  background-color: #E8E2D7;
}

.text-main {
  color: #2C3329;
}

.border-sand {
  border-color: #E8E2D7;
}

/* Shadow utilities */
.shadow-soft {
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

/* Rounded utilities */
.rounded-2xl {
  border-radius: 1.5rem;
}

.rounded-xl {
  border-radius: 1rem;
}

.rounded-lg {
  border-radius: 0.75rem;
}

.rounded-full {
  border-radius: 9999px;
}

/* Transitions */
.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-500 {
  transition-duration: 500ms;
}

.duration-700 {
  transition-duration: 700ms;
}

.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

/* Snap scrolling */
.snap-x {
  scroll-snap-type: x mandatory;
}

.snap-center {
  scroll-snap-align: center;
}

/* Line clamp */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Active scale */
.active\:scale-95:active {
  transform: scale(0.95);
}

.active\:scale-\[0\.98\]:active {
  transform: scale(0.98);
}

/* Hover effects */
.hover\:scale-110:hover {
  transform: scale(1.1);
}

.hover\:bg-black\/5:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.hover\:bg-white\/10:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.hover\:bg-emerald-50:hover {
  background-color: #ecfdf5;
}

.hover\:bg-white:hover {
  background-color: white;
}

.hover\:text-primary:hover {
  color: #5de619;
}

.hover\:bg-white\/20:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.hover\:bg-emerald-500\/20:hover {
  background-color: rgba(16, 185, 129, 0.2);
}

.hover\:bg-orange-500\/20:hover {
  background-color: rgba(249, 115, 22, 0.2);
}

.hover\:bg-indigo-500\/20:hover {
  background-color: rgba(99, 102, 241, 0.2);
}

.hover\:bg-teal-500\/20:hover {
  background-color: rgba(20, 184, 166, 0.2);
}

.hover\:bg-slate-700:hover {
  background-color: #3f3f46;
}

.hover\:opacity-80:hover {
  opacity: 0.8;
}

/* Animation */
.animate-bounce {
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: none;
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

/* Material Symbols */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.material-symbols-outlined.filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Page Transition Effects */
body {
  transition: opacity 0.3s ease-in-out;
}

.fade-out {
  opacity: 0;
}

/* Responsive adjustments for desktop */
@media (min-width: 1024px) {
  body {
    font-size: 16px; /* Slightly larger text on desktop */
  }
  
  .max-w-md {
    max-width: 1200px; /* Wider container on desktop */
  }
  
  .container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Adjust header and navigation for desktop */
  .desktop-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
  }
  
  .desktop-nav a {
    padding: 0.5rem 1rem;
  }
  
  /* Adjust hero section for desktop */
  .hero-section {
    padding: 2rem 0;
  }
  
  /* Adjust gallery for desktop */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
  }
  
  /* Adjust features section for desktop */
  .features-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
  }
}

/* Responsive adjustments for tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .max-w-md {
    max-width: 800px;
  }
  
  .grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
  }
}

/* Print styles */
@media print {
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .no-print {
    display: none !important;
  }
  
  .sticky {
    position: static !important;
  }
}