/* ============================================
   DAR JINANE — Luxury Booking Website Styles
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@600;700&display=swap');

/* CSS Custom Properties */
:root {
  --primary: #1a73a7;
  --primary-dark: #145d87;
  --primary-light: #e8f4fd;
  --secondary: #c4a35a;
  --cream: #f5f0e8;
  --dark: #2c3e50;
  --text: #333;
  --text-light: #666;
  --white: #fff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section Headings */
.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading h2 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.section-heading p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-heading .line {
  width: 60px;
  height: 3px;
  background: var(--secondary);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-white {
  background-color: var(--white);
}

.section-cream {
  background-color: var(--cream);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 0.75rem 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  transition: var(--transition);
}

.navbar.scrolled .logo {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  position: relative;
  transition: var(--transition);
}

.navbar.scrolled .nav-links a {
  color: var(--text);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links .book-btn {
  background: var(--secondary);
  color: var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
}

.nav-links .book-btn::after {
  display: none;
}

.nav-links .book-btn:hover {
  background: var(--primary);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.25rem;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  border-radius: 1px;
}

.navbar.scrolled .hamburger span {
  background: var(--dark);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #111;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: heroSlideshow 60s infinite;
  will-change: opacity, transform;
}

.hero-slide:nth-child(1)  { animation-delay: 0s; }
.hero-slide:nth-child(2)  { animation-delay: 6s; }
.hero-slide:nth-child(3)  { animation-delay: 12s; }
.hero-slide:nth-child(4)  { animation-delay: 18s; }
.hero-slide:nth-child(5)  { animation-delay: 24s; }
.hero-slide:nth-child(6)  { animation-delay: 30s; }
.hero-slide:nth-child(7)  { animation-delay: 36s; }
.hero-slide:nth-child(8)  { animation-delay: 42s; }
.hero-slide:nth-child(9)  { animation-delay: 48s; }
.hero-slide:nth-child(10) { animation-delay: 54s; }

@keyframes heroSlideshow {
  0%   { opacity: 0; transform: scale(1.05); }
  2%   { opacity: 1; }
  10%  { opacity: 1; transform: scale(1.00); }
  12%  { opacity: 0; }
  100% { opacity: 0; transform: scale(1.00); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; }
  .hero-slide:nth-child(1) { opacity: 1; }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  color: var(--white);
}

.hero-content h1 {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-content .hero-tagline {
  font-size: 1.75rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
  opacity: 1;
}

.cta-btn {
  display: inline-block;
  background: var(--secondary);
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(196, 163, 90, 0.4);
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(196, 163, 90, 0.5);
  background: #b08d3e;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-content > p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  line-height: 1.8;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.stat-item {
  text-align: center;
}

.stat-item .number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.stat-item .label {
  font-size: 0.9rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.host-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.host-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.host-info h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.host-info p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  font-style: italic;
}

.host-info .host-title {
  font-style: normal;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: block;
}

/* ============================================
   PROPERTIES SECTION
   ============================================ */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

.property-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.property-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-card:hover .property-image img {
  transform: scale(1.08);
}

.badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--secondary);
  color: var(--white);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
}

.property-info {
  padding: 1.5rem;
}

.property-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.property-header h3 {
  font-size: 1.25rem;
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.rating .star {
  color: var(--secondary);
}

.property-meta {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.property-desc {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.property-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tag {
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

.property-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
}

.airbnb-link {
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: underline;
  margin-left: auto;
}

.airbnb-link:hover {
  color: var(--primary);
}

/* ============================================
   PROPERTY MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--white);
  transform: rotate(90deg);
}

.modal-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.modal-body {
  padding: 2rem;
}

.modal-body h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.modal-body .rating {
  margin-bottom: 1rem;
}

.modal-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.modal-details h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.modal-details ul {
  list-style: disc;
  padding-left: 1.25rem;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.modal-actions .btn {
  flex: 1;
  min-width: 160px;
}

/* ============================================
   AMENITIES SECTION
   ============================================ */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.amenity-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.amenity-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-hover);
}

.amenity-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.amenity-item h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--dark);
}

.amenity-item p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ============================================
   REVIEWS SECTION
   ============================================ */
.reviews-header {
  text-align: center;
  margin-bottom: 3rem;
}

.overall-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  box-shadow: var(--shadow);
  margin-top: 1rem;
}

.overall-rating .big-rating {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.overall-rating .star {
  color: var(--secondary);
  font-size: 1.25rem;
}

.reviews-carousel {
  position: relative;
  overflow: hidden;
}

.reviews-track {
  display: flex;
  transition: transform 0.5s ease;
}

.review-card {
  min-width: 100%;
  padding: 0 1rem;
}

.review-inner {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.quote-icon {
  font-size: 3rem;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.review-text {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.review-author {
  font-weight: 600;
  color: var(--dark);
}

.review-location {
  font-size: 0.9rem;
  color: var(--text-light);
}

.carousel-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  background: var(--white);
  color: var(--primary);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.carousel-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 5px;
}

/* ============================================
   LOCATION SECTION
   ============================================ */
.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

.location-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.location-info p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.attractions-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.attraction-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--text);
}

.attraction-item span:first-child {
  font-size: 1.25rem;
}

/* ============================================
   BOOKING SECTION
   ============================================ */
.booking-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  position: relative;
}

.booking-form-wrapper::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid var(--secondary);
  border-radius: calc(var(--radius) + 4px);
  z-index: -1;
  opacity: 0.4;
}

.booking-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 115, 167, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.booking-form .btn-primary {
  grid-column: 1 / -1;
  padding: 1rem;
  font-size: 1rem;
}

