/* ========================================
   LOCATION PAGE STYLES
   Using CoastWise color scheme from index.html
   ======================================== */

/* Font Awesome Icon Fallbacks */
.fas, .far, .fab {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 5 Free", "Font Awesome 5 Pro", "FontAwesome" !important;
  font-weight: 900;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ensure icons are visible */
i[class*="fa-"] {
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

/* Specific icon styles for automated messages */
.automated-message-icon i.fa-robot,
.custom-message-icon i.fa-exclamation-triangle,
.data-icon i[class*="fa-"] {
  font-size: 1.5rem;
  color: #ffffff;
  margin-right: 8px;
}

/* Custom message icon specific styling */
.custom-message-icon {
  font-size: 8em;
  color: #f8d447;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 120px;
  gap: 10px;
}

.custom-message-icon i.fa-exclamation-triangle {
  font-size: 1em;
  color: #f8d447;
  animation: iconFlashLeft 0.8s infinite;
}

.custom-message-icon:last-child i.fa-exclamation-triangle {
  animation: iconFlashRight 0.8s infinite;
}

/* Wind arrow icon */
.wind-main-arrow {
  font-size: 1.2rem;
  color: #ffffff;
}

/* Data icon styling */
.data-icon i[class*="fa-"] {
  font-size: 48px;
  color: #ffffff;
  line-height: 1;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Weather card icons */
.weather-card .card-header i {
  font-size: 1.2em;
  color: #f8d447;
}

/* Agency icon styling */
.agency-icon {
  font-size: 48px;
  line-height: 1;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

/* Additional icon styling for various components */
.weather-icon {
  font-size: 48px;
  line-height: 1;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Automated message robot icon */
.automated-message-icon i.fa-robot {
  font-size: 2.5rem;
  color: #f8d447;
  animation: pulse 2s ease-in-out infinite;
}

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

/* ========================================
   SHARED PAGE CONTAINER STYLES
   (Used by location-page, water-quality-page, location-forecast-page)
   ======================================== */

.water-quality-page,
.location-forecast-page {
  min-height: 100vh;
  background-image: url('../images/sea.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  font-family: 'Rubik', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #FFFFFF;
  padding: 10px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

.water-quality-page::before,
.location-forecast-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 77, 151, 0.8) 0%, rgba(161, 45, 41, 0.8) 100%);
  z-index: -1;
}

/* ========================================
   MAIN CONTAINER
   ======================================== */

.location-page {
  min-height: 100vh;
  background-image: url('../images/sea.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  font-family: 'Rubik', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #FFFFFF;
  padding: 10px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding-bottom: 120px; /* Space for fixed disclaimer */
}

/* Shared main content styles for water-quality and location-forecast pages */
.water-quality-page .main-content,
.location-forecast-page .main-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  height: 100%;
}

/* Location forecast specific main content */
.location-forecast-page .main-content {
  background-color: #004d97;
  border-top: none;
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.location-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 77, 151, 0.8) 0%, rgba(161, 45, 41, 0.8) 100%);
  z-index: -1;
}

/* ========================================
   LOCATION HEADER STYLES
   (Moved to shared location-header.css)
   ======================================== */

.status-badge {
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9em;
  text-transform: uppercase;
}

.status-badge.active {
  background-color: #28a745;
  color: #FFFFFF;
}

.status-badge.inactive {
  background-color: #dc3545;
  color: #FFFFFF;
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.main-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  height: 100vh;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Shared content grid for water-quality page */
.water-quality-page .content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Location forecast specific content grid */
.location-forecast-page .content-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 100%;
}

/* ========================================
   CUSTOM MESSAGE SECTION
   ======================================== */

.custom-message-section {
  background-color: #cb3839;
  border: 10px solid #f8d447;
  border-radius: 25px 25px 25px 25px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-height: 120px;
  height: auto;
  overflow: visible;
  margin-top: 10px;
  padding: 30px;
  
}



.custom-message-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex: 1;
  position: relative;
  min-height: fit-content;
  height: auto;
  padding: 10px;
}

.custom-message-icon:first-child .fa-exclamation-triangle {
  animation: iconFlashLeft 0.8s infinite;
}

.custom-message-icon:last-child .fa-exclamation-triangle {
  animation: iconFlashRight 0.8s infinite;
}

@keyframes iconFlashLeft {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes iconFlashRight {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}


.custom-message-text {
  flex: 1;
  text-align: center;
}

.custom-message-text h3 {
  font-size: 2.5em;
  font-weight: bold;
  color: #FFFFFF;
  margin: 10px 0;
  text-align: center;
}

.custom-message-text p {
  font-size: 1.5em;
  color: #FFFFFF;
  margin: 10px 0 20px 0;
  opacity: 0.9;
  font-weight: bold;
}

.custom-message-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-message-meta small {
  font-size: 1.1em;
  color: #FFFFFF;
  opacity: 1;
  font-style: italic;
}

.custom-message-meta small strong {
  font-weight: bold;
  opacity: 1;
}

/* Message Type Specific Styles */
.custom-message-section.warning {
  background-color: #cb3839;
  border-color: #f8d447;
}

.custom-message-section.info {
  background-color: #004d97;
  border-color: #ffffff;
}

.custom-message-section.info .custom-message-icon {
  color: #ffffff;
}


.custom-message-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 10px;
}

.message-type-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.2em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.message-type-badge.warning {
  background-color: #f8d447;
  color: #cb3839;
}

.message-type-badge.info {
  background-color: #ffffff;
  color: #004d97;
}

/* Rounded box wrapper for message-type-badge */
.message-type-badge-wrapper {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.message-type-badge-wrapper.warning {
  background: #f8d447;
  color: #cb3839;
  border: none;
}

.message-type-badge-wrapper.info {
  background: #ffffff;
  color: #004d97;
  border: none;
}

.message-type-badge-wrapper:hover {
  transform: translateY(-2px);
}

/* ========================================
   AUTOMATED MESSAGE STYLES
   ======================================== */

.automated-message-section {
  background-color: #cb3839;
  border: 10px solid #f8d447;
  border-radius: 25px 25px 25px 25px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-height: 120px;
  height: auto;
  overflow: visible;
  margin-top: 10px;
  padding: 30px;
}

.automated-message-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex: 1;
  position: relative;
  min-height: fit-content;
  height: auto;
  padding: 10px;
}

.automated-message-icon {
  font-size: 8em;
  color: #f8d447;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 120px;
  gap: 10px;
}

.automated-message-icon i.fa-exclamation-triangle {
  font-size: 1em;
  color: #f8d447;
  animation: iconFlashLeft 0.8s infinite;
}

.automated-message-icon:last-child i.fa-exclamation-triangle {
  animation: iconFlashRight 0.8s infinite;
}

.automated-message-icon i {
  font-size: 2.5rem;
  color: #f8d447;
  animation: pulse 2s ease-in-out infinite;
}

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

.automated-message-text {
  flex: 1;
  text-align: center;
}

.automated-message-text h3 {
  font-size: 2.5em;
  font-weight: bold;
  color: #FFFFFF;
  margin: 10px 0;
  text-align: center;
}

.automated-message-text p {
  font-size: 1.5em;
  color: #FFFFFF;
  margin: 10px 0 20px 0;
  opacity: 0.9;
  font-weight: bold;
}

.automated-message-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.automated-message-meta small {
  font-size: 1.1em;
  color: #FFFFFF;
  opacity: 1;
  font-style: italic;
}

.automated-message-meta small strong {
  font-weight: bold;
  opacity: 1;
}

.message-type-badge-wrapper.automated {
  background: linear-gradient(135deg, #f8d447 0%, #ffc107 100%);
  color: #004d97;
  border: 2px solid #f8d447;
  box-shadow: 0 2px 8px rgba(248, 212, 71, 0.3);
}

.message-type-badge-wrapper.automated:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(248, 212, 71, 0.5);
}

/* ========================================
   SECTION TITLES
   ======================================== */

.section-title {
  background-color: #004d97;
  color: #FFFFFF;
  padding: 15px 20px;
  margin: 0;
  font-size: 1.4em;
  font-weight: bold;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.section-title i {
  font-size: 1.2em;
}

/* Water quality specific section title */
.water-quality-page .section-title {
  background-color: #004d97;
  color: #FFFFFF;
  padding: 15px 20px;
  margin: 0px 0px 10px 0px;
  font-size: 1.4em;
  font-weight: bold;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.water-quality-page .section-title i {
  font-size: 1.2em;
  color: #f8d447;
}

/* Location forecast specific section title */
.location-forecast-page .section-title {
  border: 2px solid #f8d447;
  border-radius: 15px;
  font-size: 1.8em;
  font-weight: bold;
  color: #f8d447;
  margin: 0px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.location-forecast-page .section-title i {
  font-size: 1.2em;
}

/* ========================================
   TIDAL SECTION
   ======================================== */

.tidal-section {
  border-radius: 0 0 10px 10px;
  box-sizing: border-box;
  margin-bottom: 10px;
}

.tidal-content {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.tidal-graph {
  background-color: #004d97;;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.tidal-chart {
  border: 2px solid #f8d447;
  border-radius: 15px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center horizontally */
  justify-content: center; /* Center vertically */
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}

.tidal-graph-container {
  display: flex;
  flex-direction: column;
  gap: 0px; /* Remove gap to eliminate empty space */
  height: auto;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.tidal-svg {
  width: 100%;
  height: 250px;
  max-width: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
  overflow: visible;
  transition: all 0.3s ease;
  cursor: pointer;
  height: auto
}

.tidal-svg:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

/* SVG Text Labels */
.tide-time-label {
  font-family: 'Rubik', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 9px !important;
}

.tide-height-label {
  font-family: 'Rubik', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 10px !important;
}

.tide-type-label {
  font-family: 'Rubik', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-transform: uppercase;
  font-size: 8px !important;
}



.no-tidal-data {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #FFFFFF;
  font-size: 1.1em;
  opacity: 0.8;
}

/* ========================================
   WEATHER SECTION
   ======================================== */


/* ========================================
   LOADING AND ERROR STATES
   ======================================== */

/* Loading state, error state, and loading spinner now defined in base.css */

/* Retry button now defined in base.css */

.no-data-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #FFFFFF;
  text-align: center;
}

.no-data-state p {
  font-size: 1.1em;
  margin-bottom: 20px;
  opacity: 0.8;
}

/* Shared loading and error states for water-quality and location-forecast pages */
.water-quality-page .loading-state,
.water-quality-page .error-state,
.water-quality-page .no-data-state,
.location-forecast-page .loading-state,
.location-forecast-page .error-state,
.location-forecast-page .no-data-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #FFFFFF;
  text-align: center;
}

/* ========================================
   ADVERT CAROUSEL
   ======================================== */

.advert-carousel {
  background: rgba(255, 255, 255, 0.05);
}

.carousel-container {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 1.5s ease-in-out;
  width: 100%;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  width: 100%;
}

.advert-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.advert-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.advert-card img {
  width: 75%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  max-width: 75%;
}

.advert-content {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.advert-content h3 {
  color: #FFFFFF;
  font-size: 2.4em;
  font-weight: bold;
  margin: 0 0 8px 0;
}

.advert-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.4em;
  margin: 0;
  line-height: 1.4;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.carousel-prev,
.carousel-next {
  background: rgba(0, 77, 151, 0.8);
  color: #FFFFFF;
  border: 2px solid #f8d447;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
  pointer-events: all;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(0, 77, 151, 1);
  border-color: #f8d447;
  transform: scale(1.1);
}

/* Advert Loading and Empty States */
.advert-loading,
.advert-empty {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1em;
}

.advert-loading p,
.advert-empty p {
  margin: 0;
  opacity: 0.8;
}

/* Advert Audience Info */
.advert-audience {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.advert-audience small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9em;
  font-style: italic;
}

/* Video Advert Styling */
.advert-card video {
  width: 75%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  max-width: 75%;
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

/* ========================================
   DISCLAIMER SECTION
   ======================================== */

.disclaimer-section {
  background-color: #cb3839;
  border: 10px solid #f8d447;
  padding: 20px;
  border-radius: 25px 25px 25px 25px;
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  z-index: 1000;
}

.disclaimer-title {
  font-size: 2em;
  font-weight: bold;
  color: #FFFFFF;
  margin: 10px 0 20px 0;
  text-align: center;
}

.disclaimer-content {
  color: #FFFFFF;
  line-height: 1.6;
  text-align: left;
  width: 100%;
}

.disclaimer-content p {
  margin: 15px 0;
  font-size: 1.2em;
  opacity: 0.9;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Mobile-first approach - base styles for mobile */
@media (max-width: 1024px) {
  .location-page {
    padding: 8px;
  }

  .content-grid {
    gap: 8px;
  }

  .main-data-card {
    margin: 8px 0;
  }
}

/* Tablet optimizations */
@media (max-width: 900px) {
  .qr-sections-container {
    flex-direction: column;
    gap: 20px;
  }

  .forecast-qr-container,
  .water-quality-qr-container {
    flex-direction: row;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .location-page,
  .water-quality-page,
  .location-forecast-page {
    padding: 5px;
  }
  
  /* Custom Message Section Responsive */
  .custom-message-section {
    padding: 15px;
    border-width: 6px;
    gap: 10px;
    min-height: 100px;
    margin-bottom: 15px;
  }
  
  .custom-message-content {
    flex-direction: column;
    gap: 15px;
  }
  
  .custom-message-icon {
    font-size: 4.5em;
    min-width: 90px;
    height: 90px;
  }
  
  .custom-message-text h3 {
    font-size: 2em;
  }
  
  .custom-message-text p {
    font-size: 1em;
  }
  
  /* Header styles moved to shared location-header.css */
  
  .back-button {
    position: static;
    display: inline-block;
    margin: 10px 5px;
  }
  
  /* Shared back button styles for water-quality and location-forecast pages */
  .water-quality-page .back-button,
  .location-forecast-page .back-button {
    position: static;
    display: inline-block;
    margin: 10px 5px;
  }
  
  /* Location details styles moved to shared location-header.css */
  
  .weather-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .content-grid {
    gap: 5px;
  }
  
  .section-title {
    font-size: 1.2em;
    padding: 10px 15px;
  }
  
  /* Shared section title responsive styles */
  .water-quality-page .section-title,
  .location-forecast-page .section-title {
    font-size: 1.2em;
    padding: 10px 15px;
  }
  
  /* Location forecast specific section title responsive */
  .location-forecast-page .section-title {
    font-size: 1.5em;
  }
  
  .tidal-section,
  .weather-section,
  .map-section,
  .info-section {
    padding: 0px;
  }
  
  .tidal-graph {
    min-height: auto; /* Remove fixed min-height */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    overflow: hidden;
    margin: 15px 0;
  }
  
  .tidal-chart {
    height: 280px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
  }
  
  .tidal-graph-container {
    /* Tablet-specific tidal graph container styling */
    touch-action: manipulation;
    overflow: hidden;
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100vw;
    height: auto;
    gap: 0px;
    padding: 0px;
    margin: 0px;
    transform: scale(2) translateX(var(--current-time-offset, 0%));
    transform-origin: center center;
    transition: transform 0.5s ease;
  }
  
  .tidal-svg {
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  }

  /* Mobile-specific improvements for main data cards */
  .main-data-card {
    margin: 10px 0;
    padding: 15px;
  }

  .data-main-info {
    flex-direction: column;
    gap: 15px;
  }

  .data-separator {
    display: none; /* Hide separators on mobile for cleaner look */
  }

  .data-details {
    text-align: center;
    margin-bottom: 15px;
  }

  .metric-main-info {
    text-align: center;
    margin-bottom: 10px;
  }

  .metric-main-value {
    font-size: 1.8em;
  }

  .metric-main-label {
    font-size: 0.9em;
  }

  .metric-main-description {
    font-size: 0.8em;
  }

  /* Hide QR codes on mobile */
  .qr-sections-container,
  .forecast-qr-section,
  .water-quality-qr-section,
  .forecast-qr-container,
  .water-quality-qr-container,
  .forecast-qr-code,
  .water-quality-qr-code {
    display: none !important;
  }

  /* Advert carousel mobile improvements */
  .advert-carousel {
    margin: 15px 0;
    padding: 15px;
  }

  .advert-card {
    flex-direction: column;
    height: auto;
    min-height: 200px;
  }

  .advert-card img,
  .advert-card video {
    width: 100%;
    height: 150px;
    object-fit: cover;
    max-width: 100%;
  }

  .advert-content {
    padding: 15px;
    text-align: center;
  }

  .advert-content h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
  }

  .advert-content p {
    font-size: 1em;
    line-height: 1.4;
  }

  /* Carousel controls mobile optimization */
  .carousel-controls {
    position: relative;
    top: auto;
    transform: none;
    margin-top: 15px;
    justify-content: center;
  }

  .carousel-prev,
  .carousel-next {
    position: static;
    margin: 0 10px;
  }

  /* Water quality cards mobile optimization */
  .sub-water-quality-card {
    margin: 10px 0;
    padding: 15px;
  }

  .agency-icon {
    font-size: 2em;
    margin-bottom: 10px;
  }

  .agency-details {
    text-align: center;
  }

  .agency-name {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 5px;
  }

  .agency-status {
    font-size: 1em;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  /* Custom Message Section Small Screens */
  .custom-message-section {
    padding: 12px;
    border-width: 4px;
    gap: 8px;
    min-height: 80px;
    margin-bottom: 12px;
  }
  
  /* Shared responsive styles for water-quality and location-forecast pages */
  .water-quality-page,
  .location-forecast-page {
    padding: 5px;
  }
  
  .custom-message-content {
    gap: 12px;
  }
  
  .custom-message-icon {
    font-size: 4em;
    min-width: 80px;
    height: 80px;
  }
  
  .custom-message-text h3 {
    font-size: 1.5em;
  }
  
  .custom-message-text p {
    font-size: 0.9em;
  }
  
  /* Header styles moved to shared location-header.css */
  
  .weather-card {
    padding: 15px;
    min-height: 100px;
  }
  
  .metric-value {
    font-size: 1.5em;
  }
  
  .card-header h3 {
    font-size: 1em;
  }
  
  .info-card {
    padding: 15px;
  }
  
  .tidal-graph {
    padding: 8px; /* Reduce padding further for small screens */
    min-height: auto; /* Remove fixed min-height */
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 77, 151, 0.95), rgba(0, 77, 151, 0.85));
    border: 2px solid rgba(255, 188, 0, 0.4);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    overflow: hidden;
    margin: 12px 0;
  }
  
  .tidal-chart {
    height: 220px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 8px;
    overflow: hidden;
  }
  
  .tidal-svg {
    height: 180px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
  }

  /* Touch-friendly improvements for mobile */
  .carousel-prev,
  .carousel-next {
    width: 50px;
    height: 50px;
    font-size: 1.5em;
    touch-action: manipulation;
  }

  .retry-button,
  .back-button {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
    padding: 12px 20px;
  }

  /* Improve touch targets for mobile */
  .advert-card {
    cursor: pointer;
    touch-action: manipulation;
  }

  /* Mobile-specific tidal graph improvements */
  .tidal-graph-container {
    touch-action: manipulation;
    overflow: hidden; /* Crop content that exceeds container */
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100vw;
    height: auto;
    /* Remove any gaps or padding that create empty space */
    gap: 0px;
    padding: 0px;
    margin: 0px;
    /* Zoom and crop the content, with current time centering */
    transform: scale(2.2) translateX(var(--current-time-offset, 0%)); /* Zoom in by 20% and center current time */
    transform-origin: center center; /* Zoom from center */
    transition: transform 0.5s ease; /* Smooth transition as time progresses */
  }
  
  /* Enhanced tidal graph mobile styling */
  .tidal-graph {
    position: relative;
    transition: all 0.3s ease;
    /* Remove all extra space on mobile */
    min-height: auto !important;
    height: auto !important;
    padding: 5px !important;
    margin: 0px !important;
  }
  
  .tidal-graph:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  }
  
  .tidal-chart {
    position: relative;
    transition: all 0.3s ease;
    /* Center the graph content */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Mobile-specific tidal SVG styling - inherits base styles */

  /* Mobile-specific text sizing for tidal graph */
  .tide-time-label,
  .tide-height-label,
  .tide-type-label {
    font-size: 11px;
    font-weight: 600;
    fill: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  }
  
  /* Enhanced tidal graph labels for mobile */
  .tidal-graph .tide-label {
    font-size: 12px;
    font-weight: 700;
    fill: #f8d447;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  }
  
  /* Mobile tidal graph axis labels */
  .tidal-graph .axis-label {
    font-size: 10px;
    font-weight: 500;
    fill: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  }

  /* Mobile-specific data update time */
  .data-update-time {
    font-size: 0.8em;
    text-align: center;
    margin-top: 8px;
  }

  /* Enhanced mobile optimizations for very small screens */
  .location-page {
    padding: 3px;
  }

  .main-data-card {
    margin: 8px 0;
    padding: 12px;
  }

  .data-card-title {
    font-size: 1.2em;
    margin-bottom: 10px;
  }

  .data-main-info {
    gap: 12px;
  }

  .data-details {
    margin-bottom: 12px;
  }

  .temperature {
    font-size: 2em;
  }

  .weather-condition {
    font-size: 1em;
  }

  .feels-like {
    font-size: 0.9em;
  }

  .metric-main-value {
    font-size: 1.6em;
  }

  .metric-main-label {
    font-size: 0.85em;
  }

  .metric-main-description {
    font-size: 0.75em;
  }

  /* Hide QR codes on very small screens */
  .qr-sections-container,
  .forecast-qr-section,
  .water-quality-qr-section,
  .forecast-qr-container,
  .water-quality-qr-container,
  .forecast-qr-code,
  .water-quality-qr-code {
    display: none !important;
  }

  /* Advert carousel for very small screens */
  .advert-carousel {
    margin: 12px 0;
    padding: 12px;
  }

  .advert-card {
    min-height: 180px;
  }

  .advert-card img,
  .advert-card video {
    height: 120px;
  }

  .advert-content {
    padding: 12px;
  }

  .advert-content h3 {
    font-size: 1.3em;
    margin-bottom: 8px;
  }

  .advert-content p {
    font-size: 0.9em;
    line-height: 1.3;
  }

  /* Water quality cards for very small screens */
  .sub-water-quality-card {
    margin: 8px 0;
    padding: 12px;
  }

  .agency-icon {
    font-size: 1.8em;
    margin-bottom: 8px;
  }

  .agency-name {
    font-size: 1em;
    margin-bottom: 4px;
  }

  .agency-status {
    font-size: 0.9em;
    margin-bottom: 8px;
  }

  /* Section titles for very small screens */
  .section-title {
    font-size: 1.1em;
    padding: 8px 12px;
  }
  
  /* Shared section title responsive styles for water-quality and location-forecast pages */
  .water-quality-page .section-title,
  .location-forecast-page .section-title {
    font-size: 1.1em;
    padding: 8px 12px;
  }
  
  /* Location forecast specific section title for small screens */
  .location-forecast-page .section-title {
    font-size: 1.3em;
  }

  /* Disclaimer section for very small screens */
  .disclaimer-section {
    padding: 15px;
    margin: 10px 0;
  }

  .disclaimer-title {
    font-size: 1.5em;
    margin: 8px 0 15px 0;
  }

  .disclaimer-content p {
    font-size: 1em;
    margin: 12px 0;
  }
  
  /* Shared disclaimer responsive styles for water-quality and location-forecast pages */
  .water-quality-page .disclaimer-title,
  .location-forecast-page .disclaimer-title {
    font-size: 1.5em;
    margin: 8px 0 15px 0;
  }

  .water-quality-page .disclaimer-content p,
  .location-forecast-page .disclaimer-content p {
    font-size: 1em;
    margin: 12px 0;
  }
  
  /* Water quality specific disclaimer for small screens */
  .water-quality-page .disclaimer-title {
    font-size: 1.3em;
  }
  
  .water-quality-page .disclaimer-content p {
    font-size: 0.8em;
    margin: 10px 0;
  }
}

/* ========================================
   WIND/WAVE SPECIFIC STYLES
   ======================================== */

.wind-card {
  border-left: 5px solid #17a2b8;
}

.wind-direction-card {
  border-left: 5px solid #20c997;
}

.wave-card {
  border-left: 5px solid #6f42c1;
}

.wave-direction-card {
  border-left: 5px solid #e83e8c;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  .weather-card,
  .info-card,
  .back-button,
  .retry-button {
    transition: none;
  }
  
  .loading-spinner {
    animation: none;
  }
  
  /* Shared reduced motion styles for water-quality and location-forecast pages */
  .water-quality-page .back-button,
  .water-quality-page .retry-button,
  .location-forecast-page .back-button,
  .location-forecast-page .retry-button {
    transition: none;
  }
  
  .water-quality-page .loading-spinner,
  .location-forecast-page .loading-spinner {
    animation: none;
  }
}

@media (max-width: 360px) {
  /* Header styles moved to shared location-header.css */
}

/* Focus styles for keyboard navigation */
.back-button:focus,
.retry-button:focus {
  outline: 2px solid #f8d447;
  outline-offset: 2px;
}

/* Shared focus styles for water-quality and location-forecast pages */
.water-quality-page .back-button:focus,
.water-quality-page .retry-button:focus,
.location-forecast-page .back-button:focus,
.location-forecast-page .retry-button:focus {
  outline: 2px solid #f8d447;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .weather-card {
    border: 2px solid #FFFFFF;
  }
  
  .back-button,
  .retry-button {
    border-width: 3px;
  }
  
  /* Shared high contrast styles for water-quality and location-forecast pages */
  .water-quality-page .back-button,
  .water-quality-page .retry-button,
  .location-forecast-page .back-button,
  .location-forecast-page .retry-button {
    border-width: 3px;
  }
}

/* ========================================
   LOCATION HEADER LAYOUT & QR CODE
   (Moved to shared location-header.css)
   ======================================== */

/* ========================================
   FORECAST QR CODE SECTION
   ======================================== */

.forecast-qr-section {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

/* QR Sections Container - Horizontal Layout */
.qr-sections-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
  margin: 20px 0;
}

.forecast-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.forecast-qr-container h3 {
  color: #FFFFFF;
  margin: 0;
  font-size: 1.1em;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.forecast-qr-code {
  padding: 8px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.forecast-qr-code img {
  width: 100px;
  height: 100px;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.forecast-qr-code img:hover {
  transform: scale(1.05);
}

.forecast-qr-text {
  font-size: 0.9em;
  color: #FFFFFF;
  margin: 0;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Water Quality QR Container */
.water-quality-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  flex: 1;
}

.water-quality-qr-container h3 {
  color: #FFFFFF;
  margin: 0;
  font-size: 1.1em;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.water-quality-qr-code {
  padding: 8px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.water-quality-qr-code img {
  width: 100px;
  height: 100px;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.water-quality-qr-code img:hover {
  transform: scale(1.05);
}

.water-quality-qr-text {
  font-size: 0.9em;
  color: #FFFFFF;
  margin: 0;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Responsive header layout */
@media (max-width: 768px) {
  /* Header responsive styles moved to shared location-header.css */
  
  /* Hide header QR codes on mobile */
  .header-qr-section,
  .header-qr-section #qr-code-image,
  .header-qr-section #qr-code-container,
  .header-qr-section .qr-description {
    display: none !important;
  }
  
  /* Hide QR sections on mobile */
  .qr-sections-container,
  .forecast-qr-container,
  .water-quality-qr-container {
    display: none !important;
  }
}

/* ========================================
   CURRENT WEATHER SECTION
   ======================================== */

.current-weather-section {
  margin: 20px 0;
}

.main-data-card {
  background: linear-gradient(135deg, rgba(0, 77, 151, 0.9) 0%, rgba(161, 45, 41, 0.9) 100%);
  border: 2px solid #f8d447;
  border-radius: 15px;
  padding: 40px;
  margin-bottom: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  position: relative;
}

.data-card-title {
  position: absolute;
  top: 10px;
  left: 15px;
  color: #f8d447;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 1;
}

.data-main-info {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  margin-bottom: 11px;
  flex-wrap: wrap;
}

.data-separator {
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, #f8d447, transparent);
  margin: 0 8px;
  opacity: 0.7;
}

.weather-icon {
  font-size: 48px;
  line-height: 1;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Agency Section Styling */
.agency-section {
  margin: 20px 0;
}

.agency-main-info {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 15px;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.agency-icon {
  font-size: 48px;
  line-height: 1;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.agency-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 90px;
}

.agency-name {
  font-size: 0.83em;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0;
}

.agency-status {
  font-size: 0.68em;
  color: #20c997;
  font-weight: 500;
  margin: 0;
}

.agency-description {
  font-size: 0.6em;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.data-icon {
  font-size: 48px;
  line-height: 1;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.data-details {
  text-align: left;
}

.metric-main-info {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-main-value {
  font-size: 2.25em;
  font-weight: bold;
  color: #FFFFFF;
  line-height: 1;
}

.metric-main-label {
  font-size: 0.9em;
  color: #FFFFFF;
  opacity: 0.8;
  line-height: 1;
}

.metric-main-description {
  font-size: 0.83em;
  color: #FFFFFF;
  opacity: 0.9;
  line-height: 1;
}

.wind-main-arrow {
  transition: transform 0.3s ease;
}

.temperature {
  font-size: 2.25em;
  font-weight: bold;
  color: #FFFFFF;
  line-height: 1;
  margin-bottom: 4px;
}

.weather-condition {
  font-size: 0.9em;
  color: #FFFFFF;
  opacity: 0.9;
  margin-bottom: 4px;
}

.feels-like {
  font-size: 0.75em;
  color: #FFFFFF;
  opacity: 0.8;
}

.data-update-time {
  font-size: 0.6em;
  color: #FFFFFF;
  opacity: 0.5;
  font-style: italic;
  text-align: right;
  margin-top: auto;
  padding-top: 10px;
}

.weather-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 15px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.weather-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.weather-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.weather-card .card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}

.weather-card .card-header i {
  font-size: 1.2em;
  color: #f8d447;
}

.weather-card .card-header h3 {
  font-size: 1em;
  color: #FFFFFF;
  margin: 0;
  font-weight: 600;
}

.weather-card .card-content {
  color: #FFFFFF;
}

.weather-card .metric-value {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFFFFF;
  margin-bottom: 3px;
}

.weather-card .metric-unit {
  font-size: 0.7em;
  opacity: 0.8;
  margin-left: 2px;
}

.weather-card .metric-label {
  font-size: 0.85em;
  color: #FFFFFF;
  opacity: 0.8;
  margin-bottom: 5px;
}

.wind-gusts {
  font-size: 0.8em;
  opacity: 0.7;
  color: #f8d447;
}

.wind-gusts-prominent {
  font-size: 1.2em;
  font-weight: bold;
  color: #FFFFFF;
  margin: 5px 0;
  opacity: 0.9;
}

/* Wind card specific layout */
.wind-info-grid {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.wind-speed-section {
  flex: 1;
  text-align: center;
  min-width: 0;
  overflow: hidden;
}

.wind-direction-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 188, 0, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(255, 188, 0, 0.3);
  min-width: 0;
  overflow: hidden;
}

.wind-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.wind-direction-text {
  font-size: 0.9em;
  font-weight: bold;
  color: #FFFFFF;
  text-align: center;
  line-height: 1.2;
}

.precip-detail {
  font-size: 0.75em;
  opacity: 0.8;
  color: #20c997;
  margin-top: 3px;
}

/* ========================================
   MARINE WEATHER SECTION
   ======================================== */

.marine-weather-section {
  margin: 20px 0;
}

.section-subtitle {
  font-size: 1.1em;
  color: #FFFFFF;
  margin-bottom: 10px;
  text-align: center;
  font-weight: 600;
}

/* ========================================
   HOURLY FORECAST SECTION
   ======================================== */


/* ========================================
   RESPONSIVE WEATHER SECTIONS
   ======================================== */

@media (max-width: 768px) {
  .data-main-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  
  .weather-data-group,
  .metric-data-group {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 12px;
  }
  
  /* Make weather data group span full width on mobile */
  .weather-data-group {
    grid-column: 1 / -1;
  }
  
  .data-separator {
    width: 45px;
    height: 2px;
    background: linear-gradient(to right, transparent, #f8d447, transparent);
    margin: 8px 0;
  }
  
  .data-details {
    text-align: center;
  }
  
  /* Agency Section Responsive */
  .data-main-info {
    flex-direction: column;
    gap: 8px;
  }
  
  .agency-icon {
    margin-right: 0;
    margin-bottom: 4px;
  }
  
  .agency-details {
    align-items: center;
    text-align: center;
    min-width: auto;
  }
  
  .metric-main-info {
    text-align: center;
  }
  
  .metric-main-value {
    font-size: 1.88em;
  }
  
  .metric-main-label {
    font-size: 0.83em;
  }
  
  .metric-main-description {
    font-size: 0.75em;
    justify-content: center;
  }
  
  .temperature {
    font-size: 1.88em;
  }
  
  .weather-metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
  }
  
  .weather-card {
    padding: 12px;
  }
  
  .weather-card .metric-value {
    font-size: 1.5em;
  }
  
  
  .advert-card {
    height: 250px;
    flex-direction: column;
  }
  
  .advert-card img {
    width: 100%;
    height: 60%;
  }
  
  .advert-content {
    padding: 15px;
    text-align: center;
  }
  
  .advert-content h3 {
    font-size: 1em;
  }
  
  .advert-content p {
    font-size: 0.8em;
  }
  
  .disclaimer-title {
    font-size: 1.5em;
  }
  
  .disclaimer-content {
    padding: 0 10px;
  }
  
  .disclaimer-content p {
    font-size: 0.9em;
    margin: 12px 0;
  }
  
  /* Shared disclaimer responsive styles */
  .water-quality-page .disclaimer-title,
  .location-forecast-page .disclaimer-title {
    font-size: 1.5em;
  }
  
  .water-quality-page .disclaimer-content,
  .location-forecast-page .disclaimer-content {
    padding: 0 10px;
  }
  
  .water-quality-page .disclaimer-content p,
  .location-forecast-page .disclaimer-content p {
    font-size: 0.9em;
    margin: 12px 0;
  }
  
  .daily-date {
    font-size: 0.8em;
  }
  
  .daily-icon {
    font-size: 1.5em;
  }
  
  .daily-temps {
    gap: 6px;
  }
  
  .daily-high {
    font-size: 1em;
  }
  
  .daily-low {
    font-size: 0.9em;
  }
  
  /* Wind card responsive adjustments */
  .wind-info-grid {
    flex-direction: column;
    gap: 10px;
  }
  
  .wind-direction-section {
    padding: 8px;
  }
  
  .wind-arrow i {
    font-size: 1.2em !important;
  }
  
  .wind-direction-text {
    font-size: 0.8em;
  }
}


/* ========================================
   INLINE STYLES EXTRACTED TO CSS
   ======================================== */

/* Tidal SVG responsive sizing - consolidated into base styles above */

/* Wind arrow rotation styles */
.wind-main-arrow {
  color: #FFFFFF;
  transition: transform 0.3s ease;
}

.wind-arrow {
  color: #f8d447;
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

/* ========================================
   FORECAST QR CODE IN WEATHER SECTION
   ======================================== */

.forecast-qr-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  justify-content: flex-end;
  margin-left: auto;
  float: right;
}

.forecast-qr-container .metric-main-info {
  text-align: center;
}

.forecast-qr-container .metric-main-label {
  font-weight: bold;
}

.forecast-qr-code img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ========================================
   DATA GROUP STYLING
   ======================================== */

.weather-data-group {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 15px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.metric-data-group {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 15px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ========================================
   WATER QUALITY GLASS EFFECT
   ======================================== */

.sub-water-quality-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 15px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
}