/* 
 * Main Stylesheet for Hotel Astoria Animation Program Website
 * Created: May 13, 2025
 */

/* ===== Variables ===== */
:root {
  /* Primary Colors */
  --primary-color: #0078c2;     /* Sea blue */
  --secondary-color: #ffa500;   /* Warm orange */
  --accent-color: #e63946;      /* Vibrant red */
  
  /* Neutral Colors */
  --text-color: #333333;
  --light-text: #ffffff;
  --light-bg: #f8f9fa;
  --dark-bg: #1a2639;
  
  /* Category Colors */
  --children-color: #ff7e5f;    /* Coral */
  --sports-color: #1aa3ff;      /* Bright blue */
  --evening-color: #7e57c2;     /* Purple */
  --other-color: #4caf50;       /* Green */
  
  /* Fonts */
  --heading-font: 'Poppins', sans-serif;
  --body-font: 'Open Sans', sans-serif;
  
  /* Spacing */
  --section-spacing: 5rem;
  --container-padding: 1.5rem;
  
  /* Borders & Shadows */
  --border-radius: 8px;
  --card-shadow: 0 4px 12px rgba(0,0,0,0.1);
  --hover-shadow: 0 8px 24px rgba(0,0,0,0.15);
  
  /* Transitions */
  --transition-speed: 0.3s;
}

/* ===== Base Styles ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--light-bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--dark-bg);
}

h1 {
  font-size: 4.2rem;
}

h2 {
  font-size: 3.6rem;
  margin-bottom: 3rem;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1rem;
  width: 6rem;
  height: 0.4rem;
  background-color: var(--primary-color);
}

h3 {
  font-size: 2.4rem;
}

h4 {
  font-size: 2rem;
}

section h2 {
  text-align: center;
}

section h2::after {
  left: 50%;
  transform: translateX(-50%);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--secondary-color);
}

p {
  margin-bottom: 1.5rem;
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

section {
  padding: var(--section-spacing) 0;
}

.section-intro {
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
  font-size: 1.8rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  font-size: 1.6rem;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #006dae;
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--card-shadow);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: #e69500;
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--card-shadow);
}

.cta-button {
  text-align: center;
  margin-top: 4rem;
}

/* ===== Header ===== */
.site-header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem var(--container-padding);
}

.logo img {
  max-height: 6rem;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center; /* Ensure vertical alignment */
  height: 100%;
}

.nav-links li {
  margin: 0 1rem;
  position: relative;
}

.nav-links li a {
  font-weight: 600;
  font-size: 1.6rem;
  padding: 0.8rem 1.2rem;
  color: var(--text-color);
  transition: color var(--transition-speed) ease;

}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--primary-color);
}

.nav-links li a.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  width: 30%;
  height: 3px;
  background-color: var(--primary-color);
}

/* Mobile Navigation */
/* Enable the mobile menu toggle button */
.mobile-menu-toggle {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger-icon {
  display: block;
  position: relative;
  width: 2.4rem;
  height: 0.2rem;
  background-color: var(--text-color);
  transition: transform var(--transition-speed) ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--text-color);
  transition: transform var(--transition-speed) ease;
}

.hamburger-icon::before {
  transform: translateY(-8px);
}

.hamburger-icon::after {
  transform: translateY(8px);
}

/* Language Selector */
.language-selector {
  position: relative;
  margin-left: 2rem;
}

.lang-toggle {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-color);
}

.lang-toggle i {
  margin-left: 0.5rem;
  font-size: 1.4rem;
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-speed) ease;
  z-index: 100;
}

