:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #141b2a;
  --bg-header: rgba(10, 14, 23, 0.85);
  --bg-viewer: rgba(7, 10, 15, 0.98);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #d4af37; /* Elegant gold */
  --accent-hover: #e2c365;
  --border-light: rgba(255, 255, 255, 0.08);
  --font-sans: 'Inter', sans-serif;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.5);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
  animation: fadeIn 0.4s ease-out forwards;
}

/* Header */
#site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 2rem;
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: flex-end;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.5px;
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb a {
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span.separator {
  color: var(--text-muted);
  opacity: 0.5;
}

.breadcrumb span.current {
  color: var(--text-main);
}

/* Search Bar */
.search-container {
  position: relative;
  width: 250px;
}

#search-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: var(--transition);
}

#search-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.08); /* slight brightness lift */
}

.search-results {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  max-height: 300px;
  overflow-y: auto;
  display: none;
  flex-direction: column;
}

.search-results.active {
  display: flex;
}

.search-item {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background: rgba(255,255,255,0.05);
}

.search-type {
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 2px;
}

/* Main Content */
#app {
  flex: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.page-header {
  margin-bottom: 2rem;
}

.page-title {
  font-size: 2.2rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Sections */
.section-title {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 2rem 0 1rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Group page area accordions */
.area-accordion {
  margin: 1rem 0 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.area-accordion-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.1rem;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  user-select: none;
}

.area-accordion-summary::-webkit-details-marker {
  display: none;
}

.area-accordion-summary::after {
  content: '▸';
  margin-left: auto;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.area-accordion[open] .area-accordion-summary::after {
  transform: rotate(90deg);
}

.area-count {
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: none;
}

.area-accordion-content {
  border-top: 1px solid var(--border-light);
  padding: 1rem 1rem 0;
}

.area-accordion-content .grid-cards {
  margin-bottom: 1.25rem;
}

/* Grid Layouts */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* Cards */
.card {
  position: relative;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: var(--transition);
}

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

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  pointer-events: none;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.card-subtitle {
  font-size: 0.85rem;
  color: var(--accent);
  margin-top: 0.25rem;
}

/* Hotel Hero */
.hotel-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
  position: relative;
  aspect-ratio: 21/9;
  box-shadow: var(--shadow-card);
}

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

.hotel-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem;
}

.hotel-hero .title {
  font-size: 3rem;
  font-weight: 300;
}

/* Image Grid specific */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.image-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.image-thumb:hover img {
  transform: scale(1.05);
  opacity: 0.8;
}

/* View All Action Card */
.card.action-card {
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
}
.card.action-card .card-overlay {
  background: none;
  align-items: center;
  justify-content: center;
}
.card.action-card .card-title {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 1px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #000;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: inherit;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}

/* Image Viewer Elements */
.viewer {
  position: fixed;
  inset: 0;
  background: var(--bg-viewer);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.viewer.hidden {
  opacity: 0;
  pointer-events: none;
}

.viewer-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
}

.viewer-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.viewer-counter {
  color: var(--accent);
  font-weight: 500;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.viewer-btn {
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.viewer-btn:hover {
  background: rgba(255,255,255,0.1);
  color: var(--accent);
}

.viewer-btn svg {
  width: 24px;
  height: 24px;
}

.viewer-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  z-index: 10;
}
.nav-btn.left { left: 2rem; }
.nav-btn.right { right: 2rem; }

.image-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 80px; /* Space for nav buttons */
}

.image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.2s;
}

.viewer-thumbnails-wrap {
  background: rgba(0,0,0,0.8);
  padding: 1rem;
}

.viewer-thumbnails {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem; /* Scrollbar space */
  justify-content: flex-start;
}

.viewer-thumbnails::-webkit-scrollbar {
  height: 6px;
}
.viewer-thumbnails::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
}
.viewer-thumbnails::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

.thumb-item {
  width: 80px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.4;
  transition: var(--transition);
  scroll-snap-align: center;
  border: 2px solid transparent;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-item:hover {
  opacity: 0.8;
}

.thumb-item.active {
  opacity: 1;
  border-color: var(--accent);
}

/* Loader */
.loader {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  border-top-color: var(--accent);
  animation: spin 1s ease-in-out infinite;
  display: none;
}

.loader.active {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-controls {
    width: 100%;
    justify-content: space-between;
  }
  .search-container {
    width: 150px;
  }
  .hotel-hero {
    aspect-ratio: 16/9;
  }
  .hotel-hero .title {
    font-size: 2rem;
  }
  .hotel-hero-overlay {
    padding: 1.5rem;
  }
  #app {
    padding: 1rem;
  }
  
  /* Hide nav buttons on mobile */
  .nav-btn { display: none; }
  .image-container { padding: 0; }
  
  .viewer-top-bar {
    padding: 1rem;
  }
}
