@tailwind base;
@tailwind components;
@tailwind utilities;

/* Banner content text color fixes */
.banner-content h1 {
  color: #1f2937 !important; /* Dark gray for mobile */
}

/* Desktop - white text on dark background */
@media (min-width: 1024px) {
  .banner-content h1 {
    color: white !important;
  }
}

/* Paragraph text color */
.banner-content p {
  color: #666666 !important; /* Dark gray for mobile */
}

/* Desktop - white text for paragraph */
@media (min-width: 1024px) {
  .banner-content p {
    color: white !important;
  }
}

/* Ensure text-bodycolor is defined */
.text-bodycolor {
  color: #666666 !important;
}

/* Mobile background should be white with dark text */
@media (max-width: 1023px) {
  .banner-inner3 {
    background-color: white !important;
  }
  
  .banner-content h1,
  .banner-content p {
    color: #1f2937 !important;
  }
}

/* Desktop background should be dark with white text */
@media (min-width: 1024px) {
  .banner-inner3 {
    background-color: var(--secondary) !important;
  }
  
  .banner-content h1,
  .banner-content p {
    color: white !important;
  }
}

/* Form Error Message Styles */
.error-message {
  color: #dc2626 !important;
  font-size: 0.875rem !important;
  margin-top: 0.25rem !important;
  font-weight: 500 !important;
  background-color: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  border-radius: 0.25rem !important;
  padding: 0.25rem 0.5rem !important;
  text-align: center !important;
}

/* Form Success Message Styles */
.success-message {
  color: white !important;
  font-size: 1.125rem !important;
  font-weight: bold !important;
  background-color: #10b981 !important;
  border: 2px solid #059669 !important;
  border-radius: 0.5rem !important;
  padding: 1.5rem !important;
  margin-bottom: 1rem !important;
  text-align: center !important;
}

/* Form field error states */
.border-red-500 {
  border-color: #ef4444 !important;
}

.ring-red-200 {
  --tw-ring-color: #fecaca !important;
}

.ring-2 {
  --tw-ring-width: 2px !important;
  --tw-ring-offset-width: 2px !important;
  box-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;
}

@media (max-width: 640px) {
  .mobile-top-actions a.white-btn {
    box-shadow: none !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
  }
}

/* Ensure grid quicklinks don't inherit list spacing */
.mobile-top-actions__quicklinks {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

/* Header overlays banners by default; on mobile keep it in normal flow */
@media (max-width: 1279px) {
  .site-header.main-bar-wraper:not(.is-fixed) {
    position: relative !important;
  }
}

@media (max-width: 360px) {
  .mobile-top-actions__icons {
    flex-wrap: wrap;
    max-width: 210px; /* allows 2 icons per row on tiny widths */
  }
}

/* Facility / Events content blocks */
.event-info {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.75rem 1rem;
}

.event-info__header {
  margin-bottom: 1.25rem;
}

.event-info__contact {
  margin-top: 0.5rem;
  line-height: 1.6;
}

.callout {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin: 1rem 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.callout > h3 {
  margin: 0 0 0.35rem 0;
  font-weight: 700;
}

.callout--important {
  border-left: 6px solid var(--secondary);
  background: rgba(254, 204, 72, 0.10);
}

.callout--neutral {
  border-left: 6px solid rgba(0, 0, 0, 0.18);
  background: rgba(0, 0, 0, 0.02);
}

.bullets {
  margin: 0.75rem 0 0 1.15rem;
}

.bullets li {
  margin: 0.35rem 0;
}

.bullets--two-col {
  column-gap: 2.25rem;
}

@media (min-width: 768px) {
  .bullets--two-col {
    columns: 2;
  }
}

.event-rooms {
  margin-top: 1.25rem;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.room-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.room-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.room-card__header h3 {
  margin: 0;
}

.room-card__tag {
  margin: 0;
  font-size: 0.95rem;
  white-space: nowrap;
}

.room-card__tag strong {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(254, 204, 72, 0.20);
  border: 1px solid rgba(254, 204, 72, 0.45);
}

.room-card__details {
  margin: 0.5rem 0 0 1.15rem;
}

.directions {
  margin-top: 1.25rem;
}

.directions__item {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  border-radius: 14px;
  padding: 0.7rem 0.9rem;
  margin: 0.75rem 0;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
}

.directions__item summary {
  cursor: pointer;
}

.directions__steps {
  margin: 0.6rem 0 0 1.15rem;
}

/* Cap sidebar photos to main column height (set by JS) */
.page-sidebar-photo {
  display: block;
  max-width: 100%;
}