/* Custom Variables & Design Tokens */
:root {
  --bg-primary: #0a0b0d;
  --bg-secondary: #131518;
  --bg-card: rgba(26, 29, 34, 0.65);
  --bg-glass: rgba(19, 21, 24, 0.8);
  --border-color: rgba(212, 175, 55, 0.15);
  --border-hover: rgba(212, 175, 55, 0.4);
  
  --accent-gold: #d4af37; /* Metallic Gold */
  --accent-gold-hover: #f3e5ab; /* Mellow Yellow/Gold */
  --accent-gold-glow: rgba(212, 175, 55, 0.25);
  
  --text-primary: #f0f2f5;
  --text-secondary: #a0aec0;
  --text-muted: #718096;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.15);
  
  --font-serif: 'Cinzel', Georgia, serif;
  --font-sans: 'Outfit', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --sidebar-width: 400px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Layout Container */
.app-container {
  display: flex;
  height: 100vh;
  position: relative;
  width: 100vw;
}

/* MAIN CONTENT AREA */
.main-content {
  order: 1;

  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  position: relative;
  padding: 2rem;
  transition: var(--transition-smooth);
}

/* MUSEUM HEADER */
.museum-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.logo-area h1 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.logo-area .subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-top: -3px;
}

.header-actions {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

/* Search Box */
.search-box {
  position: relative;
  width: 320px;
}

.search-box input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.8rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-glow);
}

.search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

/* Toggle Docent Button */
.toggle-docent-btn {
  background: linear-gradient(135deg, var(--accent-gold), #b38f28);
  border: none;
  color: #000;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
  transition: var(--transition-smooth);
}

.toggle-docent-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  background: linear-gradient(135deg, #e5c158, var(--accent-gold));
}

.toggle-docent-btn:active {
  transform: translateY(0);
}

/* HERO SECTION */
.museum-hero {
  position: relative;
  border-radius: 20px;
  min-height: 280px;
  background: url('https://images.unsplash.com/photo-1579783902614-a3fb3927b6a5?auto=format&fit=crop&q=80&w=1200') center/cover no-repeat;
  margin-bottom: 3rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 3rem;
  border: 1px solid var(--border-color);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 11, 13, 0.95) 30%, rgba(10, 11, 13, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero-tag {
  font-family: var(--font-serif);
  color: var(--accent-gold);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.hero-content h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #ffffff, #e2e8f0);
  -webkit-background-clip: text; /* fallback for Safari/Chrome */
  background-clip: text; /* standard property */
  -webkit-text-fill-color: transparent; /* fallback */
  color: transparent; /* standard */
}

.hero-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

/* GALLERY SECTION & ERA TABS */
.gallery-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.75rem;
}

.section-header h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text-primary);
  position: relative;
}

.section-header h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.85rem;
  width: 50px;
  height: 2px;
  background-color: var(--accent-gold);
}

.art-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Era Tabs Navigation */
.era-tabs-container {
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.era-tabs {
  display: flex;
  gap: 0.8rem;
  white-space: nowrap;
}

.era-tab {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.6rem 1.4rem;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.era-tab:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background-color: rgba(212, 175, 55, 0.05);
}

.era-tab.active {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #000;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

/* ARTWORK GRID */
.artwork-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  min-height: 300px;
}

/* ARTWORK CARD */
.artwork-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  position: relative;
  cursor: pointer;
}

.artwork-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(to bottom, var(--border-color), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.artwork-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow), var(--shadow-md);
}

/* Artwork image styling */
.artwork-img {
  width: auto;
  height: auto;
  max-height: 180px;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: auto;
}



/* Modal image styling */
.modal-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: auto;
}

.card-visual i {
  font-size: 3.5rem;
  color: rgba(212, 175, 55, 0.15);
  transition: var(--transition-smooth);
}

.artwork-card:hover .card-visual i {
  color: rgba(212, 175, 55, 0.35);
  transform: scale(1.1);
}

.card-era-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  font-size: 0.7rem;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* Card Content Details */
.card-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.card-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  /* Truncate text */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.card-artist {
  font-size: 0.9rem;
  color: var(--accent-gold-hover);
  font-weight: 500;
}

.card-meta-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.75rem;
  margin-top: auto;
}

.card-meta-row {
  display: flex;
  justify-content: space-between;
}

.card-meta-label {
  color: var(--text-muted);
}

.card-meta-val {
  font-weight: 400;
  text-align: right;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* SIDEBAR: DOCENT CHAT */
.docent-sidebar {
  order: 2;

  width: var(--sidebar-width);
  background-color: var(--bg-glass);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
}

/* Sidebar header */
.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.docent-avatar {
  width: 45px;
  height: 45px;
  background-color: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.25rem;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.docent-title-area h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-primary);
}

.status-online {
  font-size: 0.7rem;
  color: #48bb78;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 2px;
}

.status-online .dot {
  width: 6px;
  height: 6px;
  background-color: #48bb78;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.5; }
}

.close-sidebar-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.close-sidebar-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

