/* ==========================================
   SL HOMESTAY - RESPONSIVE CSS (FIXED HEADER)
   ========================================== */

:root {
  --blue-900: #1a1a1a;
  --blue-700: #333333;
  --muted: #b3b3b3;
  --card: #1f1f1f;
  --radius: 12px;
  --maxw: 1200px;
  --accent: #ffd27a;
  --white: #ffffff;
  --header-height: 70px;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #222;
  background: #ffffff !important;
  padding-top: var(--header-height);
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px;
  width: 100%;
}

/* ==========================================
   HEADER - FIXED & RESPONSIVE
   ========================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background-color 220ms ease, box-shadow 220ms ease;
  height: var(--header-height);
}

.site-header.transparent {
  background: rgba(0, 0, 0, 0);
  backdrop-filter: none;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  height: 100%;
}

/* Brand & Logo */
.brand {
  flex: 0 0 auto;
}

.logo {
  display: block;
  height: 50px;
  width: auto;
}

.logo img,
.site-logo {
  display: block;
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #111;
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

.site-header.scrolled .menu-toggle {
  color: #111;
}

.site-header.transparent .menu-toggle {
  color: #fff;
}

/* Navigation */
.main-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-list a {
  color: #111;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s ease;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.site-header.scrolled .nav-list a {
  color: #111;
  text-shadow: none;
}

.nav-list a:hover {
  color: var(--accent);
}

/* Header Actions (Phone + Button) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

/* Header Phone */
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-phone img {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.2s ease;
}

.site-header.scrolled .header-phone img {
  filter: none;
}

.header-phone .phone-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  font-size: 12px;
  font-weight: 600;
  color: #111;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.site-header.scrolled .header-phone .phone-text {
  color: #111;
  text-shadow: none;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  font-size: 14px;
  border: 0;
  cursor: pointer;
}

.btn.primary {
  background: var(--blue-700);
  color: #fff !important;
}

.btn.primary:hover {
  background: #222;
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================
   HERO SECTION - RESPONSIVE
   ========================================== */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 40px 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../images/pg3.png');
  background-size: cover;
  background-position: center;
  filter: brightness(0.75) contrast(1.02);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.3), rgba(10, 10, 10, 0.55));
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.hero-left {
  padding-top: 60px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-sub {
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 20px;
  font-size: clamp(14px, 2vw, 16px);
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.hero-features {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
  font-size: 14px;
}

.hero-features .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Hero Card */
.hero-card {
  margin-top: 60px;
}

.hero-card .card {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  color: #fff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ==========================================
   FORMS
   ========================================== */

.booking input,
.booking select,
.booking textarea,
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  margin-bottom: 12px;
  font-size: 14px;
}

.booking input::placeholder,
.booking select::placeholder,
.booking textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.wa-link {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  width: 100%;
}

/* ==========================================
   GALLERY / SLIDESHOW - RESPONSIVE
   ========================================== */

.gallery-section {
  padding: 48px 0;
}

.section-title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 24px;
  text-align: center;
}

.slideshow {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
  max-width: 100%;
}

.slides-wrapper {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  background: #0c1622;
}

.slide {
  display: none;
  width: 100%;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

/* Navigation Arrows */
.nav {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  flex-shrink: 0;
}

.nav:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Dots */
.dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
  padding-top: 12px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 0;
  cursor: pointer;
  transition: all 0.15s;
}

.dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* ==========================================
   SECTIONS
   ========================================== */

.section {
  padding: 60px 0;
}

.section.alt {
  background: #f5f5f5;
}

.muted {
  color: var(--muted);
}

/* ==========================================
   AMENITIES - RESPONSIVE
   ========================================== */

#amenities {
  background: #2a2415;
  padding: 60px 0;
}

#amenities .container {
  background: transparent;
  padding: 40px 24px;
  border-radius: 12px;
}

#amenities .section-title {
  color: var(--accent);
}

.amenities-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: start;
  margin-top: 20px;
}

.section-subtitle {
  font-size: 18px;
  color: #fff;
  margin: 20px 0 12px;
  font-weight: 700;
}

#amenities .section-subtitle {
  color: #fff;
}

.amen-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.amen-list li {
  background: #ffffff;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  color: #333;
  font-size: 14px;
}

/* Contact Block in Amenities */
.top-contact {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.top-contact p {
  margin: 8px 0;
  color: #222;
}

.top-contact a {
  color: #1a73e8;
  font-weight: 700;
  text-decoration: none;
}

/* Map */
.map-wrap {
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.map-wrap iframe {
  width: 100%;
  height: 320px;
  display: block;
  border: 0;
}

/* ==========================================
   DINING SECTION
   ========================================== */

#dining {
  background: url('../images/dining.jpg') center/cover no-repeat;
  padding: 60px 0;
  position: relative;
}

#dining::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 1;
}

#dining .container {
  position: relative;
  z-index: 2;
  background: transparent;
}

#dining h2,
#dining .section-title {
  color: var(--accent);
}

#dining p {
  color: #e6e6e6;
}

.dining-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.dining-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 18px;
  border-radius: 12px;
}

.dining-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.dining-item p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 14px;
}

/* ==========================================
   TARIFF SECTION
   ========================================== */

#tariff {
  padding: 60px 0;
}

.tariff-intro {
  background-color: #2a2415;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 28px;
  color: #e6e6e6;
}

.tariff-intro-title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
}

.tariff-intro-text {
  font-size: 16px;
  line-height: 1.6;
}

.grid.two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.tariff-card {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: center;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tariff-content h3 {
  margin: 0 0 12px;
  font-size: 22px;
  color: #111;
}

.price-val {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  margin: 12px 0;
}

.price-val span {
  font-size: 16px;
  color: #666;
}

.tariff-content p {
  color: #555;
  line-height: 1.6;
}

.tariff-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
}

