/* =========================================================
   Ethereal Atoll — Design System Component Classes
   ========================================================= */

/* --- Base --- */
body {
  font-family: 'Manrope', sans-serif;
  color: #181c1c;
}

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

/* --- Cards (No-Line Rule: bg shifts, no borders) --- */
.ea-card {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0px 12px 32px rgba(24, 28, 28, 0.06);
  padding: 1.5rem;
}

.ea-card-flush {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0px 12px 32px rgba(24, 28, 28, 0.06);
  overflow: hidden;
}

.ea-glass {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1rem;
  box-shadow: 0px 8px 24px rgba(24, 28, 28, 0.08);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- Buttons --- */
.ea-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 85%, transparent));
  color: #ffffff;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  transition: all 400ms ease-out;
  border: none;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.ea-btn-primary:hover {
  box-shadow: 0px 16px 48px rgba(24, 28, 28, 0.10);
  opacity: 0.92;
}

.ea-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #ffffff;
  color: var(--color-primary);
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(189, 201, 202, 0.3);
  transition: all 400ms ease-out;
  cursor: pointer;
  text-decoration: none;
}
.ea-btn-secondary:hover {
  background: #f1f4f3;
}

.ea-btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #ba1a1a;
  color: #ffffff;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  transition: all 400ms ease-out;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.ea-btn-danger:hover {
  opacity: 0.9;
}

.ea-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--color-primary);
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  border: none;
  transition: all 400ms ease-out;
  cursor: pointer;
  text-decoration: none;
}
.ea-btn-ghost:hover {
  background: color-mix(in srgb, var(--color-primary) 5%, transparent);
}

/* --- Form Inputs --- */
.ea-input {
  width: 100%;
  border-radius: 0.5rem;
  background: #f1f4f3;
  border: 2px solid transparent;
  padding: 0.75rem 1rem;
  color: #181c1c;
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  transition: all 400ms ease-out;
}
.ea-input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--color-primary) 40%, transparent);
  background: #ffffff;
}
.ea-input::placeholder {
  color: rgba(62, 73, 74, 0.5);
}

.ea-select {
  width: 100%;
  border-radius: 0.5rem;
  background: #f1f4f3;
  border: 2px solid transparent;
  padding: 0.75rem 1rem;
  color: #181c1c;
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  transition: all 400ms ease-out;
  appearance: auto;
}
.ea-select:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--color-primary) 40%, transparent);
  background: #ffffff;
}

.ea-label {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #3e494a;
  margin-bottom: 0.375rem;
}

.ea-checkbox {
  accent-color: var(--color-primary);
  border-radius: 0.25rem;
}

/* --- Tables (Ghost borders at 15% opacity) --- */
.ea-table {
  width: 100%;
}
.ea-table thead {
  background: #f1f4f3;
}
.ea-table th {
  padding: 0.75rem 1.25rem;
  text-align: left;
  font-family: 'Manrope', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #3e494a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ea-table td {
  padding: 0.875rem 1.25rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  color: #181c1c;
}
.ea-table tbody tr {
  border-bottom: 1px solid rgba(189, 201, 202, 0.15);
  transition: background 400ms ease-out;
}
.ea-table tbody tr:hover {
  background: #f7faf9;
}
.ea-table tbody tr:last-child {
  border-bottom: none;
}

/* --- Status Badges --- */
.ea-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.ea-badge-confirmed {
  background: rgba(150, 241, 252, 0.3);
  color: var(--color-primary);
}
.ea-badge-pending {
  background: #fdd39e;
  color: #785a2e;
}
.ea-badge-error {
  background: #ffdad6;
  color: #ba1a1a;
}
.ea-badge-neutral {
  background: #e6e9e8;
  color: #3e494a;
}
.ea-badge-success {
  background: rgba(150, 241, 252, 0.3);
  color: var(--color-primary);
}

/* --- Typography --- */
.ea-h1 {
  font-family: 'Noto Serif', serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: #181c1c;
  letter-spacing: -0.02em;
}
.ea-h2 {
  font-family: 'Noto Serif', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #181c1c;
}
.ea-h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #181c1c;
}

/* --- Flash Messages --- */
.ea-flash-success {
  background: rgba(150, 241, 252, 0.2);
  color: var(--color-primary);
  border-radius: 0.75rem;
  padding: 1rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
}
.ea-flash-error {
  background: #ffdad6;
  color: #ba1a1a;
  border-radius: 0.75rem;
  padding: 1rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
}

/* --- Navigation (Admin Sidebar) --- */
.ea-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #3e494a;
  border-radius: 0.75rem;
  transition: all 300ms ease-out;
  text-decoration: none;
}
.ea-nav-item:hover {
  background: color-mix(in srgb, var(--color-primary) 6%, transparent);
  color: var(--color-primary);
  transform: translateX(2px);
}