.booking-note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.booking-note a {
  color: var(--primary);
  text-decoration: underline;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 4rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-col p,
.footer-col a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.footer-col a:hover {
  color: var(--secondary);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom .heart {
  color: #e74c3c;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (min-width: 768px) {
  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .amenities-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .location-grid {
    grid-template-columns: 1.2fr 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .review-card {
    min-width: 50%;
  }
}

@media (min-width: 1024px) {
  .properties-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .amenities-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .hero-content h1 {
    font-size: 4rem;
  }

  .section-heading h2 {
    font-size: 3rem;
  }

  .review-card {
    min-width: 100%;
  }
}

@media (max-width: 767px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    color: var(--text);
    font-size: 1.1rem;
  }

  .hamburger {
    display: flex;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .hero-content p {
    font-size: 1.15rem;
  }

  .hero-content .hero-tagline {
    font-size: 1.3rem;
  }

  .stats-row {
    gap: 1.5rem;
  }

  .host-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .booking-form {
    grid-template-columns: 1fr;
  }

  .modal-details {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .property-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .property-actions .airbnb-link {
    margin-left: 0;
    text-align: center;
  }

  .modal-actions .btn {
    flex: none;
    width: 100%;
  }

  section {
    padding: 3rem 0;
  }
}

/* ============================================
   PROPERTY CARD IMAGE SLIDER
   ============================================ */
.card-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.card-slides {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.card-slide {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.property-card:hover .card-slide {
  transform: none;
}

.card-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  color: var(--dark);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.property-image:hover .card-slider-btn {
  opacity: 1;
}

.card-slider-btn:hover {
  background: var(--white);
}

.card-slider-btn.prev {
  left: 0.5rem;
}

.card-slider-btn.next {
  right: 0.5rem;
}

.card-slider-counter {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  z-index: 3;
}

/* ============================================
   MODAL GALLERY
   ============================================ */
.modal-gallery {
  position: relative;
}

.modal-main-image {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: opacity 0.3s ease;
}

.modal-gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: var(--dark);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background 0.3s ease;
}

.modal-gallery-btn:hover {
  background: var(--white);
}

.modal-gallery-btn.prev {
  left: 1rem;
}

.modal-gallery-btn.next {
  right: 1rem;
}

.modal-image-counter {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 3;
}

.modal-thumbnails {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  background: var(--white);
  border-bottom: 1px solid #eee;
  scrollbar-width: thin;
}

.modal-thumbnails::-webkit-scrollbar {
  height: 6px;
}

.modal-thumbnails::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.modal-thumbnail {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s ease, opacity 0.3s ease;
  flex-shrink: 0;
}

.modal-thumbnail:hover {
  opacity: 0.8;
}

.modal-thumbnail.active {
  border-color: var(--primary);
}

@media (max-width: 767px) {
  .modal-main-image {
    height: 240px;
  }

  .modal-gallery-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .modal-thumbnail {
    width: 60px;
    height: 45px;
  }

  .card-slider-btn {
    opacity: 1;
    width: 32px;
    height: 32px;
  }
}

/* ============================================
   WHATSAPP QUICK INQUIRY WIDGET
   ============================================ */
.wa-widget {
  position: fixed;
  right: 2rem;
  bottom: 5.5rem;
  z-index: 3500;
  font-family: inherit;
}

.wa-launcher {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  position: relative;
}

.wa-launcher::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.45);
  z-index: -1;
  animation: waPulse 2.2s infinite ease-out;
}

.wa-launcher:hover {
  transform: scale(1.08);
  background: #1ebe5d;
}

@keyframes waPulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  70%  { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

.wa-popup {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: 320px;
  max-width: calc(100vw - 2rem);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform: translateY(10px) scale(0.96);
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.wa-widget.open .wa-popup {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.wa-widget.open .wa-launcher::before {
  animation: none;
  opacity: 0;
}

.wa-popup-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #075e54;
  color: #fff;
}

.wa-popup-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-popup-heading {
  flex: 1;
  min-width: 0;
}

.wa-popup-heading h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.wa-popup-status {
  font-size: 0.78rem;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 2px;
}

.wa-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.35);
}

.wa-popup-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.wa-popup-close:hover { opacity: 1; }

.wa-popup-body {
  padding: 1rem;
  background:
    #ece5dd
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><circle cx='20' cy='20' r='1' fill='%23d4ccbf' opacity='0.4'/></svg>");
}

.wa-bubble {
  background: #fff;
  padding: 0.75rem 0.9rem;
  border-radius: 10px 10px 10px 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  font-size: 0.92rem;
  color: #333;
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.wa-bubble p {
  margin: 0 0 0.4rem;
}

.wa-bubble p:last-child { margin-bottom: 0; }

.wa-field {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 0.35rem;
}

.wa-input {
  width: 100%;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
  min-height: 70px;
  background: #fff;
  color: #222;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.wa-input:focus {
  border-color: #25d366;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
}

.wa-start-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  width: 100%;
  background: #25d366;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.35);
  transition: background 0.15s ease, transform 0.15s ease;
}

.wa-start-btn:hover {
  background: #1ebe5d;
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .wa-widget { right: 1rem; bottom: 4.5rem; }
  .wa-launcher { width: 54px; height: 54px; }
  .wa-popup { width: calc(100vw - 2rem); bottom: 70px; }
}

/* Auto-fill highlight for the Property select in the booking form */
.property-prefilled {
  animation: propertyPrefilled 1.6s ease;
  border-color: #25d366 !important;
}

@keyframes propertyPrefilled {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); background-color: #e8fff0; }
  60%  { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0);    background-color: #e8fff0; }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);      background-color: inherit; }
}
