/*
Theme Name: Adam's Apartment
Description: Simple landing page theme for a vacation rental in Agadir
Version: 1.0
*/

/* === RESET === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #ffffff;
  color: #2c2c2c;
  line-height: 1.6;
  padding-bottom: 120px;
}

a {
  text-decoration: none;
  color: inherit;
}

h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #2c2c2c;
}

/* === HERO === */
.hero {
  position: relative;
  height: 560px;
  background: url('assets/images/living-room.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  transition: background-image 0.5s ease;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 2rem;
}

.hero-content h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  color: #ef4444;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.hero-trust {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-check {
  color: #4ade80;
  font-weight: 700;
  margin-right: 4px;
}

.hero-trust-sep {
  margin: 0 14px;
  opacity: 0.6;
}

.hero-urgency {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.12);
  padding: 10px 14px;
  border-radius: 6px;
  display: inline-block;
  color: #facc15;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* === HERO GALLERY === */
.hero-gallery {
  position: absolute;
  bottom: 24px;
  left: 2rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-thumb {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s, transform 0.2s;
  opacity: 0.85;
}

.hero-thumb:hover {
  border-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.05);
  opacity: 1;
}

.hero-thumb.active {
  border-color: #ffffff;
  opacity: 1;
  box-shadow: 0 0 0 2px #ffffff, 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-gallery-more {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}

.hero-gallery-more:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* === PLATFORM BADGES — RIGHT SIDE === */
.hero-badges {
  position: absolute;
  right: 40px;
  bottom: 40px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-platform-badge {
  width: 200px;
  height: auto;
  padding: 12px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: default;
  opacity: 1;
}

/* === SECTIONS === */
.section {
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

/* === GOOGLE LOGO FIX === */
.google-logo {
  width: 24px;
  height: auto;
  display: inline-block;
  vertical-align: middle;
  max-width: 24px;
  flex-shrink: 0;
}

/* === REVIEW DROPDOWNS === */
.dropdown {
  margin-bottom: 12px;
}

.dropdown:last-child {
  margin-bottom: 0;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f5f5f4;
  padding: 12px 16px;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.dropdown-toggle:hover {
  background: #eeeeec;
}

.dropdown-toggle-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dropdown-toggle-left img {
  max-width: 24px;
}

.dropdown-toggle-title {
  font-weight: 500;
  font-size: 0.95rem;
  color: #2c2c2c;
}

.dropdown-toggle-rating {
  font-size: 0.9rem;
  color: #2c2c2c;
}

.dropdown-toggle-rating strong {
  font-size: 1rem;
}

.reviews-stars-inline {
  color: #f59e0b;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.dropdown-toggle-meta {
  font-size: 0.8rem;
  color: #6b7280;
}

.dropdown-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dropdown-dot-airbnb {
  background: #FF5A5F;
}

.dropdown-dot-booking {
  background: #003580;
}

.dropdown-arrow {
  font-size: 0.75rem;
  color: #9ca3af;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.dropdown-content {
  display: none;
}

.dropdown-content .review-card {
  margin-top: 10px;
}

.review-card {
  background: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.review-card .review-stars {
  color: #f59e0b;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.review-card .review-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #2c2c2c;
}

.review-card .review-text {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.6;
}

/* === FEATURES === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  background: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 6px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.feature-card .feature-icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.feature-card .feature-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.feature-card .feature-desc {
  font-size: 0.8rem;
  color: #6b7280;
}

/* === HOST + WHATSAPP FORM === */
.form-wrapper {
  max-width: 500px;
  margin: 20px auto 0;
}

.wa-form {
  display: flex;
  flex-direction: column;
}

.form-wrapper input,
.form-wrapper textarea {
  font-family: inherit;
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid #e7e5e4;
  border-radius: 6px;
  font-size: 14px;
  background: #ffffff;
  color: #2c2c2c;
  outline: none;
  transition: border-color 0.2s;
}

.form-wrapper input:focus,
.form-wrapper textarea:focus {
  border-color: #9ca3af;
}

.form-wrapper textarea {
  min-height: 100px;
  resize: vertical;
}

.wa-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 4px;
}

.wa-btn {
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: #25D366;
  border: none;
  border-radius: 6px;
  padding: 14px;
  width: 100%;
  height: 48px;
  margin-top: 10px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.wa-btn:hover {
  opacity: 0.9;
}

/* === AIRBNB PICKER POPUP === */
.airbnb-picker {
  display: none;
  position: fixed;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 10px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 220px;
  overflow: hidden;
  animation: slideUp 0.15s ease;
}

.airbnb-picker.open {
  display: block;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.airbnb-picker-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 16px 6px;
}

.airbnb-picker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #2c2c2c;
  text-decoration: none;
  transition: background 0.15s;
  border-top: 1px solid #f3f4f6;
}

.airbnb-picker-item:hover {
  background: #fff5f5;
  color: #ef4444;
}

.airbnb-picker-icon {
  font-size: 1rem;
}

/* === FOOTER === */
.site-footer {
  background: #fafaf9;
  border-top: 1px solid #e7e5e4;
  padding: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
}

/* === STICKY BAR === */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid #e7e5e4;
  padding: 12px 2rem;
  text-align: center;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.sticky-bar p {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 8px;
  font-weight: 500;
}

.sticky-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 6px;
}

.btn {
  padding: 10px 28px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  color: #ffffff;
  display: inline-block;
  transition: opacity 0.2s, transform 0.15s;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-airbnb {
  background: #ef4444;
}

.btn-booking {
  background: #2563eb;
}

.sticky-trust {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  font-size: 0.75rem;
  color: #6b7280;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero {
    height: 480px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-gallery {
    left: 1rem;
    bottom: 16px;
    gap: 8px;
  }

  .hero-thumb {
    width: 56px;
    height: 56px;
  }

  .hero-gallery-more {
    width: 56px;
    height: 56px;
    font-size: 0.7rem;
  }

  .hero-badges {
    right: 16px;
    bottom: 16px;
    gap: 8px;
  }

  .hero-platform-badge {
    width: 140px;
    padding: 8px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sticky-buttons {
    flex-wrap: wrap;
  }

  .btn {
    flex: 1;
    min-width: 120px;
  }

  .dropdown-toggle-meta {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 420px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-thumb {
    width: 48px;
    height: 48px;
  }

  .hero-gallery-more {
    width: 48px;
    height: 48px;
    font-size: 0.65rem;
  }

  .hero-badges {
    right: 12px;
    bottom: 12px;
    gap: 6px;
  }

  .hero-platform-badge {
    width: 110px;
    padding: 6px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .sticky-bar {
    padding: 10px 1rem;
  }

  .sticky-trust {
    flex-direction: column;
    gap: 4px;
  }
}
