/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: #1a1a2e; background: #fff; line-height: 1.6; overflow-x: hidden; }

/* ===== VARIABLES ===== */
:root {
  --ocean-dark: #0077b6;
  --ocean: #00b4d8;
  --ocean-light: #90e0ef;
  --sand: #e9c46a;
  --sand-light: #f4e4b6;
  --warm: #f4a261;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --text: #1a1a2e;
  --text-light: #6c757d;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 16px;
  --radius-sm: 8px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
.section-label { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--ocean); margin-bottom: 0.5rem; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.section-desc { font-size: 1.05rem; color: var(--text-light); max-width: 640px; margin-bottom: 2.5rem; }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--off-white); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ===== HERO ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url('images/hero-bonsol.jpg') center/cover no-repeat; transform: scale(1.1); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.6) 100%); }
.hero-content { position: relative; z-index: 2; text-align: center; color: #fff; padding: 2rem; max-width: 800px; }
.hero-badge { display: inline-block; background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); padding: 0.4rem 1.2rem; border-radius: 50px; font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; border: 1px solid rgba(255,255,255,0.2); margin-bottom: 1.5rem; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 800; margin-bottom: 0.5rem; letter-spacing: -1px; }
.hero h1 span { color: var(--sand); }
.hero-sub { font-size: clamp(1rem, 2vw, 1.3rem); opacity: 0.9; margin-bottom: 2.5rem; font-weight: 300; }
.countdown { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.countdown-item { background: rgba(255,255,255,0.1); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius); padding: 1rem 1.5rem; min-width: 80px; text-align: center; }
.countdown-item .num { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; display: block; line-height: 1; }
.countdown-item .label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.7; margin-top: 0.3rem; display: block; }
.hero-arrow { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2; width: 40px; height: 40px; border: 2px solid rgba(255,255,255,0.5); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; animation: bounce 2s infinite; transition: border-color 0.3s; }
.hero-arrow:hover { border-color: #fff; }
@keyframes bounce { 0%, 100%{ transform: translateX(-50%) translateY(0); } 50%{ transform: translateX(-50%) translateY(8px); } }

/* ===== BOOKING OVERVIEW ===== */
.booking-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.booking-card { background: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); border: 1px solid #eee; transition: transform 0.3s, box-shadow 0.3s; }
.booking-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.booking-card .icon { font-size: 1.8rem; margin-bottom: 0.8rem; }
.booking-card h3 { font-size: 1.1rem; margin-bottom: 0.8rem; color: var(--ocean-dark); }
.booking-card p { font-size: 0.95rem; color: var(--text-light); margin-bottom: 0.3rem; }
.booking-card .highlight { font-weight: 600; color: var(--text); }
.balance-due { background: linear-gradient(135deg, var(--ocean-dark), var(--ocean)); color: #fff; padding: 1.8rem; border-radius: var(--radius); text-align: center; }
.balance-due .amount { font-size: 2.2rem; font-weight: 800; }
.balance-due .date { opacity: 0.9; font-size: 0.95rem; }

/* ===== HOTEL SECTION ===== */
.hotel-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; margin-top: 3rem; }
.feature-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.feature-card .card-body { padding: 1.5rem; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--ocean-dark); }
.feature-card p { font-size: 0.92rem; color: var(--text-light); }
.room-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.room-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.room-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.room-card .room-info { padding: 1.5rem; }
.room-card .room-info h4 { font-size: 1rem; color: var(--ocean-dark); margin-bottom: 0.3rem; }
.room-card .room-info p { font-size: 0.9rem; color: var(--text-light); }

