/* ------------------------------------------------------------
    AQUASPA STYLES - Minimal CSS (Tailwind handles most styling)

    This file contains only:
    1. Essential global resets
    2. Utility classes used in templates
    3. Third-party component overrides
------------------------------------------------------------ */

/* Global Resets */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Utility Classes */
.no-scroll {
  overflow: hidden;
}

.no-select {
  user-select: none;
  -webkit-user-select: none;
}

.truncate-css {
  display: -webkit-box;
  line-clamp: 1;
  box-orient: vertical;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.truncate-css-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.text-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.text-shadow {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* Overlay gradient for images */
.overlay-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 40%);
  z-index: 1;
}

@media (min-width: 768px) {
  .overlay-bg {
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 60%);
  }
}

/* Snackbar component (product details modal) */
.snackbar-bg {
  background-color: rgba(1, 22, 60, 0.6);
  position: fixed;
  top: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999999;
  display: none;
}

.snackbar-bg .snackbar {
  box-sizing: border-box;
  background-color: #ffffff;
  position: fixed;
  bottom: -100%;
  left: 8px;
  right: 8px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  z-index: 99999;
  transition: all 0.5s ease;
  padding-top: 68px !important;
  height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: end;
}

.snackbar-bg .snackbar.large {
  height: 80vh;
}

.snackbar-bg .snackbar .message {
  width: 100%;
}

.snackbar-bg .snackbar .heading {
  background-color: #f9f9f9;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 48px;
  box-sizing: border-box;
  padding: 16px 32px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.snackbar-bg .snackbar .heading h4 {
  font-size: 18px;
  line-height: 24px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
}

.snackbar-bg .snackbar .heading .close-snackbar {
  background-color: transparent;
  border: none;
  font-size: 22px;
  color: #01163C;
  cursor: pointer;
}

.snackbar-bg .snackbar.show {
  bottom: 0;
}

/* Gallery view in snackbar */
.snackbar-bg .snackbar.show.gallery-view {
  justify-content: center !important;
  align-items: center !important;
  flex-direction: column !important;
  width: 100%;
  right: 0;
  left: unset;
}

.snackbar-bg .snackbar.show.gallery-view .message {
  height: 100%;
}

.snackbar-bg .snackbar.show.gallery-view .swiper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 0 !important;
}

.snackbar-bg .snackbar.show.gallery-view .swiper-wrapper {
  width: 100%;
}

.snackbar-bg .snackbar.show.gallery-view .swiper-slide {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.snackbar-bg .snackbar.show.gallery-view .swiper-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Map page styles */
.map {
  width: 100%;
  position: absolute;
  top: 84px;
  bottom: 0;
}

.map-search {
  position: relative;
  z-index: 9;
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}

.wrap-card-list {
  position: absolute;
  bottom: 48px;
  z-index: 9;
  width: 100%;
  display: none;
}

.wrap-card-list .close-cardstock {
  background-color: transparent;
  border: none;
  font-size: 22px;
  color: #01163C;
  position: absolute;
  right: 8px;
  top: -8px;
  cursor: pointer;
}

.wrap-card-list .wrap-scroll-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  overflow: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding: 16px;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.wrap-card-list .wrap-scroll-list::-webkit-scrollbar {
  display: none;
}

.dis-swtich-btn {
  position: fixed;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
}

/* Spinner (replaces Bootstrap spinner-border) */
.loader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(104, 134, 169, 0.2);
  border-top-color: #6886A9;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 16px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Alert warning (replaces Bootstrap alert) */
.alert-warning {
  position: relative;
  padding: 12px 40px 12px 16px;
  background-color: #fff3cd;
  border: 1px solid #ffc107;
  color: #664d03;
  font-size: 14px;
  border-radius: 4px;
}

.alert-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: #664d03;
  cursor: pointer;
  padding: 0;
}

/* Loader */
#loader-wait {
  background-color: rgba(57, 115, 174, 0.4);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
}

#loader-wait .spinner-border {
  width: 48px;
  height: 48px;
}

/* Contact form */
#aquaspaform input,
#aquaspaform textarea {
  width: 100%;
  padding: 12px 24px;
  border: 1px solid #94a3b8;
  background-color: transparent;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: #01163C;
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.3s;
}

#aquaspaform input:focus,
#aquaspaform textarea:focus {
  border-color: #01163C;
}

#aquaspaform input::placeholder,
#aquaspaform textarea::placeholder {
  color: #94a3b8;
}

/* Hide empty arrows container */
#arrows:empty {
  display: none;
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
  .w-mobile-100 {
    width: 100% !important;
  }
}

@media (max-width: 575px) {
  .snackbar-bg .snackbar.show.gallery-view .swiper-gal .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
  }
}
