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

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body, h1, h2, h3, h4, h5, h6, p, span, div, button, input, textarea, label, a:not([class*="fa"]) {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}
body {
  @font-face {
    font-family: "SF Pro";
    src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sfprodisplayregular.woff");
  }
  line-height: 1.6;
  padding-top: calc(1rem + 1.8cm);
  background-color: white;
}

@keyframes loaderFade {
    0%, 100% { opacity: 0.2; height: 20px; top: 15px; }
    50% { opacity: 1; height: 40px; top: 5px; }
}

/* Override position on larger screens */
@media (min-width: 768px) {
  .back-btn {
    left: 5.5cm !important;
  }
}

.top-categories-section {
  padding-left: 6cm !important;
  padding-right: 6cm !important;
  margin-top: 3rem;
  font-family: "SF Pro", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Heading */
.top-heading {
  font-size: 1.75rem;
  font-weight: 600;
  color: #1f2937;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

/* Layout */
.category-container {
  display: flex;
  gap: 1.25cm;
  flex-direction: row-reverse;
  align-items: flex-start;
}



/* Cards Wrapper */
.cards-wrapper {
  display: flex;
  flex-direction: column;
}

/* Cards Grid */
.cards-container {
  display: grid;
  grid-template-columns: repeat(4, 4cm);
  grid-template-rows: repeat(2, 3cm);
  column-gap: 0.25cm;
  row-gap: 0.50cm; /* ✅ No vertical gap between rows */
}

/* Individual Card */
.category-card {
  width: 4cm;
  height: 3.3cm;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border-radius: 0.375rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: white;
  padding-bottom: 0.3rem;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 2px #ccc;
  border: 1px solid #ccc;
}

.category-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.375rem 0.375rem 0 0;
}

/* Label */
.category-label {
  margin-top: 0.0rem;
  font-weight: 700;
  color: #333;
  font-size: 0.8rem;
  line-height: 1.2rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1400px) {
  .top-categories-section {
    padding-left: 3cm !important;
    padding-right: 3cm !important;
  }
}

@media (max-width: 1200px) {
  .top-categories-section {
    padding-left: 1cm !important;
    padding-right: 1cm !important;
  }

  
  .category-container {
    flex-direction: column;
    gap: 1rem;
  }
/* Image Block */
.main-image {
  width: calc(100% - 16.85cm);
  height: 8.50cm;
  overflow: hidden;
  border-radius: 0.375rem;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.375rem;
}
  .main-image {
    width: 100%;
    height: 10cm;
    margin-bottom: 0.5rem;
  }

  .cards-container {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-template-rows: auto;
    row-gap: 1.5rem;
  }

  .category-card {
    width: 100% !important;
    height: auto !important;
  }

  .category-card img {
    height: 160px;
  }
}


/* Make the account container fixed and full-screen */
#account-container {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Make the page content fill the container */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Make the px-4 mb-8 container take full height */
main > div.px-4.mb-8 {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Keep header fixed */
header {
    flex-shrink: 0;
}

/* Make only the bookings view scrollable but hide scrollbar */
#bookingsView {
    flex: 1;
    overflow-y: scroll;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
#bookingsView::-webkit-scrollbar {
    display: none;
}
/* ADD spinner animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Button states */
#loginBtn:not(:disabled) {
  background: #000 !important;
  color: white !important;
  cursor: pointer !important;
}

#loginBtn.loading {
  pointer-events: none !important;
}
#loginContainer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000; /* Higher than the navbar */
}

.no-scroll {
  overflow: hidden;
  height: 100vh;
}

/* Prevent number input from expanding */
input[type="number"] {
  appearance: textfield; /* Removes default number input styles */
  -moz-appearance: textfield;
  -webkit-appearance: none;
  width: 100%; /* Ensures it doesn't shrink or grow */
  max-width: 100%; /* Prevents expansion */
  overflow: hidden; /* Hides any unexpected changes */
}
/* On desktop, shift back button to 5.5cm from left */
@media (min-width: 768px) {
  .bookings-back-btn {
    left: 5.5cm !important;
  }
}

/* Remove increment/decrement arrows in number inputs */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Adjust the overall font size */
body {
  font-size: 14px; /* Reduced font size */
}

/* Positioning the User Icon */
.user-icon {
  position: absolute;
  right: 6.5cm; /* 1cm from the right */
}

.user-icon a {
  font-size: 22px;
  color: black;
  text-decoration: none;
  transition: color 0.3s ease;
}

.user-icon a:hover {
  color: gray;
}

/* contact us */

.highlight {
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 12px;
  bottom: 5px;
  left: 0;
  background: linear-gradient(90deg, rgba(219, 39, 119, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
  z-index: -1;
  transform-origin: 100% 50%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.highlight:hover::after {
  transform: scaleX(1.1) scaleY(1.2);
}

.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: -100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn:hover::after {
  left: 100%;
}

#toast {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

#toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Location Modal Styles */
#location-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
  overflow: auto;
}

/* Location Modal Container */
.location-modal-container {
  background-color: white;
  border-radius: 16px;
  padding: 16px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

/* Desktop view specific styles */
@media (min-width: 640px) {
  .location-modal-container {
    height: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
  }

  .location-modal-container.with-suggestions {
    height: auto;
    max-height: 80vh;
  }

  #location-suggestions {
    max-height: 350px;
    overflow-y: auto;
    background: white;
    margin-top: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  #location-suggestions::-webkit-scrollbar {
    width: 4px;
  }

  #location-suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
  }

  #location-suggestions::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
  }
}