.language-selector:hover .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown li a {
  display: block;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.lang-dropdown li:last-child a {
  border-bottom: none;
}

.lang-dropdown li a.active {
  color: var(--primary-color);
  background-color: rgba(0,120,194,0.05);
}

/* ===== Hero Section ===== */
.hero {
  background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/astoria_main_photo.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--light-text);
  padding: 10rem 0;
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  color: white;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 2rem;
  margin-bottom: 4rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.current-info {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background-color: transparent;
  color: var(--light-text);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  width: 480px;
}

.date-display {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0;
  width: 40%;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.date-display i {
  margin-right: 0.8rem;
  color: var(--secondary-color);
}

/* Weather Widget */
.weather-display-inline {
  width: 60%;
  height: 120px;
  overflow: hidden;
  margin-top: 0;
  position: relative;
}

.weather-display-inline .weatherwidget-io {
  width: 100% !important;
  height: 120px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

/* ===== Highlights Section ===== */
.highlights {
  background-color: white;
  padding: var(--section-spacing) 0;
  overflow: hidden; /* Prevent horizontal scrolling */
  position: relative;
}

.highlights-slider {
  display: flex;
  overflow-x: visible; /* Changed from hidden to allow slides to be seen */
  gap: 2rem;
  margin-bottom: 2rem;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  min-height: 400px; /* Increased to accommodate larger images */
}

.highlight-card {
  flex: 0 0 calc(25% - 1.5rem);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  position: relative;
  background-color: white;
  transition: transform var(--transition-speed) ease, 
              box-shadow var(--transition-speed) ease, 
              border-color 0.3s ease,
              opacity 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 1;
  visibility: visible;
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
  border-color: var(--primary-color);
}

.highlight-card:hover h3 {
  color: var(--primary-color);
}

.time {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background-color: rgba(0,0,0,0.7);
  color: white;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  z-index: 1;
  transition: background-color 0.3s ease;
}

.highlight-card:hover .time {
  background-color: var(--primary-color);
}

/* Add style for past events */
.highlight-card.past-event .time {
  background-color: rgba(128,128,128,0.7);
}

.highlight-card.past-event {
  opacity: 0.7;
}

.highlight-card.past-event img {
  filter: grayscale(70%);
}

.highlight-card.past-event h3,
.highlight-card.past-event p,
.highlight-card.past-event .category-tag {
  color: #888;
}

/* Monday special day off styling */
.highlight-card.monday-special {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #dee2e6;
}

.highlight-card.monday-special .time {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
  font-weight: 600;
}

.highlight-card.monday-special h3 {
  color: #495057;
  font-weight: 600;
}

.highlight-card.monday-special p {
  color: #6c757d;
}

.highlight-card.monday-special:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Monday layout: Center 2 cards on desktop */
.highlights-slider.monday-layout {
  justify-content: center;
  max-width: 800px; /* Limit width to center the 2 cards better */
  margin: 0 auto 2rem auto;
}

.highlights-slider.monday-layout .highlight-card {
  flex: 0 0 calc(40% - 1rem); /* Make cards slightly wider since there are only 2 */
  max-width: 350px; /* Prevent cards from becoming too wide */
}

/* Tablet adjustments for Monday layout */
@media (max-width: 1024px) {
  .highlights-slider.monday-layout {
    max-width: 700px;
  }
  
  .highlights-slider.monday-layout .highlight-card {
    flex: 0 0 calc(45% - 1rem);
    max-width: 320px;
  }
}

.highlight-content {
  padding: 0 0 2rem 0;
  position: relative;
  overflow: hidden;
}

.highlight-content h3 {
  padding: 0 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
  transition: color 0.3s ease;
}

.highlight-content p {
  padding: 0 1.5rem;
  margin-bottom: 1rem;
  color: #666;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.highlight-content img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease, filter 0.3s ease, border-bottom-color 0.3s ease;
  display: block;
  border-bottom: 3px solid transparent;
}

.highlight-card:hover .highlight-content img {
  transform: scale(1.08);
  border-bottom-color: var(--primary-color);
  filter: brightness(1.1);
}

.category-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  margin-left: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.highlight-card:hover .category-tag {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.highlight-card:hover .category-tag.children {
  background-color: rgba(255,126,95,0.2);
}

.highlight-card:hover .category-tag.sports {
  background-color: rgba(26,163,255,0.2);
}

.highlight-card:hover .category-tag.evening {
  background-color: rgba(126,87,194,0.2);
}

.highlight-card:hover .category-tag.other {
  background-color: rgba(76,175,80,0.2);
}

.category-tag.children {
  background-color: rgba(255,126,95,0.1);
  color: var(--children-color);
}

.category-tag.sports {
  background-color: rgba(26,163,255,0.1);
  color: var(--sports-color);
}

.category-tag.evening {
  background-color: rgba(126,87,194,0.1);
  color: var(--evening-color);
}

.category-tag.other {
  background-color: rgba(76,175,80,0.1);
  color: var(--other-color);
}

.slider-controls {
  display: flex; /* Show slider controls */
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
}

.slider-prev, .slider-next {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary-color);
  cursor: pointer;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease, transform 0.3s ease;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.slider-prev:hover, .slider-next:hover,
.slider-prev:active, .slider-next:active {
  background-color: rgba(0, 120, 194, 0.1);
  transform: scale(1.1);
}

.slider-dots {
  display: flex;
  gap: 0.8rem;
  margin: 0 2rem;
}

.dot {
  width: 1rem;
  height: 1rem;
  background-color: #ddd;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  border: none;
}

.dot:hover, .dot:active {
  transform: scale(1.2);
  background-color: rgba(0, 120, 194, 0.5);
}

.dot.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

.dot::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
}

.highlight-card.active-slide {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
  border-color: var(--primary-color);
  z-index: 1;
}

.highlight-card.active-slide h3 {
  color: var(--primary-color);
}

.highlight-card.active-slide .highlight-content img {
  transform: scale(1.05);
  border-bottom-color: var(--primary-color);
}

/* Swipe indicator for mobile */
.swipe-indicator {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 1rem 2rem;
  border-radius: 5rem;
  z-index: 10;
  font-size: 1.4rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.swipe-indicator i {
  margin-right: 0.8rem;
  animation: swipe-animation 1.5s infinite;
}

@keyframes swipe-animation {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(10px);
  }
  100% {
    transform: translateX(0);
  }
}

/* ===== Animation Categories ===== */
.animation-categories {
  background-color: var(--light-bg);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.category-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.category-card.children {
  border-top: 5px solid var(--children-color);
}

.category-card.sports {
  border-top: 5px solid var(--sports-color);
}

.category-card.evening {
  border-top: 5px solid var(--evening-color);
}

.category-card.other {
  border-top: 5px solid var(--other-color);
}

.category-icon {
  font-size: 3.5rem;
  margin-bottom: 2rem;
}

.category-card.children .category-icon {
  color: var(--children-color);
}

.category-card.sports .category-icon {
  color: var(--sports-color);
}

.category-card.evening .category-icon {
  color: var(--evening-color);
}

.category-card.other .category-icon {
  color: var(--other-color);
}

.category-card h3 {
  margin-bottom: 1.5rem;
}

.category-card p {
  font-size: 1.5rem;
  flex-grow: 1;
}

.btn-text {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--primary-color);
  font-weight: 600;
  transition: color var(--transition-speed) ease;
}

.btn-text i {
  margin-left: 0.5rem;
  transition: transform var(--transition-speed) ease;
}

.category-card:hover .btn-text {
  color: var(--secondary-color);
}

.category-card:hover .btn-text i {
  transform: translateX(3px);
}

/* ===== Team Preview Section ===== */
.team-preview {
  background-color: white;
}

.team-carousel {
  display: flex;
  gap: 3rem;
  margin: 4rem 0;
  justify-content: center;
}

.team-member {
  flex: 0 0 calc(33.333% - 2rem);
  max-width: 320px;
  background-color: var(--light-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: transform var(--transition-speed) ease;
}

.team-member:hover {
  transform: translateY(-5px);
}

.team-member img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top;
}

.team-member h3 {
  margin: 2rem 0 0.5rem;
}

.team-member .role {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.team-member .languages {
  font-size: 1.4rem;
  color: #666;
  margin-bottom: 2rem;
}

/* ===== Gallery Preview ===== */
.gallery-preview {
  background-color: var(--light-bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 200px;
  box-shadow: var(--card-shadow);
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-speed) ease;
  z-index: 2;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item-overlay h3 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.gallery-item-overlay p {
  margin: 0;
  font-size: 1.4rem;
  opacity: 0.9;
}

/* ===== Hotel Map Section ===== */
.hotel-map {
  background-color: white;
}

.map-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 2rem;
}

.map-image {
  width: 100%;
  height: auto;
  display: block;
}

.desktop-map {
  display: block;
}

.mobile-map {
  display: none;
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.map-pin {
  position: absolute;
  width: 3rem;
  height: 3rem;
  background-color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 2;
  transition: transform var(--transition-speed) ease;
}

.map-pin i {
  color: var(--primary-color);
  font-size: 1.6rem;
}

.map-pin:hover {
  transform: scale(1.1);
}

.map-tooltip {
  position: absolute;
  background-color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed) ease;
}

.map-pin:hover .map-tooltip {
  opacity: 1;
  visibility: visible;
}

.map-note {
  text-align: center;
  font-size: 1.4rem;
  color: #666;
}

/* ===== Footer ===== */
.site-footer {
  background-color: var(--dark-bg);
  color: white;
  padding: 5rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo img {
  max-width: 180px;
  margin-bottom: 2rem;
}

.footer-logo p {
  font-size: 1.4rem;
  opacity: 0.8;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
  color: white;
  margin-bottom: 2rem;
  position: relative;
}

.footer-links h4::after,
.footer-contact h4::after,
.footer-social h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1rem;
  width: 4rem;
  height: 0.3rem;
  background-color: var(--secondary-color);
}

.footer-links ul li,
.footer-contact ul li {
  margin-bottom: 1rem;
}

.footer-links a,
.footer-contact a {
  color: rgba(255,255,255,0.8);
  transition: color var(--transition-speed) ease;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--secondary-color);
}

.footer-contact ul li {
  display: flex;
  align-items: flex-start;
}

.footer-contact ul li i {
  margin-right: 1rem;
  margin-top: 0.5rem;
  color: var(--secondary-color);
}

.social-icons {
  display: flex;
  gap: 1.5rem;
}

.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background-color: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: white;
  font-size: 1.8rem;
  transition: all var(--transition-speed) ease;
}

.social-icons a.tripadvisor-icon img {
  width: 2.2rem;
  height: 2.2rem;
  filter: brightness(0) invert(1);
  transition: all var(--transition-speed) ease;
}

.social-icons a.tripadvisor-icon:hover img {
  filter: brightness(0) invert(1);
}

.social-icons a:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 1.4rem;
}

.footer-bottom p {
  margin: 0;
  opacity: 0.7;
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a {
  color: rgba(255,255,255,0.7);
}

.footer-legal a:hover {
  color: var(--secondary-color);
}

/* ===== Responsive Styles ===== */
@media (max-width: 1100px) {
  html {
    font-size: 56.25%; /* 9px */
  }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .highlight-card {
    flex: 0 0 calc(33.333% - 1.5rem);
    display: block; /* Ensure visibility */
  }
}

@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  
  .team-carousel {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .team-member {
    flex: 0 0 calc(50% - 1.5rem);
  }
  
  .highlight-card {
    flex: 0 0 calc(50% - 1.5rem);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 50%; /* 8px */
  }
  
  /* Show mobile menu toggle on mobile */
  .mobile-menu-toggle {
    display: flex;
  }
  
  .main-nav .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    padding: 8rem 2rem 2rem;
    transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    overflow-y: auto;
    z-index: 99;
  }
  
  .main-nav .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    margin: 1.5rem 0;
    width: 100%;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .current-info {
    position: static;
    margin: 2rem auto;
    width: 90%;
    max-width: 350px;
    padding: 2rem;
    flex-direction: column;
    gap: 2rem;
    background-color: transparent;
  }

  .date-display {
    text-align: center;
    justify-content: center;
    margin-bottom: 15px;
    width: 100%;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  }
  
  .weather-display-inline {
    margin-top: 15px;
    height: 130px;
    width: 100%;
  }
  
  .weather-display-inline .weatherwidget-io {
    height: 130px !important;
    width: 100% !important;
  }
  
  .hero {
    padding: 5rem 0;
  }

  /* Improve slider navigation on mobile */
  .slider-controls {
    margin-top: 2rem;
  }
  
  .slider-prev, .slider-next {
    width: 5rem;
    height: 5rem;
    background-color: rgba(0, 120, 194, 0.1);
    font-size: 2.4rem;
  }
  
  .dot {
    width: 1.2rem;
    height: 1.2rem;
  }
  
  .highlight-card {
    /* Updated in JS to be dynamic */
    box-shadow: var(--card-shadow);
  }
  
  /* Mobile highlights section improvements */
  .highlights {
    padding: 3rem 0;
  }
  
  .highlights-slider {
    gap: 1.5rem;
    min-height: 380px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 1.5rem;
    transition: none; /* Remove transform transition for mobile */
  }
  
  .highlights-slider::-webkit-scrollbar {
    display: none;
  }
  
  .highlight-card {
    flex: 0 0 280px; /* Fixed width for better mobile experience */
    scroll-snap-align: start;
    display: block;
  }
  
  .highlight-card .time {
    top: 1rem;
    left: 1rem;
    font-size: 1.2rem;
    padding: 0.4rem 0.8rem;
  }
  
  .highlight-content img {
    height: 200px;
  }
  
  .highlight-content h3 {
    font-size: 1.6rem;
    padding: 0 1.2rem;
  }
  
  .highlight-content p {
    font-size: 1.3rem;
    padding: 0 1.2rem;
  }
  
  .category-tag {
    margin-left: 1.2rem;
    font-size: 1.1rem;
    padding: 0.3rem 0.8rem;
  }
  
  /* Show slider controls on mobile */
  .slider-controls {
    display: flex;
    margin-top: 2rem;
  }
  
  .slider-prev, .slider-next {
    width: 4.5rem;
    height: 4.5rem;
    background-color: rgba(0, 120, 194, 0.1);
    font-size: 1.8rem;
  }
  
  .slider-prev:hover, .slider-next:hover {
    background-color: rgba(0, 120, 194, 0.2);
  }
  
  /* Show swipe hint on mobile */
  .swipe-hint {
    display: block;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: #666;
    font-weight: 500;
  }
  
  .swipe-hint i {
    margin-right: 0.5rem;
    animation: swipe-animation 2s infinite;
  }

  /* Show slider controls on mobile */
  .slider-controls {
    display: flex;
    margin-top: 2rem;
  }
  
  /* Make dots bigger and more touchable on mobile */
  .dot {
    width: 1.4rem;
    height: 1.4rem;
  }
  
  .dot.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
    box-shadow: 0 0 5px rgba(0, 120, 194, 0.5);
  }
}

