/* ManilaStay Guides parent/hub page — v1-7-3
   Source reference: v12 guides.html.
   Hero and Guide 01-30 media are mapped from the governed 2026/05 WordPress uploads batch.
   Quick navigation icons now use theme-owned v12 SVG assets. */

.ms-guides-template .ms-hero--guides::before {
  background-image:
    linear-gradient(
      to bottom,
      rgba(26, 39, 48, 0.22) 10%,
      rgba(26, 39, 48, 0.56) 55%,
      rgba(26, 39, 48, 0.78) 88%
    );
  background-color: var(--ms-color-primary-dark);
  background-position: 50% 36%;
}

.ms-guides-template .ms-hero--guides {
  background-color: var(--ms-color-primary-dark);
}

.ms-guides-quicknav-card {
  min-height: 330px;
}

.ms-guides-quicknav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 300px;
  height: 100%;
}

.ms-guides-tiles {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ms-guides-tile {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border-radius: var(--ms-radius-md);
  background: rgba(15, 23, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.ms-guides-tile:hover,
.ms-guides-tile:focus-visible {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(15, 23, 32, 0.98);
  text-decoration: none;
  transform: translateY(-1px);
}

.ms-guides-tile-icon {
  width: 42px;
  height: 42px;
  opacity: 1;
  flex-shrink: 0;
}

.ms-guides-tile-icon-fallback {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.25rem;
  line-height: 1;
}

.ms-guides-tile-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ms-guides-tile-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  text-align: left;
}

.ms-guides-tile-desc {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  text-align: left;
}

.ms-guides-cta {
  margin-top: auto;
  padding-top: 0.2rem;
}

.ms-guides-hub .ms-container {
  overflow: visible;
}

.ms-guides-row {
  position: relative;
  padding-block: 1.75rem 2.25rem;
  border-top: 1px solid var(--ms-color-border-soft);
  scroll-margin-top: 6rem;
}

.ms-guides-row:first-of-type {
  border-top: none;
}

#airport-guides,
#stay-guides,
#transport-guides,
#all-guides {
  scroll-margin-top: 6rem;
}

.ms-guides-row-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.ms-guides-row .ms-section-heading {
  text-align: left;
  margin-bottom: 0.35rem;
}

.ms-guides-row .ms-section-subheading {
  text-align: left;
  margin: 0 0 1.25rem;
}

.ms-guides-faq .ms-section-heading {
  text-align: center;
  margin-bottom: 0.35rem;
}

.ms-guides-faq .ms-section-subheading {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 2rem;
}

.ms-guides-row-nav {
  display: none;
}

@media (min-width: 900px) {
  .ms-guides-row-nav {
    position: absolute;
    inset-block: 50%;
    inset-inline: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    padding-inline: 0.25rem;
    z-index: 2;
  }
}

.ms-guides-row-btn {
  border-radius: 999px;
  border: 1px solid var(--ms-color-border-soft);
  background-color: rgba(255, 255, 255, 0.96);
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  cursor: pointer;
  color: var(--ms-color-primary-dark);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
  pointer-events: auto;
}

.ms-guides-row-btn:hover,
.ms-guides-row-btn:focus-visible {
  background-color: rgba(71, 91, 102, 0.06);
}

.ms-guides-carousel {
  display: flex;
  gap: var(--ms-spacing-md);
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
}

.ms-guides-carousel::-webkit-scrollbar {
  height: 8px;
}

.ms-guides-carousel::-webkit-scrollbar-track {
  background: rgba(148, 163, 184, 0.2);
  border-radius: 999px;
}

.ms-guides-carousel::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.35);
  border-radius: 999px;
}

.ms-guides-card {
  flex: 0 0 78%;
  max-width: 78%;
  background-color: #ffffff;
  border-radius: var(--ms-radius-md);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(15, 23, 42, 0.05);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

@media (min-width: 600px) {
  .ms-guides-card {
    flex: 0 0 48%;
    max-width: 48%;
  }
}

@media (min-width: 1100px) {
  .ms-guides-card {
    flex: 0 0 30%;
    max-width: 30%;
  }
}

.ms-guides-card-media {
  width: 100%;
}

.ms-guides-card-media img,
.ms-guides-card-placeholder {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.ms-guides-card-media img {
  display: block;
}

.ms-guides-card-placeholder {
  display: flex;
}

@media (min-width: 900px) {
  .ms-guides-card-media img,
  .ms-guides-card-placeholder {
    height: 210px;
  }
}

.ms-guides-card-placeholder {
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background:
    radial-gradient(circle at 22% 12%, rgba(255, 255, 255, 0.25), transparent 30%),
    linear-gradient(135deg, rgba(71, 91, 102, 0.96), rgba(50, 66, 75, 0.96));
  color: #ffffff;
  text-align: center;
}

.ms-guides-card-placeholder-label {
  max-width: 13rem;
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.ms-guides-card-body {
  padding: 0.75rem 0.8rem 0.85rem;
}

.ms-guides-card-title {
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
}

.ms-guides-card-subtitle {
  margin: 0;
}

.ms-guides-card:hover,
.ms-guides-card:focus-visible {
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
  border-color: rgba(15, 23, 42, 0.12);
  text-decoration: none;
  transform: translateY(-1px);
}

.ms-guides-faq .ms-faq-list {
  margin-inline: auto;
}

@media (max-width: 768px) {
  .ms-guides-quicknav-card {
    min-height: 0;
  }

  .ms-guides-quicknav {
    min-height: 0;
  }

  .ms-guides-row {
    padding-block: 1.35rem 1.9rem;
  }
}