/* Location Suggestions Container */
#location-suggestions {
  max-height: calc(70vh - 180px);
  overflow-y: auto;
  width: 100%;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-top: 8px;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  overscroll-behavior: contain; /* Prevent scroll chaining */
}

/* Location Suggestion Item */
.location-suggestion-item {
  display: flex;
  align-items: flex-start;
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: background-color 0.15s ease;
  -webkit-tap-highlight-color: transparent; /* Remove default mobile tap highlight */
}

.location-suggestion-item:last-child {
  border-bottom: none;
}

.location-suggestion-item:hover,
.location-suggestion-item.active {
  background-color: #f9fafb;
}

/* Active touch state for mobile */
.location-suggestion-item.active-touch {
  background-color: #f3f4f6;
}

.location-suggestion-item i {
  margin-right: 12px;
  color: #8b5cf6 !important;
  font-size: 16px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.location-suggestion-content {
  flex: 1;
  min-width: 0; /* Ensures text truncation works */
}

.location-suggestion-title {
  font-weight: 500;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.location-suggestion-address {
  font-size: 13px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Loading Spinner */
#location-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Keyboard Navigation */
.location-suggestion-item.active {
  background-color: #f3f4f6;
  border-left: 3px solid #8b5cf6;
  padding-left: 13px; /* Compensate for the border */
}

/* Location Input Focus */
#location-input:focus {
  outline: none;
}

/* Current Location Button */
.current-location a {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.current-location a:hover {
  background-color: #f9fafb;
}

.current-location a:active {
  background-color: #f3f4f6;
  transform: translateY(1px);
}

.current-location i {
  color: #8b5cf6;
  margin-right: 8px;
}

/* Location Search Input */
.location-search-wrapper {
  position: relative;
  margin-top: 16px;
}

.location-search-wrapper .flex {
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  transition: border-color 0.2s ease;
}

.location-search-wrapper .flex:focus-within {
  border-color: #8b5cf6;
}

#location-input {
  flex: 1;
  padding: 0px;
  border: none;
  background: transparent;
  font-size: 14px;
}

#location-input:focus {
  outline: none;
}

/* Ripple Effect */
@keyframes ripple {
  to {
    transform: translate(-50%, -50%) scale(40);
    opacity: 0;
  }
}

/* Toast Notification */
#toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #333;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

#toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Prevent body scrolling when modal is open */
body.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

@font-face {
  font-family: "SF Pro";
  src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sfprodisplayregular.woff");
}

body {
  font-family: "SF Pro", -apple-system, BlinkMacSystemFont, sans-serif;
}

.card-hover-animation {
  transition: transform 0.3s ease, box-shadow 0.2s ease;
  position: relative;
  border: 1px solid #ccc; /* gray-200 */
}

.card-hover-animation:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 2px #ccc;
}

.card-image-container {
  position: relative;
  height: 100%;
  width: 100%;
}

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


.chevron-left, .chevron-right {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
}

.product-container {
  display: flex;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.product-card {
  /* Adjusted to ensure equal width with proper spacing */
  flex: 0 0 calc((100% - (5 * 0.4cm)) / 6); /* 6 cards with 5 gaps of 0.4cm */
  margin-right: 0.4cm; /* Increased gap for better spacing */
  /* Removed transition property */
}

.product-card:last-child {
  margin-right: 0;
}

/* Container with exact 6cm padding */
.content-container {
  padding-left: 6cm;
  padding-right: 6cm;
  box-sizing: border-box;
  width: 100%;
}

/* new contianer */
      
body {
  font-family: 'Montserrat', sans-serif;
}

h1, h2, h3, h4, h5 {
font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.slide-container {
position: relative;
width: 100%;
height: 100vh; /* or your desired height */
overflow: hidden;
}

.slide {
position: absolute;
width: 100%;
height: 100%;
opacity: 0;
object-fit: cover;
transition: opacity 2s ease-in-out;
}

.slide:nth-child(1) {
animation: smoothSlideshow 15s infinite;
}

.slide:nth-child(2) {
animation: smoothSlideshow 15s infinite 5s;
}

.slide:nth-child(3) {
animation: smoothSlideshow 15s infinite 10s;
}

@keyframes smoothSlideshow {
0% { opacity: 0; }
10% { opacity: 1; }
30% { opacity: 1; }
40% { opacity: 0; }
100% { opacity: 0; }
}

/* Line navigator styling */
.line-indicator {
  height: 2.5px; /* Slightly thicker lines (0.01cm more) */
  transition: all 0.3s ease;
}

.line-indicator.active {
  background-color: #0f172a;
}

.line-indicator.inactive {
  background-color: #e5e7eb;
}

/* Make the product container scrollable */
.product-container {
  display: flex;
  overflow-x: auto;
  position: relative;
  width: 100%;
  scroll-behavior: smooth; /* For smooth scrolling */
  -webkit-overflow-scrolling: touch; /* For smooth scrolling on iOS */
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  -ms-overflow-style: none; /* Hide scrollbar for IE and Edge */
}

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

/* Keep the product card styling the same */
.product-card {
  flex: 0 0 calc((100% - (5 * 0.4cm)) / 6); /* 6 cards with 5 gaps of 0.4cm */
  margin-right: 0.4cm; /* Increased gap for better spacing */
  scroll-snap-align: start; /* Optional: for better scroll positioning */
}

.product-card:last-child {
  margin-right: 0;
}

@media (min-width: 769px) {
  .mobile-footer {
      display: none !important;
  }
  
  .desktop-footer {
      display: block !important;
  }
}



/* Hide the slideshow section */
#slideshow-wrapper,
#slideshow-wrapper .slide {
  display: none !important;
}

/* Hide specific marketing banner */
#homepage-banner {
  display: none !important;
}