/* ===== Base Resets ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  padding-top: env(safe-area-inset-top);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
}

#root {
  min-height: 100vh;
  min-height: 100dvh;
  isolation: isolate;
}

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

button,
input,
select,
textarea {
  font: inherit;
  touch-action: manipulation;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Utility Classes ===== */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.daytona-exterior2-bg {
  background-image: url("../images/exploria-daytona/exterior2.webp?v=2");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.min-h-screen-safe {
  min-height: 100vh;
  min-height: 100dvh;
}

/* ===== Scroll Animations ===== */
.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Custom Keyframe Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ===== Gallery Track ===== */
.gallery-track {
  will-change: transform;
}

/* ===== Glass Panel ===== */
.glass-panel {
  background: rgba(255, 255, 255, 0.89);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ===== Modal Backdrop ===== */
.modal-backdrop {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ===== Modal Content Card (Terms/Privacy) ===== */
.modal-content-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  width: min(48rem, calc(100vw - 2rem));
  max-width: 100%;
}

.modal-inner-close {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px;
  border-radius: 10px;
  line-height: 0;
  color: #111827;
  z-index: 2;
  flex-shrink: 0;
}

.modal-inner-close:hover {
  background: rgba(0, 0, 0, 0.05);
}

.modal-inner-close svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: currentColor;
}

.modal-inner-close svg * {
  fill: #111827 !important;
  stroke: #111827 !important;
}

.terms-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.terms-modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.terms-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}

.terms-body p {
  margin: 0 0 1rem 0;
}

.terms-body h3 {
  margin: 1.5rem 0 0.75rem 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
}

.terms-body ul {
  margin: 0 0 1rem 0;
  padding-left: 1.25rem;
}

.terms-body li {
  margin-bottom: 0.5rem;
}

/* ===== Sticky CTA Bottom Bar ===== */
.sticky-cta-bar {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ===== Lightbox nav buttons ===== */
.lightbox-nav {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ===== HLS Video ===== */
.hls-video {
  object-fit: cover;
}

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

/* ===== Text balance ===== */
.text-balance {
  text-wrap: balance;
}

/* ===== Prose-like styling for modal content ===== */
.prose-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.prose-content p {
  color: #374151;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.prose-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.prose-content li {
  color: #374151;
  margin-bottom: 0.5rem;
}

/* ===== Carousel dot active state ===== */
.carousel-dot-active {
  width: 1.5rem;
  background: white;
}
.carousel-dot {
  width: 0.5rem;
  background: rgba(255, 255, 255, 0.5);
}

/* ===== Scroll To Top Button ===== */
.scroll-top-btn {
  position: fixed;
  z-index: 46;
  bottom: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.3s;
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
}
@media (max-width: 1119px) {
  .scroll-top-btn { bottom: 5.5rem; }
}
@media (min-width: 1120px) {
  .scroll-top-btn { bottom: 1.5rem; right: 1.5rem; width: 3rem; height: 3rem; }
}
.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.scroll-top-progress {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.scroll-top-btn .scroll-top-arrow {
  width: 1rem;
  height: 1rem;
  color: #1A6489;
  position: relative;
  z-index: 1;
}
@media (min-width: 1120px) {
  .scroll-top-btn .scroll-top-arrow { width: 1.25rem; height: 1.25rem; }
}