@media (max-width: 576px) {
  .site-header .container {
    padding: 1rem var(--container-padding);
  }
  
  .logo img {
    max-height: 4.5rem;
  }
  
  .highlight-card {
    flex: 0 0 100%;
  }
  
  .team-member {
    flex: 0 0 100%;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-legal {
    flex-direction: column;
    gap: 1rem;
  }

  /* Styles for very small screens */
  .highlights-slider {
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .highlight-card {
    flex: 0 0 calc(100% - 1rem);
    margin: 0;
  }
  
  .highlight-card .time {
    font-size: 1.1rem;
    padding: 0.3rem 0.6rem;
  }
  
  .highlight-content img {
    height: 180px;
  }
  
  .highlight-content h3 {
    font-size: 1.5rem;
    padding: 0 1rem;
  }
  
  .highlight-content p {
    font-size: 1.2rem;
    padding: 0 1rem;
  }
  
  .category-tag {
    margin-left: 1rem;
    font-size: 1rem;
    padding: 0.2rem 0.6rem;
  }
  
  .slider-prev, .slider-next {
    width: 4rem;
    height: 4rem;
    font-size: 1.6rem;
  }
  
  .swipe-hint {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
}

/* ===== Enhanced Mobile Experience ===== */
body.menu-open {
  overflow: hidden; /* Prevent scrolling when menu is open */
}

/* Mobile Quick Navigation Bar - hidden on desktop by default */
.mobile-quick-nav {
  display: none; /* Hide on desktop */
}

/* Improved mobile menu toggle button */
.mobile-menu-toggle {
  width: 4.4rem;
  height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-left: auto;
  z-index: 1001; /* Higher than the menu to stay clickable */
}

.menu-open .hamburger-icon {
  background-color: transparent; /* Hide the middle line when menu is open */
}

.menu-open .hamburger-icon::before {
  transform: rotate(45deg);
}

.menu-open .hamburger-icon::after {
  transform: rotate(-45deg);
}

.menu-open .hamburger-icon::before,
.menu-open .hamburger-icon::after {
  top: 0; /* Center for rotation */
}

/* Add overlay when mobile menu is active */
body.menu-open::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 98;
  animation: fadeIn 0.3s ease-in-out forwards;
}

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

/* Enhanced mobile navigation */
@media (max-width: 768px) {
  .main-nav .nav-links {
    padding-top: 10rem; /* More space at the top */
    width: 85%; /* Wider for better content visibility */
    overflow-y: auto; /* Enable scrolling for tall menus */
  }
  
  /* Adjust the active indicator for mobile */
  .nav-links li a.active::after {
    left: auto;
    right: 0;
    transform: none;
    width: 4px;
    height: 70%;
    top: 15%;
  }
  
  .nav-links li a {
    font-size: 1.8rem; /* Larger text for better readability */
    padding: 1.2rem 1.5rem; /* Larger touch target */
    display: block; /* Full width touch target */
  }
  
  /* Absolute positioning for language selector on mobile */
  .language-selector {
    position: absolute;
    top: 1.5rem;
    right: 8rem;
    z-index: 900;
  }
}

/* Improved touch targets for buttons and interactive elements */
@media (max-width: 576px) {
  .btn {
    padding: 1.4rem 2.6rem; /* Larger padding for buttons */
    width: 100%; /* Full width on very small screens */
    max-width: 30rem; /* But not too wide on larger phones */
    margin: 0 auto;
  }
  
  .slider-prev, .slider-next {
    width: 4.4rem;
    height: 4.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.05);
    border-radius: 50%;
  }
  
  .dot {
    width: 1.2rem;
    height: 1.2rem;
  }
  
  .category-card {
    padding: 2.4rem 2rem; /* Slightly more compact but still finger-friendly */
  }
  
  .map-pin {
    width: 4rem; /* Larger pins */
    height: 4rem;
  }
  
  .social-icons a {
    width: 5rem; /* Larger social icons */
    height: 5rem;
  }
  
  /* Bottom fixed footer links for critical navigation */
  /* Mobile quick nav is now controlled in slider-fix.css */
  
  /* Improved experience for date pickers and filters in daily program */
  .program-filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .date-navigation {
    margin-bottom: 3rem;
  }
  
  .date-nav-btn {
    width: 5rem;
    height: 5rem;
  }
  
  /* Enhanced filter buttons on mobile */
  .filter-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 4.4rem;
    padding: 0;
    width: 100%;
  }
}