.ea-nav-item-active {
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
  color: var(--color-primary);
  font-weight: 600;
}

.ea-nav-section {
  padding: 0 0.75rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  color: rgba(62, 73, 74, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* --- Utilities --- */
.glass-panel {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-gradient {
  background: linear-gradient(180deg, rgba(24, 28, 28, 0.3) 0%, rgba(24, 28, 28, 0) 40%, rgba(24, 28, 28, 0.2) 100%);
}

.sunlight-shadow {
  box-shadow: 0px 12px 32px rgba(24, 28, 28, 0.06);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background: rgba(150, 241, 252, 0.4);
  color: #001f23;
}

/* ── Booking Widget: Calendar Date Picker ── */

.ea-label-widget {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.ea-date-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  background: #ffffff;
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  color: #181c1c;
  box-shadow: 0 1px 3px rgba(24, 28, 28, 0.06);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 300ms ease-out;
  text-align: left;
}
.ea-date-trigger:hover {
  border-color: color-mix(in srgb, var(--color-primary) 20%, transparent);
}
.ea-date-trigger--active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}

.ea-promo-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  color: var(--color-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-align: left;
  transition: opacity 300ms ease-out;
}
.ea-promo-trigger:hover {
  text-decoration: underline;
}

.ea-btn-find-room {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-container));
  color: #ffffff;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.625rem 2rem;
  border-radius: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0px 12px 32px rgba(24, 28, 28, 0.10);
  transition: all 400ms ease-out;
}
.ea-btn-find-room:hover {
  opacity: 0.92;
  box-shadow: 0px 16px 48px rgba(24, 28, 28, 0.14);
}
@media (min-width: 1024px) {
  .ea-btn-find-room {
    width: auto;
  }
}

/* Calendar navigation */
.ea-cal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: transparent;
  border: none;
  color: #3e494a;
  cursor: pointer;
  transition: background 300ms ease-out;
}
.ea-cal-nav:hover {
  background: #f1f4f3;
}

/* Calendar weekday headers */
.ea-cal-weekday {
  padding: 0.5rem 0;
  text-align: center;
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #3e494a;
}
.ea-cal-weekday--weekend {
  color: #9a3509;
}

/* Calendar day cells */
.ea-cal-day {
  position: relative;
  text-align: center;
  padding: 0.625rem 0.25rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: all 200ms ease-out;
  color: #181c1c;
}
.ea-cal-day:hover {
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
}

.ea-cal-day--disabled {
  opacity: 0.25;
  cursor: not-allowed;
}
.ea-cal-day--disabled:hover {
  background: transparent;
}

.ea-cal-day--today {
  font-weight: 700;
}

.ea-cal-day--single {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-container));
  color: #ffffff;
  font-weight: 600;
  border-radius: 0.5rem;
}
.ea-cal-day--single:hover {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-container));
  opacity: 0.92;
}

.ea-cal-day--start {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-container));
  color: #ffffff;
  font-weight: 600;
  border-radius: 0.5rem 0 0 0.5rem;
}
.ea-cal-day--start:hover {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-container));
  opacity: 0.92;
}

.ea-cal-day--end {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-container));
  color: #ffffff;
  font-weight: 600;
  border-radius: 0 0.5rem 0.5rem 0;
}
.ea-cal-day--end:hover {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-container));
  opacity: 0.92;
}

.ea-cal-day--in-range {
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
  color: var(--color-primary);
  border-radius: 0;
}
.ea-cal-day--in-range:hover {
  background: color-mix(in srgb, var(--color-primary) 14%, transparent);
}

/* Availability indicators (small dot under day number) */
.ea-cal-day--available::after {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #2e7d32;
  margin: 2px auto 0;
}
.ea-cal-day--sold-out::after {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ba1a1a;
  margin: 2px auto 0;
}
.ea-cal-day--sold-out {
  opacity: 0.5;
}
/* Hide dots on selected days (white text would clash) */
.ea-cal-day--start::after,
.ea-cal-day--end::after,
.ea-cal-day--single::after,
.ea-cal-day--in-range::after {
  display: none;
}

/* =========================================================
   BR-H005: Template Variants (CSS-only theming)
   template-default = current styles (no overrides needed)
   ========================================================= */

