@import './tabs-layout.css';
@import './splash-idle.css';
@import '../features/photo-lightbox.css';

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500;1,600&family=IBM+Plex+Sans:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* Brand tagline — A Place To Stay */
.apts-brand-tagline {
  font-family: 'IBM Plex Sans', Inter, system-ui, sans-serif;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: none;
  color: #D4A017;
  line-height: 1.2;
}

:root {
  --color-primary: #1A365D;
  --color-secondary: #A81D23;
  --color-tertiary: #F8FAFC;
  --color-neutral: #4A5568;
  --color-primary-container: #2C5282;
  --color-surface: #FFFFFF;
  --color-background: #F8FAFC;
  --color-outline-variant: #CBD5E0;
  /* Project breakpoints (documented; media queries use these widths) */
  --bp-mobile-max: 767px;
  --bp-tablet-min: 768px;
  --bp-tablet-max: 1024px;
  --bp-desktop-min: 1025px;
}

/* Defensive: padding/borders must not expand past declared widths */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: Inter, sans-serif;
  background-color: var(--color-background);
  overflow-x: hidden;
  max-width: 100vw;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

.gantt-container {
  display: grid;
  grid-template-columns: 280px 1fr;
}

.gantt-grid {
  display: grid !important;
  grid-template-columns: repeat(var(--timeline-days, 31), 80px);
  width: max-content;
  min-width: calc(var(--timeline-days, 31) * 80px);
  box-sizing: border-box;
  align-items: center;
}

.gantt-grid > *:not(.gantt-today-line) {
  min-width: 80px;
  box-sizing: border-box;
}

.gantt-today-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  min-width: 0;
  max-width: 2px;
  background: rgba(26, 54, 93, 0.25);
  left: calc((var(--today-col, 1) - 1) * 80px + 39px);
  pointer-events: none;
  z-index: 1;
}

.gantt-booking-bar {
  min-height: 64px;
  padding: 0.5rem 0;
  box-sizing: border-box;
}

.timeline-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
}

.timeline-scroll > .gantt-grid {
  flex: none;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c3c6d7; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #737686; }

.status-pill-approved { background-color: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.status-pill-pending { background-color: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.status-pill-maintenance { background-color: #FED7D7; color: #A81D23; border: 1px solid #FC8181; }
.status-pill-reserved { background-color: #EBF8FF; color: #1A365D; border: 1px solid #BEE3F8; }
.status-pill-occupied { background-color: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.status-pill-available { background-color: #f8fafc; color: #475569; border: 1px solid #e2e8f0; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.drawer-transition {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-transition {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#app-modal:not(.hidden) .modal-transition {
  animation: modal-enter 0.2s ease forwards;
}

@keyframes modal-enter {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

[data-tab-content].hidden,
[data-drawer-panel].hidden { display: none; }

.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.error-banner {
  background: #ffdad6;
  color: #93000a;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
}