/* ==========================================
   COMMUNITY SECTION
   ========================================== */

#community {
  background: url('../images/community.jpg') center/cover no-repeat;
  padding: 70px 0;
  position: relative;
}

#community::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 1;
}

#community .container {
  position: relative;
  z-index: 2;
}

#community h2 {
  color: var(--accent);
}

.community-block {
  padding: 24px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
}

.community-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: start;
}

.community-title {
  font-size: clamp(20px, 3vw, 26px);
  margin: 0 0 16px;
  color: #fff;
  font-weight: 700;
}

.community-lead {
  margin: 0 0 12px;
  color: #f2f2f2;
  line-height: 1.6;
}

.community-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.feat-ico {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  padding: 8px;
  border-radius: 8px;
  background: var(--accent);
  color: #111;
}

.feat-text strong {
  display: block;
  font-weight: 700;
  color: #fff;
}

.feat-text .muted {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin-top: 4px;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */

.contact-section {
  padding: 60px 0;
  background: #2a2415;
}

.contact-section .section-title {
  color: var(--accent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.contact-info h3 {
  margin: 0 0 16px;
  font-size: 22px;
  color: #111;
}

.contact-info p {
  margin: 10px 0;
  color: #555;
}

#contact input,
#contact textarea,
#contact select {
  background: #f5f5f5;
  color: #111;
  border: 1px solid #ddd;
}

#contact input::placeholder,
#contact textarea::placeholder {
  color: #666;
}

#contact select {
  color: #111;
}

#contact select option {
  color: #111;
}

.wa-large {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 18px;
  background: #1a1a1a;
  color: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

/* ==========================================
   FOOTER
   ========================================== */

.site-footer {
  padding: 24px 0;
  color: var(--muted);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================
   FLOATING SOCIAL ICONS
   ========================================== */

.floating-icons {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.float-icon img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  padding: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
  cursor: pointer;
}

.float-icon img:hover {
  transform: scale(1.15);
}

/* ==========================================
   TABLET RESPONSIVENESS (1024px and below)
   ========================================== */

@media (max-width: 1024px) {
  .container {
    padding: 20px;
  }

  .logo {
    height: 45px;
  }

  .nav-list {
    gap: 18px;
  }

  .nav-list a {
    font-size: 14px;
  }

  .hero-inner {
    grid-template-columns: 1fr 340px;
  }

  .amenities-grid {
    grid-template-columns: 1fr 360px;
  }

  .community-grid {
    grid-template-columns: 1fr 360px;
  }

  .dining-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================
   MOBILE RESPONSIVENESS (768px and below)
   ========================================== */

@media (max-width: 768px) {
  
  /* Adjust CSS variables for mobile */
  :root {
    --header-height: 60px;
  }

  /* HEADER */
  .site-header {
    height: 60px;
  }

  .header-inner {
    padding: 0 16px;
    gap: 12px;
  }

  .logo {
    height: 40px;
  }

  /* Show hamburger, hide desktop nav */
  .menu-toggle {
    display: block;
    order: 3;
  }

  .main-nav {
    order: 4;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    padding: 16px;
    gap: 8px;
  }

  .nav-list.open {
    display: flex;
  }

  .nav-list a {
    color: #111 !important;
    padding: 12px;
    display: block;
  }

  .header-actions {
    gap: 10px;
    order: 2;
  }

  .header-phone {
    display: none;
  }

  .btn.primary {
    padding: 8px 14px;
    font-size: 13px;
  }

  /* HERO */
  .hero {
    min-height: auto;
    padding: 80px 0 40px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .hero-left {
    padding-top: 20px;
    text-align: left;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-card {
    margin-top: 30px;
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  /* GALLERY */
  .slideshow {
    flex-direction: column;
    gap: 0;
  }

  .slide img {
    max-height: 300px;
  }

  .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .slideshow .prev {
    left: 10px;
  }

  .slideshow .next {
    right: 10px;
  }

  /* AMENITIES */
  .amenities-grid {
    grid-template-columns: 1fr;
  }

  .amen-list {
    grid-template-columns: 1fr;
  }

  .map-wrap {
    max-width: 100%;
  }

  /* DINING */
  .dining-grid {
    grid-template-columns: 1fr;
  }

  /* TARIFF */
  .grid.two {
    grid-template-columns: 1fr;
  }

  .tariff-card {
    grid-template-columns: 1fr;
  }

  .tariff-image img {
    height: 220px;
  }

  /* COMMUNITY */
  .community-grid {
    grid-template-columns: 1fr;
  }

  /* CONTACT */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* FOOTER */
  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* FLOATING ICONS */
  .floating-icons {
    bottom: 20px;
    right: 20px;
  }

  .float-icon img {
    width: 42px;
    height: 42px;
  }
}

/* ==========================================
   SMALL MOBILE (480px and below)
   ========================================== */

@media (max-width: 480px) {
  .container {
    padding: 16px;
  }

  .logo {
    height: 36px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-sub {
    font-size: 14px;
  }

  .section-title {
    font-size: 22px;
  }

  .slide img {
    max-height: 240px;
  }

  .btn {
    padding: 10px 14px;
    font-size: 14px;
  }

  .floating-icons {
    bottom: 15px;
    right: 15px;
  }

  .float-icon img {
    width: 38px;
    height: 38px;
  }

  .tariff-intro-title {
    font-size: 18px;
  }

  .community-title {
    font-size: 18px;
  }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.card {
  border-radius: 12px;
  background: #ffffff;
  padding: 20px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.text-center {
  text-align: center;
}

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {
  .site-header,
  .floating-icons,
  .nav,
  .dots {
    display: none;
  }

  body {
    padding-top: 0;
  }
}