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

:root {
  --blue: #1E5F8E;
  --blue-light: #2a7ab5;
  --blue-dark: #164a6e;
  --sand: #F5F0E8;
  --sand-dark: #E8DFD1;
  --white: #FFFFFF;
  --text: #2D2D2D;
  --text-light: #6B6B6B;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  color: var(--text);
  transition: all var(--transition);
}

.nav a:hover,
.nav a.active {
  color: var(--blue);
  background: var(--sand);
}

.nav .btn-book {
  background: var(--blue);
  color: var(--white) !important;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 14px;
  margin-left: 8px;
}

.nav .btn-book:hover {
  background: var(--blue-light);
}

/* Burger menu */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1001;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition);
}

.mobile-nav-overlay.visible {
  display: block;
  opacity: 1;
}

@media (max-width: 900px) {
  .burger { display: flex; }
  .nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 88px 24px 24px;
    gap: 4px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transition: right var(--transition);
    z-index: 1000;
  }
  .nav.open { right: 0; }
  .nav a { font-size: 17px; padding: 14px 16px; }
  .nav .btn-book { text-align: center; margin-left: 0; margin-top: 8px; }
  .mobile-nav-overlay.visible { display: block; opacity: 1; }
}

/* ===== Hero Slider ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  max-height: 900px;
  overflow: hidden;
  margin-top: 72px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.45));
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  color: var(--white);
  padding: 24px;
  max-width: 700px;
}

.hero-content h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: clamp(16px, 2.5vw, 22px);
  margin-bottom: 32px;
}

.hero-content .btn-hero {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 16px 40px;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 600;
  transition: all var(--transition);
}

.hero-content .btn-hero:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
}

.slider-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  border: none;
}

.slider-dot.active {
  background: var(--white);
  transform: scale(1.3);
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section-sand {
  background: var(--sand);
}

.section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 48px;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--sand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
  color: var(--blue);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-light);
}

/* Quote block */
.quote-block {
  background: var(--blue);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}

.quote-block blockquote {
  font-size: clamp(18px, 3vw, 24px);
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  font-style: italic;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

.gallery-grid a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery-grid a:hover img {
  transform: scale(1.05);
}

/* Rooms */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 900px) {
  .rooms-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
}

.room-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.room-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
}

.room-gallery a {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
}

.room-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.room-gallery a:hover img {
  transform: scale(1.05);
}

.room-info {
  padding: 24px;
}

.room-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.room-area {
  font-size: 14px;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 16px;
}

.room-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.room-detail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}

.room-btn {
  display: block;
  background: var(--blue);
  color: var(--white);
  padding: 12px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  transition: background var(--transition);
}

.room-btn:hover {
  background: var(--blue-light);
}

/* About page */
.about-text {
  max-width: 800px;
  margin: 0 auto 48px;
  font-size: 17px;
  line-height: 1.8;
}

.about-text p {
  margin-bottom: 16px;
}

/* Contacts */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 16px;
}

.contact-icon {
  font-size: 22px;
}

.contact-note {
  font-size: 15px;
  color: var(--text-light);
  margin-top: 24px;
  line-height: 1.6;
}

.contact-form {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-form h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--sand-dark);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
}

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

.form-submit {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 14px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background var(--transition);
}

.form-submit:hover {
  background: var(--blue-light);
}

.map-container {
  margin-top: 48px;
  border-radius: var(--radius);
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

@media (max-width: 768px) {
  .map-container iframe {
    height: 300px;
  }
}

/* Booking page */
.booking-section {
  padding: 120px 0 80px;
  margin-top: 72px;
  min-height: 80vh;
}

/* Page header */
.page-header {
  background: var(--sand);
  padding: 120px 0 48px;
  margin-top: 72px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 36px;
  cursor: pointer;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: white;
  font-size: 28px;
  padding: 16px 20px;
  cursor: pointer;
  border-radius: 8px;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 520px) {
  .lightbox-arrow { padding: 12px 14px; font-size: 22px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--blue);
  color: white;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  z-index: 3000;
  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: none;
}

.toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Footer */
.footer {
  background: #1A1A1A;
  color: rgba(255,255,255,0.75);
  padding: 40px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-address, .footer-phone {
  font-size: 14px;
}

.footer-phone a {
  color: rgba(255,255,255,0.85);
}

.footer-note {
  font-size: 13px;
  max-width: 420px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== Logo image ===== */
.logo img {
  max-height: 96px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .logo img {
    max-height: 78px;
  }
}