/* Phase 1 theme foundation: color system, typography, spacing, and common controls */
:root {
  --color-bg: #f3f5f9;
  --color-surface: #ffffff;
  --color-surface-soft: #f8fafc;
  --color-text: #111827;
  --color-text-muted: #5f6b7a;
  --color-border: #e5eaf2;

  --color-brand-900: #0f1a33;
  --color-brand-700: #1f3570;
  --color-accent: #f59e0b;
  --color-accent-soft: #fef3c7;

  --color-success: #16a34a;
  --color-info: #2563eb;
  --color-danger: #dc2626;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;

  --shadow-soft: 0 8px 22px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 10px 28px rgba(15, 23, 42, 0.14);
}

* {
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: Arial, "Noto Sans Sinhala", "Noto Sans Tamil", "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: 0.01em;
}

.small,
.text-muted {
  color: var(--color-text-muted) !important;
}

.card,
.menu-card,
.promo-card,
.modal-content,
.dropdown-menu {
  border-radius: var(--radius-lg);
}

.menu-card,
.modal-content,
.dropdown-menu {
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.btn-primary,
.btn-dark {
  box-shadow: var(--shadow-soft);
}

.btn-primary {
  background-color: var(--color-brand-700);
  border-color: var(--color-brand-700);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--color-brand-900);
  border-color: var(--color-brand-900);
}

.btn-success {
  background-color: var(--color-success);
  border-color: var(--color-success);
}

.btn-outline-secondary {
  border-color: #cfd7e4;
  color: #4b5563;
}

.btn-outline-secondary:hover {
  background: #eef2f7;
  border-color: #c4ccda;
  color: #1f2937;
}

::selection {
  background: #dbeafe;
  color: #0f172a;
}

body.has-fixed-footer {
  padding-bottom: 92px;
}

.fixed-action-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2100;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #d9dee8;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
}

.footer-action-btn {
  border: 0;
  border-right: 1px solid #e6eaf2;
  background: transparent;
  color: #1f2937;
  text-decoration: none;
  min-height: 64px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 600;
}

.footer-action-btn:last-child {
  border-right: 0;
}

.footer-action-btn i {
  font-size: 1.12rem;
  line-height: 1;
}

.footer-action-btn:hover {
  background: #f7f9fe;
  color: #111827;
}

.footer-action-btn:disabled {
  opacity: 0.4;
}

.hotel-gallery-modal-dialog .modal-content {
  border-radius: 20px;
}

.hotel-gallery-carousel {
  position: relative;
}

.hotel-gallery-inner {
  background: #0f172a;
  border: 1px solid #dfe6f1;
}

.hotel-gallery-image {
  height: min(62vh, 420px);
  object-fit: contain;
}

.hotel-gallery-indicators {
  margin-bottom: 10px;
}

.hotel-gallery-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
}

.hotel-gallery-indicators .active {
  background: #ffffff;
}

.hotel-gallery-control {
  width: 12%;
}

.hotel-gallery-control .carousel-control-prev-icon,
.hotel-gallery-control .carousel-control-next-icon {
  background-color: rgba(17, 24, 39, 0.46);
  border-radius: 999px;
  background-size: 55% 55%;
}

.hotel-gallery-thumbs {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(62px, 1fr));
  gap: 8px;
}

.hotel-gallery-thumb {
  border: 2px solid transparent;
  background: #ffffff;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  opacity: 0.78;
}

.hotel-gallery-thumb.active,
.hotel-gallery-thumb:hover {
  border-color: #2563eb;
  opacity: 1;
}

.hotel-gallery-thumb img {
  width: 100%;
  height: 56px;
  object-fit: cover;
  display: block;
}

@media (max-width: 575px) {
  .hotel-gallery-image {
    height: 48vh;
  }

  .hotel-gallery-thumb img {
    height: 50px;
  }
}