/* ===== ILLETAS ===== */
.illetas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.illetas-item { position: relative; border-radius: var(--radius); overflow: hidden; height: 250px; cursor: pointer; }
.illetas-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.illetas-item:hover img { transform: scale(1.05); }
.illetas-item .overlay { position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0,0,0,0.6)); display: flex; align-items: flex-end; padding: 1.5rem; }
.illetas-item .overlay span { color: #fff; font-weight: 600; font-size: 1.05rem; }

/* ===== ATTRACTIONS ===== */
.attr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.attr-item { background: #fff; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); border: 1px solid #f0f0f0; transition: transform 0.3s, box-shadow 0.3s; display: block; color: inherit; text-decoration: none; }
.attr-item:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.attr-item .emoji { font-size: 1.6rem; margin-bottom: 0.4rem; }
.attr-item h4 { font-size: 0.95rem; color: var(--ocean-dark); margin-bottom: 0.2rem; }
.attr-item p { font-size: 0.85rem; color: var(--text-light); line-height: 1.5; }
.attr-img { height: 160px; overflow: hidden; }
.attr-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.attr-item:hover .attr-img img { transform: scale(1.08); }
.attr-body { padding: 1rem 1.2rem 1.2rem; }
.pin { display: block; font-size: 0.75rem; color: var(--ocean-mid); margin-top: 0.4rem; font-weight: 500; }
.badge { display: inline-block; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: #fff; background: var(--ocean-mid); padding: 2px 8px; border-radius: 20px; vertical-align: middle; margin-left: 4px; }

/* ===== GALLERY ===== */
.gallery-filters { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.gallery-filter-btn { padding: 0.55rem 1.4rem; border: 1.5px solid #ddd; border-radius: 50px; background: #fff; color: var(--text); font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: all 0.25s; font-family: inherit; }
.gallery-filter-btn:hover { border-color: var(--ocean); color: var(--ocean); }
.gallery-filter-btn.active { background: var(--ocean); color: #fff; border-color: var(--ocean); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }

.gallery-item { border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; position: relative; display: block; text-decoration: none; }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.tall img { height: 100%; min-height: 460px; }

.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 50%, transparent 100%); display: flex; align-items: flex-end; padding: 1rem; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption { color: #fff; font-size: 0.9rem; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }

.gallery-item.hidden { display: none; }
@keyframes galleryFadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.gallery-item.visible { animation: galleryFadeIn 0.35s ease forwards; }

/* ===== LIGHTBOX ===== */
.lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.92); display: none; align-items: center; justify-content: center; padding: 2rem; }
.lightbox.active { display: flex; }
.lightbox-content { display: flex; flex-direction: column; align-items: center; max-width: 90vw; max-height: 90vh; }
.lightbox img { max-width: 90vw; max-height: 78vh; border-radius: var(--radius-sm); object-fit: contain; }
.lightbox-caption { color: #fff; font-size: 0.95rem; margin-top: 0.8rem; text-align: center; opacity: 0.85; }

.lightbox-close { position: absolute; top: 1.5rem; right: 2rem; color: #fff; font-size: 2rem; cursor: pointer; opacity: 0.7; transition: opacity 0.3s; background: none; border: none; z-index: 10; }
.lightbox-close:hover { opacity: 1; }

.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 2.8rem; cursor: pointer; opacity: 0.5; transition: opacity 0.3s; background: none; border: none; z-index: 10; padding: 0.5rem; line-height: 1; }
.lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ===== CHECKLIST ===== */
.checklist { max-width: 600px; margin: 0 auto; }
.checklist-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: #fff; border-radius: var(--radius-sm); margin-bottom: 0.6rem; box-shadow: var(--shadow); border: 1px solid #eee; transition: all 0.3s; cursor: pointer; }
.checklist-item:hover { border-color: var(--ocean-light); }
.checklist-item input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--ocean); cursor: pointer; flex-shrink: 0; }
.checklist-item label { flex: 1; font-size: 0.95rem; cursor: pointer; }
.checklist-item.checked { background: #f0fafc; border-color: var(--ocean-light); }
.checklist-item.checked label { text-decoration: line-through; color: var(--text-light); }
.checklist-progress { text-align: center; margin-bottom: 1.5rem; font-size: 0.9rem; color: var(--text-light); }
.checklist-progress strong { color: var(--ocean-dark); }

/* ===== REVIEWS ===== */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.review-card { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); border: 1px solid #eee; position: relative; }
.review-card::before { content: '"'; font-size: 3rem; color: var(--ocean-light); position: absolute; top: 0.5rem; left: 1rem; opacity: 0.4; line-height: 1; }
.review-card p { font-size: 0.95rem; color: var(--text); font-style: italic; margin-bottom: 0.8rem; }
.review-card .author { font-weight: 600; font-size: 0.85rem; color: var(--ocean-dark); }
.review-card .rating { color: var(--sand); letter-spacing: 2px; margin-top: 0.3rem; }

/* ===== FOOTER ===== */
.footer { background: #1a1a2e; color: rgba(255,255,255,0.8); padding: 3rem 0; text-align: center; }
.footer h3 { color: #fff; font-size: 1.4rem; margin-bottom: 0.5rem; }
.footer .ref { font-size: 0.9rem; color: var(--sand); font-weight: 600; }
.footer .atol { font-size: 0.8rem; opacity: 0.6; margin-top: 0.3rem; }
.footer .footer-countdown { margin-top: 1.5rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.footer .footer-countdown .item { background: rgba(255,255,255,0.08); border-radius: var(--radius-sm); padding: 0.6rem 1rem; min-width: 60px; text-align: center; }
.footer .footer-countdown .item .num { font-size: 1.2rem; font-weight: 700; color: #fff; display: block; }
.footer .footer-countdown .item .label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.6; display: block; }

/* ===== NAV ===== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 1rem 1.5rem; transition: all 0.4s; display: flex; justify-content: space-between; align-items: center; }
.nav.scrolled { background: rgba(255,255,255,0.95); backdrop-filter: blur(16px); box-shadow: 0 2px 20px rgba(0,0,0,0.08); padding: 0.7rem 1.5rem; }
.nav .logo { font-weight: 700; font-size: 1.1rem; color: #fff; text-decoration: none; letter-spacing: -0.5px; }
.nav.scrolled .logo { color: var(--text); }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: color 0.3s; }
.nav.scrolled .nav-links a { color: var(--text); }
.nav-links a:hover { color: var(--sand); }
.nav.scrolled .nav-links a:hover { color: var(--ocean); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; transition: 0.3s; }
.nav.scrolled .nav-toggle span { background: var(--text); }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(255,255,255,0.98); backdrop-filter: blur(16px); flex-direction: column; padding: 1rem 1.5rem; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--text) !important; }
  .nav-toggle { display: flex; }
  .room-row { grid-template-columns: 1fr; }
  .countdown-item { min-width: 65px; padding: 0.8rem 1rem; }
  .section { padding: 3rem 0; }
  .gallery-item.tall { grid-row: auto; }
  .gallery-item.tall img { min-height: 220px; }
  .lightbox-prev { left: 0.5rem; font-size: 2.2rem; }
  .lightbox-next { right: 0.5rem; font-size: 2.2rem; }
  .hero h1 { font-size: 2.5rem; }
}

@media (max-width: 480px) {
  .countdown { gap: 0.5rem; }
  .countdown-item { min-width: 55px; padding: 0.6rem; }
  .countdown-item .num { font-size: 1.4rem; }
  .container { padding: 0 1rem; }
}
