/* Serenity Escape - Modern Wellness Design */

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

:root {
  /* Warm Natural Palette */
  --forest: #2a4a3f;
  --sage: #7a9b88;
  --sage-muted: #b5c9be;

  --terracotta: #cb8b6e;
  --terracotta-dark: #b5745a;

  --sand: #f4ede4;
  --sand-light: #faf7f3;
  --cream: #e8dfd5;

  --charcoal: #2e2e2e;
  --warm-gray: #5a5a5a;

  --gold: #d4a574;

  /* Semantic */
  --text-primary: var(--charcoal);
  --text-secondary: var(--warm-gray);
  --bg-base: var(--sand-light);
}

/* Sticky Top Bar */
.sticky-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--cream);
  z-index: 1000;
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  opacity: 0;
  pointer-events: none;
}

.sticky-top-bar.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-top-content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1rem 2.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sticky-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--forest);
  margin: 0;
  letter-spacing: -0.02em;
}

.sticky-actions {
  display: flex;
  gap: 0.75rem;
}

.sticky-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.sticky-call-btn {
  background: var(--terracotta);
  color: white;
}

.sticky-call-btn:hover {
  background: var(--terracotta-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(203, 139, 110, 0.3);
}

.sticky-msg-btn {
  background: var(--forest);
  color: white;
}

.sticky-msg-btn:hover {
  background: var(--sage);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(42, 74, 63, 0.3);
}

.sticky-email-btn {
  background: #5d7a8c;
  color: white;
}

.sticky-email-btn:hover {
  background: #4a6573;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(93, 122, 140, 0.3);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Work Sans', -apple-system, sans-serif;
  color: var(--text-primary);
  line-height: 1.65;
  background: var(--bg-base);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  line-height: 1.2;
}

/* Decorative Elements */
.section-accent {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
  margin: 0 auto 2rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hero Section - Compact Banner */
.hero {
  position: relative;
  padding: 2.5rem 2.5% 2rem;
  background: var(--sand-light);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
  font-weight: 400;
}

/* Contact CTA - Call & Message Buttons */
.contact-cta {
  text-align: center;
  padding: 2.5rem 0 0;
}

.contact-cta-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--forest);
  margin: 0 0 1.5rem;
}

.contact-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-btn {
  font-family: 'Work Sans', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 2px solid transparent;
}

.cta-call-btn {
  background: var(--terracotta);
  color: white;
  box-shadow: 0 4px 12px rgba(203, 139, 110, 0.3);
}

.cta-call-btn:hover {
  background: var(--terracotta-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(203, 139, 110, 0.4);
}

.cta-msg-btn {
  background: var(--forest);
  color: white;
  box-shadow: 0 4px 12px rgba(42, 74, 63, 0.25);
}

.cta-msg-btn:hover {
  background: var(--sage);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 74, 63, 0.35);
}

.cta-email-btn {
  background: #5d7a8c;
  color: white;
  box-shadow: 0 4px 12px rgba(93, 122, 140, 0.25);
}

.cta-email-btn:hover {
  background: #4a6573;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(93, 122, 140, 0.35);
}

.cta-btn svg {
  flex-shrink: 0;
}

/* Buttons - Clean & Elegant */
.btn-primary {
  font-family: 'Work Sans', sans-serif;
  background: var(--terracotta);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(203, 139, 110, 0.3);
}

.btn-primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(203, 139, 110, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Links */
a {
  color: var(--forest);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--terracotta);
}

/* Photo Grid - Airbnb Style */
.photo-grid-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2.5%;
}

.photo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  height: 500px;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.photo-grid-item {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
}

.photo-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.photo-grid-item:hover img {
  opacity: 0.85;
}

.photo-grid-item:first-child {
  grid-row: 1 / 3;
}

/* Show All Photos Button */
.show-all-photos {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: white;
  border: 1px solid var(--charcoal);
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
}

.show-all-photos:hover {
  background: var(--charcoal);
  color: white;
  transform: scale(1.05);
}

/* Photo Modal - Full Gallery View */
.photo-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  overflow-y: auto;
}

