/* =========================================================
   HOSTELS & LIVING PAGE — hst-* styles
   Save as: styles/hostels.css
   Loaded only by hostels.html
   Depends on: styles/cow.css (for CSS variables)
   ========================================================= */

/* ── ANCHOR STRIP ── */
.hst-anchor-strip {
  position: sticky;
  top: 108px; /* sits below the navbar */
  z-index: 90;
  background: white;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px oklch(0 0 0 / 0.05);
}
.hst-anchor-strip__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.hst-anchor-strip__inner::-webkit-scrollbar {
  display: none;
}

.hst-anchor-strip__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition:
    color 0.2s,
    border-color 0.2s;
  text-decoration: none;
}
.hst-anchor-strip__link:hover {
  color: var(--navy);
}
.hst-anchor-strip__link.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}
.hst-anchor-strip__link svg {
  flex-shrink: 0;
  opacity: 0.7;
}
.hst-anchor-strip__link.active svg {
  opacity: 1;
}

@media (max-width: 640px) {
  .hst-anchor-strip {
    top: 60px;
  } /* utility bar hidden on mobile, only navbar */
  .hst-anchor-strip__inner {
    padding: 0 16px;
  }
  .hst-anchor-strip__link {
    padding: 12px 10px;
    font-size: 12px;
  }
}

/* ── PAGE WRAPPER ── */
.hst-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 96px;
}
@media (max-width: 640px) {
  .hst-inner {
    padding: 0 20px 64px;
  }
}

/* ── SECTION BASE ── */
.hst-section {
  padding: 64px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 0;
}
.hst-section:first-child {
  border-top: none;
  padding-top: 56px;
}

.hst-section__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.hst-section__title {
  font-family: "Lora", serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}
.hst-section__desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-mid);
  max-width: 760px;
  margin-bottom: 36px;
}

/* ── GROUP LABEL ── */
.hst-group-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 16px;
}
.hst-group-label__bar {
  width: 24px;
  height: 2px;
  background: var(--navy);
  flex-shrink: 0;
}
.hst-group-label__bar--girls {
  background: oklch(0.58 0.1 320);
}

/* ── HOSTEL GRID ── */
.hst-hostel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}

/* ── HOSTEL CARD ── */
.hst-hostel-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}
.hst-hostel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px oklch(0 0 0 / 0.08);
  border-color: var(--gold-light);
}
.hst-hostel-card--boys {
  border-top: 3px solid var(--navy);
}
.hst-hostel-card--girls {
  border-top: 3px solid oklch(0.58 0.1 320);
}

.hst-hostel-card__head {
  padding: 16px 18px 14px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.hst-hostel-card__name-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.hst-hostel-card__name {
  font-family: "Lora", serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.hst-hostel-card__badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
}
.hst-hostel-card__badge--boys {
  background: var(--navy);
  color: white;
}
.hst-hostel-card__badge--girls {
  background: oklch(0.58 0.1 320);
  color: white;
}
.hst-hostel-card__full {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
}

.hst-hostel-card__body {
  padding: 16px 18px;
}

.hst-hostel-card__row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: baseline;
}
.hst-hostel-card__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  flex-shrink: 0;
  min-width: 72px;
}
.hst-hostel-card__value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.hst-hostel-card__link {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  transition: color 0.15s;
  word-break: break-all;
}
.hst-hostel-card__link:hover {
  color: oklch(0.6 0.13 72);
}

.hst-hostel-card__divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

.hst-hostel-card__caretaker {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hst-hostel-card__caretaker-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  font-family: "Lora", serif;
}
.hst-hostel-card__phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  background: var(--navy);
  color: white;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  margin-top: 6px;
  transition:
    background 0.2s,
    transform 0.15s;
}
.hst-hostel-card__phone:hover {
  background: oklch(0.26 0.055 252);
  transform: translateY(-1px);
}
.hst-hostel-card--girls .hst-hostel-card__phone {
  background: oklch(0.46 0.1 320);
}
.hst-hostel-card--girls .hst-hostel-card__phone:hover {
  background: oklch(0.42 0.1 320);
}

