/* Global Styles */
:root {
  --primary-color: #1a3a5f;
  --secondary-color: #4280bf;
  --accent-color: #f9a826;
  --text-color: #333;
  --light-gray: #f7f7f7;
  --medium-gray: #e0e0e0;
  --dark-gray: #757575;
  --white: #ffffff;
  --success-color: #4caf50;
  --error-color: #f44336;
  --emergency-color: #d32f2f;
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--light-gray);
  padding-bottom: 60px;
  position: relative;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Make sure header h1 is not affected by other styles */
header h1 {
  color: white !important;
  margin-bottom: 0;
}

.sub-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin: 1rem 0;
}

.sub-sub-title {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin: 0.8rem 0;
}

.body-text {
  font-family: 'Lora', serif;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.highlight {
  background-color: var(--accent-color);
  color: var(--white);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
}

.note {
  font-style: italic;
  color: var(--dark-gray);
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

/* Header */
header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow);
}

/* All text in header should be white */
header * {
  color: white;
}

.header-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.header-icon {
  font-size: 1.8rem;
}

/* Make header title white with high specificity */
header .header-container h1.header-title {
  color: white !important;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  background-color: var(--white);
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
nav::-webkit-scrollbar {
  display: none;
}

.tab-button {
  background: none;
  border: none;
  padding: 1rem;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: var(--dark-gray);
  transition: var(--transition);
  flex: 1;
  text-align: center;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: max-content; /* Prevent text from wrapping */
}

.tab-button i {
  font-size: 1.2rem;
}

.tab-button.active {
  color: var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
}

.tab-button:hover:not(.active) {
  background-color: var(--light-gray);
  color: var(--secondary-color);
}

/* Content Container */
.content {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

.tab-content {
  display: none;
  padding: 1rem 0;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Info Cards */
.info-card {
  background-color: var(--white);
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1rem 0;
  box-shadow: var(--shadow);
}

.address {
  text-align: center;
  font-size: 1.1rem;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.amenity-item {
  text-align: center;
  padding: 0.5rem;
}

.amenity-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.amenity-item p {
  margin: 0;
  font-size: 0.9rem;
}

.amenity-item small {
  display: block;
  font-size: 0.8rem;
  color: var(--dark-gray);
}

/* Lists */
.feature-list, .checklist {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.feature-list li, .checklist li {
  margin-bottom: 0.5rem;
}

.numbered-steps {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  counter-reset: step-counter;
  list-style-type: none;
}

.numbered-steps li {
  margin-bottom: 0.8rem;
  position: relative;
}

.numbered-steps li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: -1.8rem;
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--primary-color);
  color: white;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.8rem;
}

/* Contact Information */
.contact-info {
  background-color: var(--light-gray);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  text-align: center;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.contact-info a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Hero Image */
.hero-image {
  height: 300px;
  background-image: url('/images/belle_city_lofts.jpeg');
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
}

/* Map Container */
.map-container {
  margin: 1rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.small-map {
  max-height: 200px;
}

.responsive-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Button Styles */
.button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  font-size: 0.9rem;
}

.button:hover {
  background-color: var(--secondary-color);
}

.small-button {
  padding: 0.5rem 0.8rem;
  font-size: 0.8rem;
}

.button-container {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.directions-button {
  text-align: center;
  margin: 1rem 0;
}

/* Toggle Buttons */
.toggle-button {
  background-color: var(--light-gray);
  border: none;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  flex: 1;
  transition: var(--transition);
}

.toggle-button.toggle-active {
  background-color: var(--primary-color);
  color: var(--white);
}

.checkin-toggle-container {
  display: flex;
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
}

.toggle-content {
  display: none;
}

.toggle-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

/* Category Toggles */
.category-toggle-container {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.category-button {
  background-color: var(--light-gray);
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  transition: var(--transition);
  font-size: 0.9rem;
}

.category-button.active {
  background-color: var(--primary-color);
  color: var(--white);
}

.category-content {
  display: none;
}

.category-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

/* Local Spots */
.local-card {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.local-img {
  height: 160px;
  background-size: cover;
  background-position: center;
  border-radius: 8px 8px 0 0;
  margin: -1.25rem -1.25rem 1rem -1.25rem;
}

.local-details {
  flex: 1;
}

.local-details p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* Local spots custom styling */
#local ul {
  list-style-type: none;
  padding-left: 0;
}

#local li {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--medium-gray);
}

#local li:last-child {
  border-bottom: none;
}

#local a {
  color: #1a73e8;
  text-decoration: none;
}

#local a:hover {
  text-decoration: underline;
}

.directions {
  display: block;
  margin-top: 4px;
  font-size: 0.95em;
  color: #1a73e8;
}

/* Games Toggles */
.games-toggle-container {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.games-button {
  background-color: var(--light-gray);
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  transition: var(--transition);
  font-size: 0.9rem;
}

.games-button.active {
  background-color: var(--primary-color);
  color: var(--white);
}

.game-content {
  display: none;
}

.game-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

/* Scavenger Hunt */
.scavenger-list {
  margin-top: 1rem;
}

.scavenger-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--medium-gray);
}

.scavenger-checkbox {
  flex-shrink: 0;
  margin-right: 1rem;
}

.scavenger-checkbox input[type="checkbox"] {
  display: none;
}

.scavenger-checkbox label {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-color: var(--white);
  border: 2px solid var(--primary-color);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
}

.scavenger-checkbox input[type="checkbox"]:checked + label::after {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--primary-color);
}

