/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: #1a1a1a; background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== BUTTONS ===== */
.btn { display: inline-block; padding: 0.75rem 1.5rem; border-radius: 8px; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all 0.2s; border: 2px solid transparent; text-align: center; }
.btn-primary { background: #2c5f2e; color: #fff; border-color: #2c5f2e; }
.btn-primary:hover { background: #1e4220; }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn-nav { background: #2c5f2e; color: #fff; padding: 0.5rem 1.2rem; font-size: 0.9rem; border-radius: 6px; }
.btn-large { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-block-mode { background: #1e5fa8; color: #fff; border-color: #1e5fa8; }
.btn-free-mode { background: #2c5f2e; color: #fff; border-color: #2c5f2e; }
.active-mode { box-shadow: 0 0 0 3px rgba(0,0,0,0.3); }

/* ===== CONTAINER ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
section { padding: 4rem 0; }
.section-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: #2c5f2e; font-weight: 600; margin-bottom: 0.5rem; }
h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1.5rem; }

/* ===== NAVBAR ===== */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(0,0,0,0.3); backdrop-filter: blur(8px); transition: background 0.3s; }
.navbar.scrolled { background: rgba(15,15,15,0.95); }
.nav-container { max-width: 1100px; margin: 0 auto; padding: 0.9rem 1.25rem; display: flex; justify-content: space-between; align-items: center; }
.nav-logo { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: #fff; font-weight: 700; }

/* ===== HERO ===== */
.hero { position: relative; height: 100vh; min-height: 600px; overflow: hidden; }
.hero-slider { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease; }
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%); }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 1.5rem; max-width: 700px; margin: 0 auto; padding-top: 80px; }
.hero-label { color: rgba(255,255,255,0.8); font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 0.75rem; }
.hero-title { font-family: 'Playfair Display', serif; font-size: clamp(2.2rem, 6vw, 4rem); color: #fff; line-height: 1.15; margin-bottom: 1rem; }
.hero-title span { color: #a8d5a2; }
.hero-sub { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 2rem; line-height: 1.6; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-badges { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-badges span { background: rgba(255,255,255,0.15); backdrop-filter: blur(4px); color: #fff; padding: 0.4rem 0.9rem; border-radius: 50px; font-size: 0.85rem; border: 1px solid rgba(255,255,255,0.25); }
.slider-dots { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 0.5rem; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: background 0.3s; border: none; }
.slider-dot.active { background: #fff; }

/* ===== HIGHLIGHTS BAR ===== */
.highlights-bar { background: #1a1a1a; padding: 1.5rem 0; }
.highlights-container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; display: flex; justify-content: space-around; flex-wrap: wrap; gap: 1rem; }
.highlight-item { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; color: #fff; }
.highlight-item i { font-size: 1.3rem; color: #a8d5a2; }
.highlight-item span { font-size: 0.85rem; font-weight: 500; }

/* ===== ABOUT ===== */
.about { background: #fafaf8; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-text h2 { margin-bottom: 1rem; }
.about-text p { color: #555; line-height: 1.7; margin-bottom: 1rem; }
.about-list { list-style: none; margin-bottom: 1.5rem; }
.about-list li { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0; color: #444; font-size: 0.95rem; }
.about-list li i { color: #2c5f2e; font-size: 0.85rem; }
.about-image img { border-radius: 16px; width: 100%; height: 420px; object-fit: cover; }

/* ===== GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 0.75rem; }
.gallery-item { position: relative; overflow: hidden; border-radius: 10px; cursor: pointer; }
.gallery-item.large { grid-row: 1 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: #fff; font-size: 1.5rem; }

/* ===== LIGHTBOX ===== */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 9999; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 8px; }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 1.3rem; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.3); }

/* ===== SLEEPING ===== */
.sleeping { background: #fff; }
.sleeping-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.sleeping-card { border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.sleeping-card img { width: 100%; height: 220px; object-fit: cover; }
.sleeping-info { padding: 1.25rem; }
.sleeping-info h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; margin-bottom: 0.5rem; }
.sleeping-info p { color: #666; display: flex; align-items: center; gap: 0.5rem; }

/* ===== AMENITIES ===== */
.amenities { background: #fafaf8; }
.amenities-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.amenity-group h3 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; color: #2c5f2e; display: flex; align-items: center; gap: 0.5rem; }
.amenity-group ul { list-style: none; }
.amenity-group ul li { display: flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0; color: #555; font-size: 0.92rem; }
.amenity-group ul li i { color: #2c5f2e; font-size: 0.8rem; }

/* ===== LOCATION ===== */
.location { background: #fff; }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.distance-item { display: flex; align-items: flex-start; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid #f0f0f0; }
.distance-item i { color: #2c5f2e; font-size: 1.1rem; margin-top: 2px; min-width: 20px; }
.distance-item div { display: flex; flex-direction: column; }
.distance-item strong { font-size: 0.95rem; }
.distance-item span { font-size: 0.85rem; color: #888; }

/* ===== REVIEWS ===== */
.reviews { background: #fafaf8; }
.reviews-score { display: grid; grid-template-columns: auto 1fr; gap: 3rem; align-items: center; margin-bottom: 2.5rem; background: #fff; padding: 2rem; border-radius: 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.score-main { display: flex; flex-direction: column; align-items: center; }
.score-number { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 700; color: #1a1a1a; }
.score-stars { color: #f5a623; font-size: 1.2rem; margin: 0.25rem 0; }
.score-count { font-size: 0.85rem; color: #888; }
.score-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; font-size: 0.9rem; }
.score-row > span:first-child { min-width: 120px; color: #555; }
.score-row > span:last-child { min-width: 30px; font-weight: 600; }
.score-bar { flex: 1; height: 6px; background: #e8e8e8; border-radius: 3px; overflow: hidden; }
.score-bar div { height: 100%; background: #2c5f2e; border-radius: 3px; }
.reviews-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.review-card { background: #fff; padding: 1.5rem; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.review-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; background: #2c5f2e; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; }
.review-header div { flex: 1; }
.review-header strong { display: block; font-size: 0.95rem; }
.review-header span { font-size: 0.8rem; color: #888; }
.review-stars { color: #f5a623; }
.review-card p { color: #555; font-size: 0.92rem; line-height: 1.65; font-style: italic; }

/* ===== AVAILABILITY CALENDAR ===== */
.availability { background: #fff; }
.calendar-legend { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; }
.legend-item .dot { width: 14px; height: 14px; border-radius: 50%; }
.legend-item.available .dot { background: #2c5f2e; }
.legend-item.occupied .dot { background: #1e5fa8; }
.legend-item.today .dot { background: #f5a623; }
.calendar-container { background: #fafaf8; border-radius: 16px; padding: 1.5rem; margin-bottom: 1.5rem; }
.calendar-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 600; }
.cal-nav-btn { background: none; border: 1px solid #ddd; border-radius: 8px; width: 36px; height: 36px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #333; transition: all 0.2s; }
.cal-nav-btn:hover { background: #2c5f2e; color: #fff; border-color: #2c5f2e; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day-header { text-align: center; font-size: 0.75rem; font-weight: 600; color: #888; padding: 0.4rem 0; text-transform: uppercase; }
.cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 0.88rem; cursor: pointer; transition: all 0.15s; font-weight: 500; border: 2px solid transparent; }
.cal-day.available { background: #e8f5e9; color: #2c5f2e; }
.cal-day.available:hover { background: #2c5f2e; color: #fff; }
.cal-day.occupied { background: #dce8f5; color: #1e5fa8; cursor: default; }
.cal-day.today { background: #fff3cd; color: #856404; border-color: #f5a623; }
.cal-day.past { color: #ccc; cursor: default; background: transparent; }
.cal-day.empty { background: transparent; cursor: default; }
.cal-day.owner-hover { opacity: 0.7; transform: scale(0.95); }
.calendar-note { font-size: 0.85rem; color: #888; margin-bottom: 1.5rem; text-align: center; }

/* ===== PRACTICAL ===== */
.practical { background: #fafaf8; }
.practical-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.practical-item { display: flex; align-items: flex-start; gap: 1rem; background: #fff; padding: 1.25rem; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.practical-item i { color: #2c5f2e; font-size: 1.2rem; margin-top: 2px; }
.practical-item div { display: flex; flex-direction: column; }
.practical-item strong { font-size: 0.9rem; font-weight: 600; }
.practical-item span { font-size: 0.85rem; color: #666; margin-top: 2px; }

/* ===== CTA FINAL ===== */
.cta-final { position: relative; padding: 6rem 1.5rem; text-align: center; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cta-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.cta-content { position: relative; z-index: 2; color: #fff; }
.cta-content h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 0.75rem; }
.cta-content p { font-size: 1.05rem; margin-bottom: 2rem; opacity: 0.85; }

/* ===== FOOTER ===== */
.footer { background: #111; color: #ccc; padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand h3 { font-family: 'Playfair Display', serif; color: #fff; font-size: 1.4rem; margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; color: #999; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: #999; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: #a8d5a2; }
.footer-bottom { border-top: 1px solid #333; padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.85rem; color: #666; }
.footer-bottom a { color: #a8d5a2; }
.owner-btn { background: none; border: 1px solid #444; color: #888; padding: 0.4rem 0.9rem; border-radius: 6px; cursor: pointer; font-size: 0.82rem; transition: all 0.2s; }
.owner-btn:hover { border-color: #2c5f2e; color: #a8d5a2; }

/* ===== OWNER PANEL ===== */
.owner-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 9998; align-items: center; justify-content: center; padding: 1rem; }
.owner-overlay.open { display: flex; }
.owner-panel { background: #fff; border-radius: 16px; padding: 2rem; max-width: 480px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; }
.owner-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: #666; }
.owner-panel h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 0.5rem; }
.owner-panel p { color: #666; font-size: 0.9rem; margin-bottom: 1rem; }
.owner-input { width: 100%; padding: 0.75rem 1rem; border: 1px solid #ddd; border-radius: 8px; font-size: 0.95rem; margin-bottom: 0.75rem; }
.owner-mode-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1.5rem; }
.owner-hint { background: #f0f7f0; border-left: 3px solid #2c5f2e; padding: 0.75rem 1rem; border-radius: 0 8px 8px 0; font-size: 0.88rem; color: #2c5f2e; margin-bottom: 1rem; }
.range-section { background: #f8f8f8; padding: 1.25rem; border-radius: 10px; margin: 1.25rem 0; }
.range-section h4 { font-size: 0.95rem; margin-bottom: 0.75rem; }
.range-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 0.75rem; }
.range-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.ftb-reminder { background: #fff8e1; border: 1px solid #ffe082; border-radius: 10px; padding: 1rem; margin-top: 1rem; text-align: center; }
.ftb-reminder p { color: #856404; font-size: 0.88rem; margin-bottom: 0.75rem; }

/* ===== PHOTO MANAGEMENT ===== */
.photo-management { background: #f8f8f8; border-radius: 10px; padding: 1.25rem; margin: 1.25rem 0; }
.photo-management h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.photo-management h5 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.5rem; color: #444; }
.photo-item { display: flex; align-items: center; gap: 0.75rem; background: #fff; border-radius: 8px; padding: 0.75rem; margin-bottom: 0.75rem; box-shadow: 0 1px 4px rgba(0,0,0,0.07); }
.photo-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.photo-item-info { flex: 1; min-width: 0; }
.photo-item-info span { display: block; font-size: 0.82rem; color: #666; margin-bottom: 0.35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-item-info input { width: 100%; padding: 0.4rem 0.6rem; border: 1px solid #ddd; border-radius: 6px; font-size: 0.82rem; }
.photo-item-btns { display: flex; flex-direction: column; gap: 0.35rem; }
.photo-item-btns button { padding: 0.3rem 0.6rem; font-size: 0.78rem; border-radius: 5px; cursor: pointer; border: none; font-weight: 600; }
.btn-save-photo { background: #2c5f2e; color: #fff; }
.btn-delete-photo { background: #e53935; color: #fff; }
.add-photo-section { border-top: 1px solid #e0e0e0; margin-top: 1rem; padding-top: 1rem; }

/* ===== TOAST ===== */
.toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(100px); background: #1a1a1a; color: #fff; padding: 0.75rem 1.5rem; border-radius: 50px; font-size: 0.9rem; z-index: 99999; transition: transform 0.3s; pointer-events: none; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  section { padding: 2.5rem 0; }
  .about-grid, .location-grid, .sleeping-grid, .amenities-grid, .reviews-grid, .practical-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-item.large { grid-row: auto; grid-column: 1 / 3; }
  .reviews-score { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-content { padding: 0 1.25rem; padding-top: 80px; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { text-align: center; }
  .score-row > span:first-child { min-width: 100px; font-size: 0.82rem; }
  .about-image img { height: 280px; }
}