/* --- MODERN: Sharper corners, sans-serif emphasis, more contrast, tighter spacing --- */
body.template-modern .ea-card,
body.template-modern .ea-card-flush {
  border-radius: 0.375rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
body.template-modern .ea-glass {
  border-radius: 0.375rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
body.template-modern .ea-btn-primary,
body.template-modern .ea-btn-find-room {
  border-radius: 0.25rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}
body.template-modern .ea-btn-secondary,
body.template-modern .ea-btn-ghost {
  border-radius: 0.25rem;
}
body.template-modern .ea-input,
body.template-modern .ea-select {
  border-radius: 0.25rem;
  border-width: 1px;
}
body.template-modern .ea-badge {
  border-radius: 0.25rem;
}
body.template-modern .ea-flash-success,
body.template-modern .ea-flash-error {
  border-radius: 0.375rem;
}
body.template-modern .ea-h1 {
  font-family: 'Manrope', sans-serif;
  letter-spacing: -0.03em;
  font-weight: 800;
}
body.template-modern .ea-h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
}
body.template-modern .ea-date-trigger {
  border-radius: 0.25rem;
}
body.template-modern .ea-cal-day {
  border-radius: 0.25rem;
}
body.template-modern .ea-cal-day--start {
  border-radius: 0.25rem 0 0 0.25rem;
}
body.template-modern .ea-cal-day--end {
  border-radius: 0 0.25rem 0.25rem 0;
}

/* --- MINIMAL: No shadows, flatter cards, more whitespace, muted, thin borders --- */
body.template-minimal .ea-card {
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
  padding: 2rem;
}
body.template-minimal .ea-card-flush {
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
}
body.template-minimal .ea-glass {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0.5rem;
  padding: 2rem;
}
body.template-minimal .ea-btn-primary,
body.template-minimal .ea-btn-find-room {
  background: var(--color-primary, #006068);
  box-shadow: none;
  border-radius: 0.375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
body.template-minimal .ea-btn-primary:hover,
body.template-minimal .ea-btn-find-room:hover {
  box-shadow: none;
  opacity: 0.88;
}
body.template-minimal .ea-btn-secondary {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: none;
  border-radius: 0.375rem;
}
body.template-minimal .ea-input,
body.template-minimal .ea-select {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.375rem;
}
body.template-minimal .ea-input:focus,
body.template-minimal .ea-select:focus {
  border-color: var(--color-primary, #006068);
}
body.template-minimal .ea-badge {
  border-radius: 0.25rem;
  font-weight: 600;
}
body.template-minimal .ea-flash-success,
body.template-minimal .ea-flash-error {
  border-radius: 0.375rem;
  border: 1px solid currentColor;
  border-color: rgba(0, 0, 0, 0.08);
}
body.template-minimal .ea-table tbody tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
body.template-minimal .ea-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}
body.template-minimal .sunlight-shadow {
  box-shadow: none;
}

/* --- TROPICAL: Warmer accents, rounded everything, relaxed spacing, nature feel --- */
body.template-tropical .ea-card {
  border-radius: 1.25rem;
  box-shadow: 0 8px 30px rgba(34, 68, 58, 0.08);
  padding: 1.75rem;
}
body.template-tropical .ea-card-flush {
  border-radius: 1.25rem;
  box-shadow: 0 8px 30px rgba(34, 68, 58, 0.08);
}
body.template-tropical .ea-glass {
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 30px rgba(34, 68, 58, 0.08);
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
body.template-tropical .ea-btn-primary,
body.template-tropical .ea-btn-find-room {
  border-radius: 9999px;
  padding-left: 2rem;
  padding-right: 2rem;
  letter-spacing: 0.06em;
}
body.template-tropical .ea-btn-secondary,
body.template-tropical .ea-btn-ghost {
  border-radius: 9999px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
body.template-tropical .ea-input,
body.template-tropical .ea-select {
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(34, 68, 58, 0.1);
}
body.template-tropical .ea-input:focus,
body.template-tropical .ea-select:focus {
  border-color: rgba(34, 68, 58, 0.3);
  background: #ffffff;
}
body.template-tropical .ea-badge {
  border-radius: 9999px;
}
body.template-tropical .ea-flash-success,
body.template-tropical .ea-flash-error {
  border-radius: 1rem;
}
body.template-tropical .ea-h1 {
  letter-spacing: -0.01em;
}
body.template-tropical .ea-date-trigger {
  border-radius: 0.75rem;
}
body.template-tropical .ea-cal-day {
  border-radius: 0.75rem;
}
body.template-tropical .ea-cal-day--start {
  border-radius: 0.75rem 0 0 0.75rem;
}
body.template-tropical .ea-cal-day--end {
  border-radius: 0 0.75rem 0.75rem 0;
}
body.template-tropical .ea-cal-day--single {
  border-radius: 0.75rem;
}
body.template-tropical .sunlight-shadow {
  box-shadow: 0 8px 30px rgba(34, 68, 58, 0.08);
}
