/* ---------- Tokens ---------- */
:root {
  --color-bg: #f7f7f7;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #717171;
  --color-border: #e0e0e0;
  --color-border-strong: #b0b0b0;

  --color-accent: #053E5C;
  --color-accent-hover: #032e45;

  --color-gold: #b7791f;
  --color-gold-bg: #fefce8;
  --color-gold-border: #fde68a;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.acc-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Back to home link ---------- */
.back-to-home {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 50;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 8px 18px;
  transition: background .15s ease;
}
.back-to-home:hover {
  background: var(--color-border);
}

/* ---------- Header ---------- */
.acc-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 49;
}
#accBackdrop { z-index: 45; }
.acc-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  height: 120px;
}
.acc-brand {
  position: absolute;
  left: 24px;
}
.acc-logo { height: 120px; width: auto; object-fit: contain; }
.acc-header .search-bar {
  margin: 0 0 0 auto;
  width: 880px;
  flex-shrink: 0;
}

/* ---------- Main ---------- */
.acc-main { padding: 36px 0 120px; }
.acc-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.acc-page-header h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.acc-page-sub {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
}
.acc-sort {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23717171' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.acc-sort:hover { border-color: var(--color-text); }

/* ---------- Sections ---------- */
.acc-section { margin-bottom: 40px; }
.acc-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  margin-bottom: 28px;
}
.acc-section:first-of-type .acc-section-header { margin-top: 0; }

.acc-section-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--color-text);
}
.acc-section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* ---------- Grid ---------- */
.acc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* ---------- Card ---------- */
.acc-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow .2s ease, border-color .15s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.acc-card:hover {
  box-shadow: var(--shadow-md);
}
.acc-card.is-selected {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}
.acc-card[data-id="lakeside"] {
  border-color: var(--color-gold-border);
  background: linear-gradient(160deg, #fffdf5 0%, #ffffff 50%);
  box-shadow: 0 4px 28px rgba(180, 130, 0, 0.25), 0 1px 3px rgba(0,0,0,0.06);
}
.acc-card[data-id="lakeside"]:hover {
  box-shadow: 0 8px 40px rgba(180, 130, 0, 0.38), 0 2px 8px rgba(0,0,0,0.06);
}
.acc-card[data-id="lakeside"].is-selected {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}
.acc-card.is-selected .acc-select-btn {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* ---------- Card image ---------- */
.acc-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  cursor: zoom-in;
}
.acc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .2s ease;
}
.acc-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--color-text-muted);
  background: var(--color-surface);
}

.acc-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--color-gold-bg);
  color: var(--color-gold);
  border: 1px solid var(--color-gold-border);
  pointer-events: none;
}

/* ---------- Carousel ---------- */
.acc-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.92);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  opacity: 0;
  transition: opacity .15s ease, background .15s ease;
  z-index: 2;
}
.acc-carousel-prev { left: 10px; }
.acc-carousel-next { right: 10px; }
.acc-img-wrap:hover .acc-carousel-btn { opacity: 1; }
.acc-carousel-btn:hover { background: #fff; }

.acc-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}
.acc-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.55);
  padding: 0;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.acc-carousel-dot.is-active {
  background: #fff;
  transform: scale(1.25);
}

/* ---------- Lightbox ---------- */
.acc-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.acc-lightbox[hidden] { display: none; }
.acc-lightbox-img {
  max-width: calc(100vw - 120px);
  max-height: calc(100vh - 80px);
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.acc-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.acc-lightbox-close:hover { background: rgba(255,255,255,0.22); }
.acc-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.acc-lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.acc-lightbox-prev { left: 20px; }
.acc-lightbox-next { right: 20px; }
.acc-lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-weight: 500;
}

.acc-fav { display: none; }

/* ---------- Card body ---------- */
.acc-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.acc-amenities { margin-bottom: 14px; }
.acc-description { font-size: 14px; color: var(--color-text-muted); margin-bottom: 14px; line-height: 1.5; }
.acc-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}
.acc-card-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}
.acc-price { text-align: right; white-space: nowrap; }
.acc-price strong { font-size: 15px; font-weight: 700; }
.acc-price span {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-left: 2px;
}
.acc-card-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0 0 12px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.acc-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.acc-amenity {
  font-size: 12px;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 2px 9px;
}

/* ---------- Card actions ---------- */
.acc-card-actions {
  display: flex;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}
.acc-details-wrap { margin-right: auto; }
.acc-details-btn {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: underline;
}
.acc-details-btn:hover { color: var(--color-text); }
.acc-select-btn {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.acc-select-btn:hover { border-color: var(--color-text); }

/* ---------- Bottom bar ---------- */
.acc-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 16px rgba(0,0,0,0.06);
  z-index: 30;
}
.acc-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.acc-bottom-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}
#bottomTotal { color: var(--color-text-muted); font-weight: 500; }
.acc-continue-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  transition: background .15s ease;
}
.acc-continue-btn:hover { background: var(--color-accent-hover); }