@media (max-width: 768px) {
  .hst-hostel-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .hst-hostel-grid {
    grid-template-columns: 1fr;
  }
}

/* ── FACILITIES GRID ── */
.hst-facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.hst-facility {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 20px 18px;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}
.hst-facility:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px oklch(0 0 0 / 0.07);
  border-color: var(--gold-light);
}
.hst-facility__icon {
  width: 42px;
  height: 42px;
  background: var(--cream2);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  margin-bottom: 12px;
}
.hst-facility__title {
  font-family: "Lora", serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.hst-facility__desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.55;
}

@media (max-width: 640px) {
  .hst-facilities-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 400px) {
  .hst-facilities-grid {
    grid-template-columns: 1fr;
  }
}

/* ── ACCOMMODATION TABLE ── */
.hst-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 40px;
}
.hst-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.hst-table thead {
  background: var(--navy);
  color: white;
}
.hst-table th {
  padding: 13px 18px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hst-table td {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  color: var(--text);
  line-height: 1.5;
  vertical-align: top;
}
.hst-table tbody tr:hover {
  background: var(--cream);
}
.hst-table td strong {
  color: var(--navy);
}

/* ── ALLOTMENT STEPS ── */
.hst-allotment {
  margin-top: 8px;
}
.hst-allotment__title {
  font-family: "Lora", serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
}
.hst-allotment__steps {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: wrap;
}
.hst-allot-step {
  flex: 1;
  min-width: 160px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 16px;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.hst-allot-step:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.hst-allot-step__num {
  font-family: "Lora", serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
}
.hst-allot-step__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.hst-allot-step__desc {
  font-size: 12.5px;
  color: var(--text-mid);
  line-height: 1.5;
}
.hst-allot-arrow {
  flex: 0 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  opacity: 0.4;
}
@media (max-width: 900px) {
  .hst-allotment__steps {
    gap: 12px;
  }
  .hst-allot-arrow {
    display: none;
  }
  .hst-allot-step {
    flex: 1 1 calc(50% - 6px);
  }
}
@media (max-width: 480px) {
  .hst-allot-step {
    flex: 1 1 100%;
  }
}

/* ── DAILY LIFE GRID ── */
.hst-daily-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hst-daily-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 22px 18px;
}
.hst-daily-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.hst-daily-card__icon {
  width: 38px;
  height: 38px;
  background: var(--cream2);
  border: 1px solid var(--border);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  flex-shrink: 0;
}
.hst-daily-card__title {
  font-family: "Lora", serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}
.hst-timing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hst-timing-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.hst-timing-list li:last-child {
  border-bottom: none;
}
.hst-timing-list__meal {
  color: var(--text-mid);
  font-weight: 500;
}
.hst-timing-list__time {
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .hst-daily-grid {
    grid-template-columns: 1fr;
  }
}

/* ── VIRTUAL TOURS GRID ── */
.hst-tours-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 36px;
}
.hst-tour-card {
  background: var(--navy);
  border-radius: 12px;
  padding: 24px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.hst-tour-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px oklch(0.22 0.055 252 / 0.25);
}
.hst-tour-card--girls {
  background: oklch(0.36 0.08 320);
}
.hst-tour-card--girls:hover {
  box-shadow: 0 8px 20px oklch(0.36 0.08 320 / 0.3);
}
.hst-tour-card__name {
  font-family: "Lora", serif;
  font-size: 20px;
  font-weight: 700;
  color: white;
}
.hst-tour-card__status {
  font-size: 11px;
  font-weight: 600;
  color: oklch(1 0 0 / 0.55);
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .hst-tours-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 480px) {
  .hst-tours-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── MAP ── */
.hst-map-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.hst-map-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: white;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
}
.hst-map {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}
@media (max-width: 640px) {
  .hst-map {
    height: 280px;
  }
}
