/**
 * @file location-pages.css
 * Styles for library location pages (Fenwick, Mason Square, Mercer).
 * Modern card-based layout with location-specific content display.
 */

/* ─────────────────────────────────────────
   Location page wrapper
   ───────────────────────────────────────── */
.location-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 3%;
}

/* ─────────────────────────────────────────
   Hero image section
   ───────────────────────────────────────── */
.location-hero {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.location-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─────────────────────────────────────────
   Today's Hours section
   ───────────────────────────────────────── */
.location-todays-hours {
  background: var(--gmu-primary-green, #005239);
  color: white;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 82, 57, 0.15);
}

.location-todays-hours__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white !important;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.location-todays-hours__title-icon {
  font-size: 1.5rem;
}

.location-todays-hours__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.location-hours-item {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  border-left: 3px solid var(--gmu-accent-yellow, #ffc733);
}

.location-hours-item__name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--gmu-accent-yellow, #ffc733);
}

.location-hours-item__time {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 700;
}

.location-hours-item__note {
  font-size: 0.85rem;
  margin: 0.5rem 0 0 0;
  opacity: 0.9;
  font-style: italic;
}

/* ─────────────────────────────────────────
   Location information section
   ───────────────────────────────────────── */
.location-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .location-info {
    grid-template-columns: 1fr;
  }
}

.location-section {
  background: #f8f8f8;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.location-section__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gmu-primary-green, #005239);
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gmu-accent-yellow, #ffc733);
}

.location-section__content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

.location-section__content p {
  margin: 0 0 0.75rem 0;
}

.location-section__content a {
  color: var(--gmu-primary-green, #005239);
  text-decoration: none;
  border-bottom: 1px dotted var(--gmu-primary-green, #005239);
  transition: color 0.15s ease;
}

.location-section__content a:hover {
  color: var(--gmu-accent-yellow, #ffc733);
  border-bottom-color: var(--gmu-accent-yellow, #ffc733);
}

/* ─────────────────────────────────────────
   Contact information section
   ───────────────────────────────────────── */
.location-contact {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin-bottom: 2rem;
}

.location-contact__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gmu-primary-green, #005239);
  margin: 0 0 1.5rem 0;
}

.location-contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 6px;
  border-left: 3px solid var(--gmu-primary-green, #005239);
}

.contact-card__label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gmu-primary-green, #005239);
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.5px;
}

.contact-card__value {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  margin: 0;
}

.contact-card__value a {
  color: var(--gmu-primary-green, #005239);
  text-decoration: none;
  border-bottom: 1px dotted var(--gmu-primary-green, #005239);
}

.contact-card__value a:hover {
  color: var(--gmu-accent-yellow, #ffc733);
  border-bottom-color: var(--gmu-accent-yellow, #ffc733);
}

/* ─────────────────────────────────────────
   Address information
   ───────────────────────────────────────── */
.location-address {
  background: #f0f7f5;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--gmu-primary-green, #005239);
  margin-top: 1rem;
}

.location-address__title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gmu-primary-green, #005239);
  margin: 0 0 0.75rem 0;
  letter-spacing: 0.5px;
}

.location-address__text {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.6;
  margin: 0;
  white-space: pre-line;
}

/* ─────────────────────────────────────────
   Description/About section
   ───────────────────────────────────────── */
.location-description {
  margin-bottom: 2rem;
}

.location-description h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gmu-primary-green, #005239);
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gmu-accent-yellow, #ffc733);
}

.location-description p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 1rem;
}

.location-description ul,
.location-description ol {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.location-description li {
  margin-bottom: 0.75rem;
}

.location-description a {
  color: var(--gmu-primary-green, #005239);
  text-decoration: none;
  border-bottom: 1px dotted var(--gmu-primary-green, #005239);
}

.location-description a:hover {
  color: var(--gmu-accent-yellow, #ffc733);
  border-bottom-color: var(--gmu-accent-yellow, #ffc733);
}

/* ─────────────────────────────────────────
   Quick links section
   ───────────────────────────────────────── */
.location-quick-links {
  background: linear-gradient(135deg, var(--gmu-primary-green, #005239), #004030);
  color: white;
  padding: 2rem;
  border-radius: 8px;
  margin-top: 2rem;
}

.location-quick-links__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  color: var(--gmu-accent-yellow, #ffc733);
}

.location-quick-links__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.location-quick-link {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 199, 51, 0.3);
}

.location-quick-link:hover {
  background: var(--gmu-accent-yellow, #ffc733);
  color: var(--gmu-primary-green, #005239);
  border-color: var(--gmu-accent-yellow, #ffc733);
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────
   Responsive design
   ───────────────────────────────────────── */
@media (max-width: 768px) {
  .location-page {
    padding: 1.5rem 1.5rem;
  }

  .location-hero {
    height: 200px;
    margin-bottom: 1.5rem;
  }

  .location-todays-hours {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .location-todays-hours__title {
    font-size: 1.1rem;
  }

  .location-info {
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .location-section {
    padding: 1rem;
  }

  .location-contact {
    padding: 1.5rem;
  }

  .location-contact__grid {
    grid-template-columns: 1fr;
  }

  .location-description h2 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .location-page {
    padding: 1rem 1rem;
  }

  .location-hero {
    height: 150px;
    margin-bottom: 1rem;
  }

  .location-todays-hours__content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .location-quick-links__grid {
    grid-template-columns: 1fr;
  }
}


/* === Prose rule overrides (higher specificity) === */
.location-todays-hours .location-todays-hours__title {
  color: white !important;
}
.location-quick-links .location-quick-links__title {
  color: var(--gmu-accent-yellow, #ffc733) !important;
}
.location-quick-links .location-quick-link {
  color: white !important;
  text-decoration: none !important;
}