/* ---------- Choose overlay ---------- */
.choose-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 60;
  animation: fade-in .2s ease;
}
.choose-modal {
  position: fixed;
  inset: 0;
  z-index: 61;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
}
.choose-modal[hidden] { display: none; }
.choose-backdrop[hidden] { display: none; }
.choose-modal-inner {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  width: 100%;
  max-width: 680px;
  pointer-events: all;
  animation: choose-in .2s ease;
}
@keyframes choose-in {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.choose-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 4px;
}
.choose-summary-item {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 3px 12px 3px 4px;
  font-size: 13px;
  font-weight: 500;
}
.choose-summary-img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}
.choose-summary-meta {
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: right;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.choose-heading {
  text-align: center;
  margin-bottom: 24px;
}
.choose-heading h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
.choose-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.choose-card {
  position: relative;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  color: var(--color-text);
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: box-shadow .2s ease, border-color .15s ease, transform .15s ease;
}
.choose-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-accent);
}
.choose-card--recommended {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent), 0 4px 20px rgba(5,62,92,0.12);
}
.choose-card--recommended:hover {
  box-shadow: 0 0 0 1px var(--color-accent), 0 8px 28px rgba(5,62,92,0.2);
}
.choose-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--color-accent);
  color: #fff;
}
.choose-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: #eef2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: 2px;
}
.choose-card-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}
.choose-card-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
  flex: 1;
}
.choose-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  margin-top: 4px;
}
.choose-card:not(.choose-card--recommended) .choose-card-cta {
  color: var(--color-text-muted);
}

/* ---------- Loading ---------- */
.acc-loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
  font-size: 16px;
}
.acc-loading::after {
  content: '...';
  animation: dots 1.5s infinite;
}
@keyframes dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

/* ---------- No results ---------- */
.acc-none {
  text-align: center;
  padding: 80px 20px;
  color: var(--color-text-muted);
  font-size: 16px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Event modal ---------- */
.acc-event-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10001;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-width: 420px;
  width: 90%;
  padding: 28px;
}
.acc-event-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.acc-event-modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--color-accent);
}
.acc-event-modal-x {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #999;
  padding: 0;
  line-height: 1;
}
.acc-event-modal-inner p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0 0 16px;
}
.acc-event-modal-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}
.acc-event-modal-field input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-sans);
}
.acc-event-modal-error {
  color: #dc3545;
  font-size: 13px;
  margin-top: 6px;
}
.acc-event-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

/* ---------- Capacity modal ---------- */
#capBackdrop, #eventBackdrop, #eventWarningBackdrop, #errorBackdrop { z-index: 51; }
.acc-cap-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10001;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-width: 420px;
  width: 90%;
  padding: 28px;
}
.acc-cap-modal-inner h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--color-accent);
}
.acc-cap-modal-inner p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0 0 16px;
}
.acc-cap-modal-actions {
  display: flex;
  justify-content: flex-end;
}

/* ---------- Capacity warning ---------- */
.acc-capacity-warning {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #6d4c00;
  line-height: 1.5;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .acc-header { position: static; }
  .acc-header-inner { height: auto; flex-direction: column; padding: 4px 16px 20px; gap: 2px; }
  .acc-brand { position: static; }
  .acc-logo { height: 135px; }
  .acc-header .search-bar { width: 100%; max-width: 600px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .acc-search-summary { display: none; }
  .acc-grid { grid-template-columns: 1fr; }
  .acc-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .acc-page-header h1 { font-size: 20px; }
  .acc-sort { width: 67.5%; }
  .acc-main { padding: 24px 0 100px; }
  .acc-img-wrap { height: 180px; }
  .acc-card-body { padding: 14px; }
  .acc-card-title { font-size: 14px; }
  .acc-price strong { font-size: 14px; }
  .acc-bottom-inner { height: 64px; padding: 0 16px; }
  .acc-bottom-info { font-size: 13px; gap: 6px; }
  .acc-continue-btn { padding: 10px 18px; font-size: 13px; }
  .acc-section-header { margin-top: 32px; margin-bottom: 20px; }
  .acc-section-title { font-size: 16px; }
  .acc-carousel-btn { opacity: 1; width: 28px; height: 28px; }
  .acc-event-modal, .acc-cap-modal {
    max-width: 90%;
    width: 100%;
    padding: 24px 20px;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 80vh;
    overflow-y: auto;
    animation: slide-up .25s ease;
  }
  .choose-modal { padding: 16px 16px 0; align-items: flex-end; }
  .choose-modal-inner {
    padding: 28px 24px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .choose-cards { grid-template-columns: 1fr; gap: 12px; }
  .choose-heading h2 { font-size: 18px; }
  .choose-summary { font-size: 12px; }
  .acc-lightbox-img { max-width: calc(100vw - 16px); max-height: calc(100vh - 40px); }
  .acc-lightbox-nav { width: 36px; height: 36px; }
  .acc-lightbox-prev { left: 8px; }
  .acc-lightbox-next { right: 8px; }
  .acc-lightbox-close { top: 8px; right: 8px; width: 36px; height: 36px; }
}
@media (max-width: 420px) {
  .acc-img-wrap { height: 160px; }
  .acc-bottom-inner { height: 56px; }
}

/* ---------- Event welcome ---------- */
.event-welcome {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: #053E5C;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
  text-transform: none;
}
.event-welcome[hidden] { display: none; }
.event-banner::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23053E5C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 2v2M6 2v2M2 7h20M4 6h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