.scavenger-content {
  flex: 1;
}

.scavenger-content h3 {
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.scavenger-content p {
  font-size: 0.9rem;
  color: var(--dark-gray);
  margin: 0;
}

/* Trivia Quiz */
.trivia-quiz {
  margin-top: 1rem;
}

.trivia-question {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--medium-gray);
}

.trivia-question h3 {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.trivia-options {
  margin-bottom: 1rem;
}

.trivia-option {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.trivia-option input[type="radio"] {
  margin-right: 0.5rem;
}

.trivia-answer {
  background-color: var(--light-gray);
  padding: 0.8rem;
  border-radius: 4px;
  margin-top: 0.5rem;
}

.hidden {
  display: none;
}

/* Recommendations */
.recommendations-container {
  margin-top: 1rem;
}

.recommendation-category {
  margin-bottom: 1.5rem;
}

.recommendation-category h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.recommendation-list {
  list-style-type: none;
}

.recommendation-list li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--medium-gray);
}

.recommendation-list li:last-child {
  border-bottom: none;
}

.recommendation-list h4 {
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.recommendation-list p {
  font-size: 0.9rem;
  color: var(--dark-gray);
  margin: 0;
}

/* Thank You Message */
.thank-you-message {
  background-color: var(--light-gray);
  padding: 1rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  text-align: center;
}

/* Contact styles are now directly in the HTML file */

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 1rem;
  text-align: center;
  position: absolute;
  bottom: 0;
  width: 100%;
}

footer a {
  color: var(--white);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Media Queries */
@media (max-width: 768px) {
  .tab-button {
    padding: 0.8rem 0.4rem;
    font-size: 0.75rem;
  }
  
  .hero-image {
    height: 150px;
  }
  
  .amenities-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .properties-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .info-card {
    padding: 1rem;
  }
  
  .sub-title {
    font-size: 1.4rem;
  }
  
  .body-text {
    font-size: 0.95rem;
  }
  
  footer {
    padding: 1.2rem 0;
  }
  
  .social-icon {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  nav {
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 0.2rem;
  }
  
  .tab-button i {
    font-size: 1rem;
  }
  
  .tab-button {
    font-size: 0.65rem;
    padding: 0.6rem 0.3rem;
    flex: 0 0 auto;
  }
  
  .header-icon {
    font-size: 1.5rem;
  }
  
  header h1 {
    font-size: 1.5rem;
  }
  
  .button-container {
    flex-direction: column;
  }
  
  .amenities-grid {
    grid-template-columns: 1fr;
  }
  
  .properties-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .content {
    padding: 0.7rem;
  }
  
  .info-card {
    margin: 0.8rem 0;
    padding: 0.8rem;
  }
  
  .sub-title {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
  }
  
  .body-text {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
  }
  
  .social-button-container .button {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }
  
  .property-item {
    padding: 1rem;
  }
}

@media (max-width: 360px) {
  .tab-button {
    font-size: 0.6rem;
    padding: 0.5rem 0.25rem;
  }
  
  .tab-button i {
    font-size: 0.9rem;
  }
  
  .header-title {
    font-size: 1.3rem;
  }
  
  .property-item h3 {
    font-size: 1rem;
  }
  
  .property-item p {
    font-size: 0.85rem;
  }
  
  .small-button {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }
  
  .footer-copyright p {
    font-size: 0.8rem;
  }
  
  .social-icon {
    font-size: 1.2rem;
  }
}

/* Video container */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin: 1rem 0;
  box-shadow: var(--shadow);
  border-radius: 8px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* Properties Grid */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.property-item {
  background-color: var(--light-gray);
  border-radius: 8px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.property-item:hover {
  transform: translateY(-5px);
}

.property-item h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.property-item p {
  margin: 0.5rem 0 1rem 0;
  font-size: 0.9rem;
}

.small-button {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* Social Media */
.social-button-container {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0 0.5rem 0;
}

.social-button-container .button {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fab {
  font-size: 1.3em;
}

/* Footer Styles */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 1.5rem 0;
  margin-top: 2rem;
  text-align: center;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  gap: 1rem;
}

.footer-copyright a {
  color: var(--white);
  text-decoration: underline;
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
}

.social-icon {
  color: white;
  font-size: 1.5rem;
  transition: transform 0.2s, color 0.2s;
}

.social-icon:hover {
  transform: scale(1.2);
  color: var(--accent-color);
}