/* Even smaller devices - extremely small phones */
@media (max-width: 360px) {
  html {
    font-size: 45%; /* 7.2px base for very small screens */
  }
  
  h1 {
    font-size: 3.2rem;
  }
  
  h2 {
    font-size: 2.8rem;
  }
  
  .section-spacing {
    padding: 3rem 0;
  }
  
  .container {
    padding: 0 1rem;
  }
}

/* ===== Contact Page Styles ===== */
.contact-hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/astoria_main_photo.jpeg');
  background-size: cover;
  background-position: center;
  color: var(--light-text);
  text-align: center;
  padding: 6rem 0;
}

.contact-hero h1 {
  margin-bottom: 1rem;
  font-size: 4.2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-hero p {
  font-size: 1.8rem;
  max-width: 60rem;
  margin: 0 auto;
  opacity: 0.9;
}

.contact-information {
  padding: 6rem 0;
  background-color: var(--light-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
  gap: 3rem;
}

.contact-card {
  background: white;
  border-radius: 0.8rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
  padding: 2.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.12);
}

.contact-card:hover .contact-icon.emoji-only {
  box-shadow: 0 6px 15px rgba(0, 120, 194, 0.4);
}

.contact-card:hover .contact-emoji-main {
  animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

.contact-icon {
  width: 6rem;
  height: 6rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  position: relative;
  overflow: visible;
}

.contact-icon.emoji-only {
  background: linear-gradient(135deg, rgba(0, 120, 194, 0.9), rgba(0, 150, 230, 0.9));
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 120, 194, 0.3);
}

.contact-emoji-main {
  font-size: 3.3rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

.contact-icon i {
  font-size: 2.5rem;
  z-index: 1;
}

.contact-card h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.contact-card p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.contact-card a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-card a:hover {
  color: var(--primary-color);
}

.contact-card .note {
  font-style: italic;
  color: #777;
  font-size: 0.9em;
  margin-top: 1rem;
}

.contact-card i.fas {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.map-section {
  padding: 5rem 0;
}

.map-section h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.map-container {
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

.contact-form-section {
  padding: 6rem 0;
  background-color: var(--light-bg);
}

.contact-form-section h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.contact-form {
  max-width: 80rem;
  margin: 0 auto;
  background: white;
  padding: 3rem;
  border-radius: 0.8rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
}

.form-row {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.form-group {
  flex: 1;
  margin-bottom: 2rem;
}

.form-row .form-group {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.8rem;
  color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1.2rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1.6rem;
  background-color: #f9f9f9;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 120, 194, 0.2);
  outline: none;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.form-consent input {
  width: auto;
  margin-top: 0.3rem;
}

.form-consent label {
  font-weight: normal;
  font-size: 1.4rem;
  flex: 1;
}

.form-consent a {
  color: var(--primary-color);
  text-decoration: underline;
}

.form-status {
  padding: 1rem;
  margin-bottom: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  font-size: 1.5rem;
}

.form-status i {
  margin-right: 1rem;
  font-size: 2rem;
}

.form-status.success {
  background-color: rgba(40, 167, 69, 0.1);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.2);
}

.form-status.error {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.2);
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  padding: 1.2rem 2.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.6rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
  display: block;
  width: auto;
  margin: 0 auto;
}

.btn-primary:hover {
  background-color: #0066a6;
}

.contact-success-message {
  text-align: center;
  padding: 3rem;
}

.contact-success-message i {
  font-size: 6rem;
  color: #28a745;
  margin-bottom: 2rem;
}

.contact-success-message h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 2.4rem;
}

.contact-success-message p {
  margin-bottom: 2.5rem;
  font-size: 1.6rem;
}

/* Media queries for contact page */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-card {
    padding: 2rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 8rem; /* Above the mobile quick nav */
  right: 2rem;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 99;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 120, 194, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 120, 194, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 120, 194, 0);
  }
}

.back-to-top:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
  animation: none;
}

