@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
  background: #f8fafc;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

::selection {
  background: rgba(16, 185, 129, 0.25);
}

.toast-enter {
  opacity: 0;
  transform: translateY(-8px);
}

.toast-show {
  animation: slideIn 0.2s ease-out forwards;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

input::placeholder,
textarea::placeholder {
  color: #a1a1aa;
}

img.cover {
  object-fit: cover;
}

/* Optimized image styles for square (1:1) aspect ratio */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Ensure object-cover works well with square containers */
.aspect-square img {
  object-fit: cover;
  object-position: center;
}

#bookingCalendar {
  max-width: 100%;
}

.calendar-day {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
}

.calendar-day:hover {
  background-color: #f8fafc;
}

.calendar-day.disabled {
  background-color: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
}

.calendar-day.selected {
  background-color: #0f172a;
  color: #fff;
}

.calendar-day.in-range {
  background-color: #e2e8f0;
  color: #0f172a;
}

/* Modal styles */
.modal-overlay {
  display: none;
}

.modal-overlay.active {
  display: flex;
}

/* Mobile optimizations */
@media (max-width: 640px) {
  h1 {
    font-size: 2rem !important;
  }

  h2 {
    font-size: 1.25rem !important;
  }

  /* Modal for mobile: full-screen with smaller radius */
  .modal-content-mobile {
    border-radius: 1rem !important;
    max-height: 95vh !important;
  }

  /* Adjust padding for modals on mobile */
  .modal-padding-mobile {
    padding: 1rem !important;
  }

  /* Stack login/register on mobile */
  .auth-grid-mobile {
    grid-template-columns: 1fr !important;
  }

  .auth-border-mobile {
    border-right: none !important;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    padding-right: 0 !important;
  }

  /* Smaller padding for form elements on mobile */
  input, button, select, textarea {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }

  /* Reduce gap in hero card on mobile */
  #heroCard {
    padding: 1rem !important;
  }
}