.photo-modal.active {
  display: block;
}

.photo-modal-content {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
  position: relative;
}

.photo-modal-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 2001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.photo-modal-close:hover {
  background: var(--cream);
}

.photo-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.photo-modal-grid img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Mobile Bottom Sheet Modal */
.mobile-photo-sheet {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.mobile-photo-sheet.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

.mobile-sheet-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 80vh;
  background: white;
  border-radius: 20px 20px 0 0;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-photo-sheet.active .mobile-sheet-content {
  transform: translateY(0);
}

.mobile-sheet-handle {
  display: flex;
  justify-content: center;
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
  border-radius: 20px 20px 0 0;
}

.mobile-sheet-handle::before {
  content: '';
  width: 40px;
  height: 4px;
  background: var(--cream);
  border-radius: 2px;
}

.mobile-sheet-photos {
  padding: 1rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-sheet-photos img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Content Sections - Spacious & Clean */
.property-section {
  padding: 2rem 5% 2rem;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
}

.property-section:first-of-type {
  padding-top: 3rem;
  padding-bottom: 0.5rem;
}

.property-section h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  color: var(--forest);
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.property-section p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Amenities - Visual Grid with Icons */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3.5rem 0;
}

.amenity-card {
  background: white;
  border: 1px solid var(--cream);
  padding: 2.5rem 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.amenity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--terracotta);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

/* Hover effects only on devices with hover capability */
@media (hover: hover) {
  .amenity-card:hover::before {
    transform: scaleY(1);
  }

  .amenity-card:hover {
    transform: translateX(8px);
    box-shadow: -8px 8px 24px rgba(0, 0, 0, 0.08);
  }
}

.amenity-card h3 {
  font-size: 1.35rem;
  color: var(--forest);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.amenity-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: left;
}

/* Location Section - Map */
.location-section {
  padding: 0;
  max-width: none;
  background: var(--cream);
}

.location-content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 4rem 5% 2.5rem;
  text-align: center;
}

.location-content h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  color: var(--forest);
  margin-bottom: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.location-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.location-map {
  width: 100%;
  height: 450px;
  margin-top: 2rem;
}

/* Contact Section - Dark */
.contact-section {
  background: var(--forest);
  padding: 5rem 2rem;
  text-align: center;
}

.contact-section h2 {
  color: white;
  margin-bottom: 1rem;
}

.contact-section p {
  color: rgba(255, 255, 255, 0.85);
}

.contact-section .email-btn {
  display: inline-block;
  font-family: 'Work Sans', sans-serif;
  background: var(--terracotta) !important;
  color: white !important;
  border: 2px solid var(--terracotta);
  padding: 1rem 2.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none !important;
}

.contact-section .email-btn:hover {
  background: transparent !important;
  color: var(--terracotta) !important;
  border: 3px solid var(--terracotta);
  transform: translateY(-2px);
}

/* Mobile Photo Slideshow */
.mobile-slideshow {
  display: none;
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: var(--charcoal);
  border-radius: 4px;
  touch-action: pan-y pinch-zoom;
}

.mobile-slideshow-inner {
  display: flex;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.mobile-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mobile-photo-counter {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 500;
  z-index: 10;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 2rem 5% 1.5rem;
  }

  .hero h1 {
    margin-bottom: 0.6rem;
  }

  .hero-tagline {
    margin-bottom: 1.25rem;
  }

  .property-section {
    padding: 2rem 5%;
  }

  .property-section:first-of-type {
    padding-top: 2.5rem;
    padding-bottom: 0.5rem;
  }

  .amenities-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .amenity-card {
    padding: 2rem 1.5rem;
  }

  /* Hide desktop grid, show mobile slideshow */
  .photo-grid {
    display: none;
  }

  .mobile-slideshow {
    display: block;
  }

  /* Hide desktop modal on mobile */
  .photo-modal {
    display: none !important;
  }

  .location-content {
    padding: 4rem 5% 2rem;
  }

  .location-map {
    height: 350px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .amenities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
