/* ===== Custom Properties ===== */
:root {
  --color-bg: #fff;
  --color-text: #444;
  --color-heading: #2e3842;
  --color-accent: #c6a94e;
  --color-accent-dark: #a8893a;
  --color-light: #f5f3ef;
  --color-border: #e0ddd6;
  --color-white: #fff;
  --font-body: 'Source Sans Pro', sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --max-width: 1100px;
  --radius: 6px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-text);
  line-height: 1.7;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
h1, h2, h3, h4 {
  color: var(--color-heading);
  font-weight: 400;
  line-height: 1.3;
}
h2 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem); }
p + p { margin-top: var(--space-sm); }

/* ===== Layout ===== */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  max-width: var(--max-width);
  width: 90%;
  margin: 0 auto;
}
.site-title {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-heading);
}
.site-title a { color: inherit; }
.site-title a:hover { text-decoration: none; }

/* Hamburger */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-heading);
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav */
.main-nav { display: none; }
.main-nav.open { display: block; }
.main-nav > ul { display: flex; flex-direction: column; }
.main-nav a {
  display: block;
  padding: var(--space-xs) 0;
  color: var(--color-text);
  font-weight: 400;
}
.main-nav a:hover { color: var(--color-accent-dark); }

/* Rooms dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { cursor: pointer; }
.dropdown-menu {
  display: none;
  padding-left: var(--space-sm);
}
.dropdown-menu a { font-weight: 300; font-size: 0.95rem; }
.nav-dropdown.open .dropdown-menu { display: block; }

/* Mobile nav panel */
.nav-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-white);
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  padding: var(--space-sm) 5%;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-lg) var(--space-sm);
}
.hero h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  font-weight: 300;
  margin-bottom: var(--space-xs);
}
.hero p {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.5rem);
  font-weight: 300;
  opacity: 0.9;
}

/* ===== Sections ===== */
.section { padding: var(--space-lg) 0; }
.section-alt { background: var(--color-light); }
.section-title {
  text-align: center;
  margin-bottom: var(--space-md);
}

/* ===== Welcome ===== */
.welcome-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.welcome-text p { text-align: left; }

/* ===== Room Cards ===== */
.rooms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
.room-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}
.room-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.room-card picture { display: block; }
.room-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.room-card-body {
  padding: var(--space-sm) var(--space-sm) var(--space-md);
  text-align: center;
}
.room-card h3 { margin-bottom: var(--space-xs); }
.room-card .price {
  color: var(--color-accent-dark);
  font-weight: 400;
  margin-bottom: var(--space-sm);
}
.btn {
  display: inline-block;
  padding: 0.6em 1.8em;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius);
  color: var(--color-accent-dark);
  font-weight: 400;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}
.btn:hover {
  background: var(--color-accent);
  color: var(--color-white);
  text-decoration: none;
}

/* ===== Info Grid ===== */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  text-align: center;
}
.info-item h3 { margin-bottom: var(--space-xs); }
.info-icon {
  font-size: 2rem;
  margin-bottom: var(--space-xs);
  color: var(--color-accent);
}

/* ===== Map ===== */
#map {
  width: 100%;
  height: 350px;
  border-radius: var(--radius);
  margin-top: var(--space-md);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-heading);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: var(--space-md) 0;
  font-size: 0.9rem;
}
.footer-links { display: flex; gap: var(--space-md); justify-content: center; margin-bottom: var(--space-sm); }
.footer-links a {
  color: rgba(255,255,255,0.8);
  font-weight: 400;
}
.footer-links a:hover { color: var(--color-white); }
.footer-links svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  vertical-align: middle;
  margin-right: 4px;
}

/* ===== Room Detail Page ===== */
.page-header {
  padding: var(--space-lg) 0 var(--space-md);
  text-align: center;
}
.room-detail {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: var(--space-lg);
}
.room-detail figure {
  margin: var(--space-md) 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.room-detail figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: #888;
  padding: var(--space-xs) 0;
}
.room-detail .room-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}
.back-link {
  display: inline-block;
  margin-top: var(--space-md);
}

/* ===== Contact / Placeholder Pages ===== */
.page-content {
  max-width: 700px;
  margin: 0 auto;
  padding-bottom: var(--space-lg);
  min-height: 40vh;
}
.page-content a { font-weight: 400; }

/* ===== Responsive ===== */
@media (min-width: 480px) {
  .rooms-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .main-nav { display: block !important; }
  .main-nav > ul { flex-direction: row; align-items: center; gap: var(--space-md); }
  .dropdown-menu { flex-direction: column; gap: 0; }
  .nav-panel {
    position: static;
    box-shadow: none;
    padding: 0;
  }
  /* Desktop dropdown */
  .nav-dropdown { position: relative; }
  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: var(--radius);
    padding: var(--space-xs) 0;
    min-width: 250px;
    z-index: 50;
  }
  .dropdown-menu a {
    padding: var(--space-xs) var(--space-sm);
    white-space: nowrap;
  }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .hero { min-height: 70vh; }
  .room-detail .room-images { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .rooms-grid { grid-template-columns: repeat(4, 1fr); }
  .info-grid { grid-template-columns: repeat(4, 1fr); }
}
