/* ==========================================================================
   LILY PAD VACATION RENTALS — DESIGN SYSTEM
   Google Stitch Modern Organic Hospitality Design Architecture
   ========================================================================== */

:root {
  /* Brand Palettes */
  --color-canvas: #FAFAF7;
  --color-surface-card: #FFFFFF;
  --color-surface-container: #EEEEEB;
  --color-surface-container-low: #F4F4F1;
  --color-surface-container-high: #E8E8E5;
  
  --color-primary: #36631B;
  --color-primary-container: #4E7C32;
  --color-olive-deep: #2E4F1B;
  --color-on-primary: #FFFFFF;
  --color-primary-fixed: #BCF299;
  --color-on-primary-fixed: #092100;
  
  --color-secondary: #754C9A;
  --color-plum-accent: #69328E;
  --color-plum-deep: #481E66;
  --color-plum-soft: #F6EFFB;
  --color-plum-muted: #8E65A8;
  --color-plum-border: rgba(105, 50, 142, 0.22);
  --color-plum-glow: rgba(105, 50, 142, 0.15);
  --color-plum-gradient: linear-gradient(135deg, #69328E 0%, #481E66 100%);
  
  --color-palm-vibrant: #7CB342;
  --color-palm-soft: #E8F5E9;
  
  --color-text-primary: #242B20;
  --color-text-muted: #687363;
  --color-border-subtle: #E7E8E0;
  --color-border-hover: #C5CAB9;
  
  /* Shadows */
  --shadow-subtle: 0 4px 20px -2px rgba(46, 79, 27, 0.05);
  --shadow-card: 0 10px 30px -4px rgba(46, 79, 27, 0.08);
  --shadow-hover: 0 20px 40px -8px rgba(36, 43, 32, 0.14);
  --shadow-floating: 0 24px 60px -12px rgba(36, 43, 32, 0.2);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Typography */
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Global Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-canvas);
  color: var(--color-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Material Symbols Icon Alignment */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  line-height: 1;
  display: inline-block;
  user-select: none;
}

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

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.975rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(54, 99, 27, 0.2);
}

.btn-primary:hover {
  background-color: var(--color-olive-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(46, 79, 27, 0.28);
  color: #ffffff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #ffffff;
  color: var(--color-text-primary);
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.975rem;
  border: 1px solid var(--color-border-subtle);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background-color: var(--color-surface-container-low);
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-subtle);
}

.btn-plum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-plum-gradient);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.975rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(105, 50, 142, 0.25);
}
.btn-plum:hover {
  background: linear-gradient(135deg, #572977 0%, #3a1653 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(105, 50, 142, 0.35);
  color: #ffffff;
}

.btn-outline-plum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: var(--color-plum-accent);
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid var(--color-plum-accent);
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-outline-plum:hover {
  background: var(--color-plum-soft);
  color: var(--color-plum-deep);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--color-plum-glow);
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-subtle);
  background: #ffffff;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-copy:hover {
  background: var(--color-plum-soft);
  color: var(--color-plum-accent);
  border-color: var(--color-plum-accent);
}

/* Badges & Pills */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pill-green {
  background: rgba(124, 179, 66, 0.14);
  color: var(--color-primary);
  border: 1px solid rgba(124, 179, 66, 0.3);
}

.pill-plum {
  background: var(--color-plum-soft);
  color: var(--color-plum-accent);
  border: 1px solid var(--color-plum-border);
}

.pill-plum-solid {
  background: var(--color-plum-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 8px rgba(105, 50, 142, 0.2);
}

.pill-star {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-subtle);
}

/* Plum Card & Border Utilities */
.card-plum-tint {
  background: linear-gradient(145deg, #FAF6FC 0%, #FFFFFF 100%);
  border: 1px solid var(--color-plum-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px -2px rgba(105, 50, 142, 0.06);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-plum-tint:hover {
  border-color: rgba(105, 50, 142, 0.35);
  box-shadow: 0 10px 30px -4px rgba(105, 50, 142, 0.12);
  transform: translateY(-3px);
}

.plum-border-l {
  border-left: 4px solid var(--color-plum-accent);
}

.plum-glow {
  box-shadow: 0 0 20px rgba(105, 50, 142, 0.15);
}

/* Brand Logo Styles */
.brand-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease, filter 0.25s ease;
}
.brand-logo-img:hover {
  transform: scale(1.04);
}
.brand-logo-footer {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.brand-logo-footer:hover {
  transform: scale(1.03);
}

/* Cards & Elevated Containers */
.card-elevation {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-elevation:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
}

/* Gallery & Media Styles */
.image-zoom-container {
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-lg);
}

.image-zoom-container img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-zoom-container:hover img {
  transform: scale(1.05);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(18, 22, 16, 0.94);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-header {
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-body {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-img-wrapper {
  max-width: 90vw;
  max-height: 75vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img-wrapper img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  margin-top: 14px;
  color: #ffffff;
  font-size: 1rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 18px;
  border-radius: 20px;
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}
.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}
.lightbox-btn.prev { left: 24px; }
.lightbox-btn.next { right: 24px; }

.lightbox-thumbnails {
  padding: 16px 24px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.5);
}

.lightbox-thumb {
  width: 68px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  opacity: 0.5;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.lightbox-thumb.active {
  opacity: 1;
  border-color: var(--color-palm-vibrant);
  transform: scale(1.05);
}
.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Toast Notification for Copy Link */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: #242B20;
  color: #ffffff;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-floating);
  font-weight: 500;
  font-size: 0.95rem;
  border-left: 4px solid var(--color-palm-vibrant);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-canvas);
}
::-webkit-scrollbar-thumb {
  background: #C5CAB9;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Responsive Helper Adjustments */
@media (max-width: 768px) {
  .lightbox-btn {
    width: 40px;
    height: 40px;
  }
  .lightbox-btn.prev { left: 8px; }
  .lightbox-btn.next { right: 8px; }
  .toast-container {
    bottom: 20px;
    right: 20px;
    left: 20px;
  }
}
