/* ============================================================
   assets/amenities.css — Amenities page specific styles
   Uses tokens from assets/style.css only.
   ============================================================ */

/* ----- BREADCRUMB (self-contained, same look as rooms page) ----- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  padding: 0;
  margin: 0;
  list-style: none;
}
.breadcrumb__item { display: flex; align-items: center; gap: 8px; }
.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: rgba(255, 255, 255, 0.5);
}
.breadcrumb__link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumb__link:hover, .breadcrumb__link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}
.breadcrumb__current { color: #ffffff; font-weight: 500; }

/* ----- HERO BANNER ----- */
.amenities-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 400px;
  background:
    linear-gradient(135deg, rgba(31, 58, 95, 0.80), rgba(31, 58, 95, 0.55)),
    url('https://images.unsplash.com/photo-1564501049412-61c2a3083791?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80')
      center / cover no-repeat;
  color: #ffffff;
  overflow: hidden;
}
.amenities-hero__inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 140px 24px 48px;
}
.amenities-hero__title {
  color: #ffffff;
  margin-bottom: 12px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
}
.amenities-hero__subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 24px;
}

/* ----- INTRO + QUICK JUMP ----- */
.amenities-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}
.amenities-intro__text {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.quick-jump {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.quick-jump__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
  background: transparent;
  border: 2px solid var(--brand);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease,
              box-shadow 0.2s ease;
}
.quick-jump__link:hover, .quick-jump__link:focus-visible {
  background: var(--brand);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ----- FEATURE ROWS ----- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature-row + .feature-row {
  margin-top: var(--section-pad-desktop);
}
.feature-row--reverse .feature-row__media { order: 2; }
.feature-row--reverse .feature-row__content { order: 1; }

.feature-row__media {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e4e8ee;
  box-shadow: var(--shadow-sm);
}
.feature-row__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.feature-row__media:hover .feature-row__image { transform: scale(1.03); }

.feature-row__content { min-width: 0; }
.feature-row__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--brand);
  margin-bottom: 16px;
}
.feature-row__text {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.feature-row__list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-row__list-item {
  position: relative;
  padding-left: 28px;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}
.feature-row__list-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px var(--surface);
  border: 1px solid var(--accent);
}

/* scroll anchor offset for sticky header */
.feature-row[id],
.hours-card[id] {
  scroll-margin-top: 96px;
}

/* ----- AMENITIES GRID ----- */
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.amenity {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 28px 20px;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.amenity:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.amenity__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--accent);
}
.amenity__icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.amenity__name {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand);
  line-height: 1.35;
}

/* ----- COMPARISON TABLE ----- */
.comparison__wrapper {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.comparison__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.95rem;
}
.comparison__table th,
.comparison__table td {
  padding: 16px 20px;
  text-align: center;
  border-bottom: 1px solid #e8ebf0;
  vertical-align: middle;
}
.comparison__table thead th {
  background: var(--brand);
  color: #ffffff;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.comparison__table thead th:first-child {
  text-align: left;
  border-top-left-radius: 12px;
}
.comparison__table thead th:last-child {
  border-top-right-radius: 12px;
}
.comparison__table tbody th {
  text-align: left;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  white-space: nowrap;
  position: sticky;
  left: 0;
  z-index: 1;
  border-right: 1px solid #e8ebf0;
}
.comparison__table tbody tr:nth-child(even) th,
.comparison__table tbody tr:nth-child(even) td {
  background: var(--bg);
}
.comparison__table tbody tr:last-child th,
.comparison__table tbody tr:last-child td {
  border-bottom: none;
}

.comparison__check {
  display: inline-block;
  width: 22px;
  height: 22px;
  stroke: var(--success);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.comparison__dash {
  color: var(--muted);
  font-weight: 500;
  font-size: 1.1rem;
}

/* ----- HOURS CARD ----- */
.hours-card {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 40px;
  max-width: 820px;
  margin: 0 auto;
}
.hours-card__header {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eef1f5;
}
.hours-card__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--brand);
  margin-bottom: 6px;
}
.hours-card__subtitle {
  color: var(--muted);
  font-size: 0.9rem;
}
.hours-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 40px;
}
.hours-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed #e8ebf0;
  font-size: 0.95rem;
}
.hours-card__label {
  color: var(--text);
  font-weight: 500;
}
.hours-card__value {
  color: var(--brand);
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}
.hours-card__note {
  margin-top: 20px;
  padding: 14px 18px;
  background: rgba(201, 162, 39, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

/* ----- FAQ ACCORDION ----- */
.faq {
  max-width: 820px;
  margin: 0 auto;
}
.faq__item {
  background: var(--surface);
  border: 1px solid #e8ebf0;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq__item[open] {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.faq__question {
  padding: 20px 24px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.2s ease;
}
.faq__question:hover { background: rgba(31, 58, 95, 0.03); }
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq__item[open] .faq__question::after {
  content: "−";
  transform: rotate(180deg);
}
.faq__answer {
  padding: 0 24px 20px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ----- CTA BAND ----- */
.amenities-cta {
  background: linear-gradient(135deg, var(--brand), var(--brand-light, #34598a));
  color: #ffffff;
  padding: 64px 24px;
  text-align: center;
}
.amenities-cta__inner {
  max-width: 720px;
  margin: 0 auto;
}
.amenities-cta__title {
  color: #ffffff;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  margin-bottom: 14px;
}
.amenities-cta__text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
}
.amenities-cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.amenities-cta__actions .btn--outline {
  color: #ffffff;
  border-color: #ffffff;
}
.amenities-cta__actions .btn--outline:hover,
.amenities-cta__actions .btn--outline:focus-visible {
  background: #ffffff;
  color: var(--brand);
}

/* ----- RESPONSIVE ----- */
@media (max-width: 1024px) {
  .amenity-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-row { gap: 40px; }
}

@media (max-width: 900px) {
  .amenities-hero { min-height: 340px; }
  .amenities-hero__inner { padding: 120px 24px 40px; }
}

@media (max-width: 768px) {
  .amenities-hero { min-height: 320px; }
  .amenities-hero__inner { padding: 108px 20px 36px; }

  .feature-row,
  .feature-row--reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  /* Image first on mobile for ALL rows, including reversed ones */
  .feature-row__media,
  .feature-row--reverse .feature-row__media { order: 1; }
  .feature-row__content,
  .feature-row--reverse .feature-row__content { order: 2; }

  .feature-row + .feature-row { margin-top: 48px; }

  .amenity-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .hours-card { padding: 28px 24px; }
  .hours-card__grid { grid-template-columns: 1fr; gap: 0; }

  .amenities-cta { padding: 48px 20px; }
}

@media (max-width: 480px) {
  .amenities-hero { min-height: 280px; }
  .amenities-hero__inner { padding: 100px 16px 32px; }
  .amenities-hero__title { font-size: 1.85rem; }

  .quick-jump { flex-direction: column; align-items: stretch; }
  .quick-jump__link { justify-content: center; }

  .amenity-grid { grid-template-columns: 1fr; }

  .feature-row__btn { width: 100%; }

  .amenities-cta__actions { flex-direction: column; align-items: stretch; }
  .amenities-cta__actions .btn { width: 100%; }
}

/* ----- REDUCED MOTION ----- */
@media (prefers-reduced-motion: reduce) {
  .feature-row__image,
  .amenity,
  .quick-jump__link,
  .faq__question,
  .faq__question::after {
    transition: none !important;
  }
  .amenity:hover { transform: none; }
  .quick-jump__link:hover { transform: none; }
  .feature-row__media:hover .feature-row__image { transform: none; }
}