.back-to-top i {
  font-size: 2rem;
}

@media (max-width: 576px) {
  .back-to-top {
    width: 4rem;
    height: 4rem;
    bottom: 8.5rem;
    right: 1.5rem;
  }
}

/* When a modal is open, prevent body scrolling */
body.modal-open {
  overflow: hidden;
}

.swipe-hint {
  display: none; /* Hide by default on desktop */
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  color: #888;
}

/* Map Responsive Styles */
@media (max-width: 768px) {
  .desktop-map {
    display: none;
  }
  
  .mobile-map {
    display: block;
  }
  
  /* Reduce pin sizes on mobile */
  .map-pin {
    width: 4rem;
    height: 4rem;
  }
  
  .map-pin i {
    font-size: 2rem;
  }
  
  /* Adjust pin positions for mobile map */
  .map-pin[data-location="pool"] {
    top: 33% !important;
    left: 50% !important;
  }
  
  .map-pin[data-location="stage"] {
    top: 45% !important;
    left: 45% !important;
  }
  
  .map-pin[data-location="kids-club"] {
    top: 19% !important;
    left: 20% !important;
  }
  
  .map-pin[data-location="beach"] {
    top: 75% !important;
    left: 30% !important;
  }
  
  .map-pin[data-location="swimming-race"] {
    top: 32% !important;
    left: 15% !important;
  }
}

@media (max-width: 480px) {
  /* Further reduce pin sizes on very small screens */
  .map-pin {
    width: 3.5rem;
    height: 3.5rem;
  }
  
  .map-pin i {
    font-size: 1.8rem;
  }
  
  /* Fine-tune pin positions for very small screens */
  .map-pin[data-location="pool"] {
    top: 25% !important;
    left: 40% !important;
  }
  
  .map-pin[data-location="stage"] {
    top: 31% !important;
    left: 34% !important;
  }
  
  .map-pin[data-location="kids-club"] {
    top: 10% !important;
    left: 28% !important;
  }
  
  .map-pin[data-location="beach"] {
    top: 84% !important;
    left: 5% !important;
  }
  
  .map-pin[data-location="swimming-race"] {
    top: 22% !important;
    left: 27% !important;
  }
}

@media (max-width: 360px) {
  /* Extra small screens like iPhone SE */
  .map-pin[data-location="pool"] {
    top: 28% !important;
    left: 46% !important;
  }
  
  .map-pin[data-location="stage"] {
    top: 40% !important;
    left: 42% !important;
  }
  
  /* Add other pins if needed */
}