/* Chat Messages */
.chat-messages {
  flex-grow: 1;
  padding: 0 1.5rem; /* removed top padding for no initial line gap */
  overflow: visible; /* allow tails to overflow */
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Chat wrapper – handles scrolling and provides bottom space for tails */
.chat-wrapper {
  flex-grow: 1;
  overflow-y: auto;
  overflow-x: visible; /* allow left tail to show */
  padding-bottom: 2rem; /* space for bubble tails */
  display: flex;
  flex-direction: column;
}

.message {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}

.message.ai {
  align-self: flex-start;
}

.message.user {
  align-self: flex-end;
}

/* Duplicate .message-content removed */


.message.ai .message-content {
  background-color: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-radius: 0.8rem;
  position: relative;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-left: 12px; /* space for left tail */
}
/* AI bubble tail */
.message.ai .message-content::after {
  content: '';
  position: absolute;
  top: 16px;
  left: -5px;
  width: 8px;
  height: 8px;
  background-color: var(--bg-secondary);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  transform: rotate(-45deg);
  display: block;
}

.message.user .message-content {
  background-color: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--accent-gold);
  color: var(--text-primary);
  border-radius: 0.8rem;
  position: relative;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-right: 12px; /* space for right tail */
}
/* User bubble tail */
.message.user .message-content::after {
  content: '';
  position: absolute;
  top: 16px;
  right: -5px;
  width: 8px;
  height: 8px;
  background-color: rgba(43, 38, 29, 1); /* Blended solid color to prevent double-transparency overlap */
  border-right: 1px solid var(--accent-gold);
  border-top: 1px solid var(--accent-gold);
  transform: rotate(45deg);
  display: block;
}

.message-content {
  overflow: visible;
  max-height: none;
  word-break: break-word;
  font-size: 0.85rem;
    line-height: 1.4;
    padding: 0.5rem 1rem;
    white-space: pre-line; /* collapse leading spaces */
    overflow-wrap: anywhere;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 4px 8px;
  align-items: center;
  justify-content: center;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background-color: var(--text-muted);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Quick Prompts */
.quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.quick-btn {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.quick-btn:hover {
  border-color: var(--border-hover);
  color: var(--accent-gold);
  background-color: rgba(212, 175, 55, 0.05);
}

/* Input Area */
.chat-input-area {
  padding: 1.2rem 1.5rem 1.8rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.chat-input-area textarea {
  flex-grow: 1;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-primary);
  padding: 0.65rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  resize: none;
  max-height: 100px;
  outline: none;
  transition: var(--transition-smooth);
}

.chat-input-area textarea:focus {
  border-color: var(--accent-gold);
}

#sendBtn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  border: none;
  color: #000;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
  transition: var(--transition-smooth);
}

#sendBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
  background-color: #e5c158;
}

/* ARTWORK DETAIL MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  position: relative;
  box-shadow: var(--shadow-glow), 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal-container {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background-color: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  min-height: 480px;
}

/* Modal Visual Section */
.modal-visual {
  background: linear-gradient(135deg, #16181c, #0a0b0d);
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  min-height: 300px;
}

.visual-placeholder {
  text-align: center;
}

.visual-placeholder i {
  font-size: 6rem;
  color: rgba(212, 175, 55, 0.15);
  animation: glow-pulse 3s infinite alternate;
}

@keyframes glow-pulse {
  from { filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.05)); }
  to { filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.35)); color: rgba(212, 175, 55, 0.25); }
}

/* Modal details section */
.modal-details {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-era {
  font-family: var(--font-serif);
  color: var(--accent-gold);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.modal-original-title {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: -0.1rem;
  margin-bottom: 1rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.modal-artist-year {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-artist-year .separator {
  color: var(--text-muted);
}

/* Technical Specs Table */
.details-table {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.2rem;
}

.table-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.table-row .label {
  color: var(--text-muted);
}

.table-row .value {
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
  max-width: 250px;
}

/* Description Section in Modal */
.modal-description-section {
  margin-bottom: 2.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.2rem;
}

.description-heading {
  font-family: var(--font-serif);
  color: var(--accent-gold);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.description-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: justify;
  white-space: pre-line;
}

/* Interactive Docent Box */
.modal-docent-box {
  background-color: rgba(212, 175, 55, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.modal-docent-box h5 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.modal-docent-box p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.ask-docent-specific-btn {
  background-color: transparent;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 0.6rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.ask-docent-specific-btn:hover {
  background-color: var(--accent-gold);
  color: #000;
}

/* FOOTER */
.museum-footer {
  margin-top: 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-note {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: rgba(212, 175, 55, 0.4);
}

/* LOADER & EMPTY */
.loader, .empty-results {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  color: var(--text-muted);
  gap: 1rem;
}

.loader i {
  font-size: 2.5rem;
  color: var(--accent-gold);
}

.empty-results i {
  font-size: 3rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .app-container {
    flex-direction: column;
    overflow-y: auto;
    height: auto;
  }
  
  .docent-sidebar {
    width: 100%;
    height: 480px;
    border-left: none;
    border-top: 1px solid var(--border-color);
    position: sticky;
    bottom: 0;
  }
  
  .main-content {
    height: auto;
    overflow-y: visible;
  }
}

@media (max-width: 768px) {
  .modal-body {
    grid-template-columns: 1fr;
  }
  
  .modal-visual {
    min-height: 200px;
  }
  
  .modal-details {
    padding: 1.5rem;
    /* Center align description text */
    #modalDescription {
        text-align: center;
    }
  }
  
  .museum-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .header-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-box {
    width: 100%;
  }
  
  .museum-hero {
    padding: 1.5rem;
    height: auto;
    min-height: 200px;
  }
  
  .hero-content h2 {
    font-size: 1.8rem;
  }
}

/* Hidden sidebar class for desktop toggle */
.docent-sidebar.hidden {
  width: 0;
  overflow: hidden;
  border-left: none;
}
.docent-sidebar.hidden * {
  display: none;
}
