/* Page title wrapper styling */
.page-title-wrapper {
  margin-bottom: 1rem;
}

.location-breadcrumb-title {
  color: #939292;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.location-breadcrumb-title a {
  color: #939292;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
  text-decoration: none;
}

.page-title-text {
  display: block;
}

h1.page-title {
  margin-bottom: 0.25rem;
  padding-right: 10rem;
}

.page-subtitle {
  display: block;
  font-size: 1.3125rem;
}

.swellnet-forecast-v2[data-vite-app="true"] .eyebrow {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 8px;
}

.swellnet-forecast-v2 h1 {
  display: none;
}

@media (max-width: 768px) {
  .swellnet-forecast-v2[data-vite-app="true"] {
    margin-left: -20px;
    margin-right: -20px;
  }

  .location-title,
  .eyebrow {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Graph Skeleton Loader Styles */
.graph-skeleton {
  display: block;
}

.graph-skeleton.hidden {
  display: none;
}

.skeleton-container {
  width: 100%;
  overflow: hidden;
  height: 36rem;
  border-top: 1px solid #e5e7eb;
}

/* Controls Bar Skeleton */
.skeleton-controls-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-direction: column;
  margin-bottom: 16px;
  margin-top: 16px;
  padding-right: 16px;
}

.skeleton-main-chart {
  background-color: #f9fafb;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .skeleton-controls-bar {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (min-width: 1024px) {
  .skeleton-controls-bar {
    align-items: center;
    flex-direction: row;
  }
}

.skeleton-controls-left {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-direction: column;
  position: relative;
}

@media (min-width: 1024px) {
  .skeleton-controls-left {
    align-items: center;
    flex-direction: row;
  }
}

.skeleton-controls-left-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  justify-content: space-between;
}

@media (min-width: 640px) {
  .skeleton-controls-left-row {
    width: fit-content;
    justify-content: flex-start;
    align-items: baseline;
  }
}

@media (min-width: 1024px) {
  .skeleton-controls-left-row {
    gap: 40px;
    align-items: center;
  }
}

.skeleton-controls-right {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (min-width: 640px) {
  .skeleton-controls-right {
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .skeleton-controls-right {
    width: 100%;
    max-width: 24rem;
  }
}

.skeleton-control {
  height: 1.875rem;
  background-color: #e5e7eb;
}

.skeleton-control--h-6 {
  height: 24px;
}

.skeleton-control--w-16 {
  width: 64px;
}

.skeleton-control--w-28 {
  width: 112px;
}

.skeleton-control--w-32 {
  width: 128px;
}

.skeleton-control--w-48 {
  width: 192px;
}

.skeleton-radius-sm {
  border-radius: 2px;
}

.skeleton-radius-md {
  border-radius: 6px;
}

/* Skeleton Pulse Animation */
@keyframes skeleton-pulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

.skeleton-pulse {
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  background: linear-gradient(90deg, #e5e7eb, #f3f4f6, #e5e7eb);
  background-size: 200% 100%;
}

/* Time Axis */
.skeleton-time-axis {
  display: flex;
  justify-content: space-around;
  margin-top: 12px;
  margin-bottom: 8px;
  padding-left: 32px;
  padding-top: 12px;
  height: fit-content;
}

.skeleton-time-label {
  height: 16px;
  width: 40px;
  background-color: #e5e7eb99;
  border-radius: 2px;
}

/* Main Chart Area */
.skeleton-chart-area {
  display: flex;
  gap: 4px;
  height: 192px;
  padding-left: 0.75rem;
}

@media (min-width: 768px) {
  .skeleton-chart-area {
    height: 16rem;
    padding-left: 2rem;
  }
}

/* Y-Axis */
.skeleton-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding-left: 20px;
  padding-right: 12px;
}

.skeleton-y-label {
  height: 12px;
  width: 16px;
  background-color: #d1d5db;
  border-radius: 2px;
}

/* Graph Container */
.skeleton-graph-container {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 4px;
  overflow: hidden;
  position: relative;
  height: 100%;
}

/* Background Bands */
.skeleton-background-bands {
  position: absolute;
  inset: 0;
  display: flex;
  overflow: hidden;
  z-index: 0;
}

.skeleton-band {
  flex: 1;
  height: 100%;
  min-width: 16rem;
}

.skeleton-band-1,
.skeleton-band-3,
.skeleton-band-5 {
  background-color: #e5e7eb99;
}

.skeleton-band-2,
.skeleton-band-4 {
  background-color: #f3f4f699;
}

@media (max-width: 768px) {
  .skeleton-band-3,
  .skeleton-band-4,
  .skeleton-band-5 {
    display: none;
  }
}

/* Bars Container */
.skeleton-bars-container {
  display: flex;
  align-items: flex-end;
  height: 100%;
  gap: 4px;
  position: relative;
  z-index: 10;
}

.skeleton-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.skeleton-bar {
  width: 16px;
  background-color: #9ca3af;
  min-height: 20%;
}

@media (min-width: 768px) {
  .skeleton-bar {
    width: 32px;
  }
}

/* Wind Section */
.skeleton-wind-section {
  height: 3.5rem;
  overflow: hidden;
}
.skeleton-wind-wrapper {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 1rem;
  justify-content: flex-start;
  padding-left: 4.5rem;
  width: max-content;
  min-width: 100%;
}

@media (min-width: 768px) {
  .skeleton-wind-wrapper {
    padding-left: 5.75rem;
  }
}
.skeleton-wind-item {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.skeleton-wind-icon {
  height: 16px;
  width: 16px;
  background-color: #d1d5db;
  border-radius: 2px;
}

.skeleton-wind-text {
  height: 8px;
  width: 12px;
  background-color: #d1d5db;
  border-radius: 2px;
}

/* Weather Chart */
.skeleton-weather-chart {
  align-items: center;
  background-color: #f9fafb;
  display: flex;
  flex-direction: row;
  gap: 8px;
  justify-content: flex-start;
  padding: 1rem 0;
  padding-left: 4.375rem;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .skeleton-weather-chart {
    padding-left: 5.75rem;
  }
}
.skeleton-weather-chart::before,
.skeleton-weather-chart::after {
  background-color: rgba(229, 231, 235, 0.5);
  content: "";
  height: 1px;
  right: 0;
  position: absolute;
  width: calc(100% - 4.5rem);
}

.skeleton-weather-chart::before {
  top: 0;
}

.skeleton-weather-chart::after {
  bottom: 0;
}
@media (min-width: 768px) {
  .skeleton-weather-chart::before,
  .skeleton-weather-chart::after {
    width: calc(100% - 5.375rem);
  }
}
.skeleton-weather-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.skeleton-weather-icon {
  width: 20px;
  height: 20px;
  background-color: #d1d5db;
  border-radius: 50%;
  aspect-ratio: 1;
}

.skeleton-weather-temp {
  width: 12px;
  height: 8px;
  background-color: rgba(209, 213, 219, 0.8);
  border-radius: 50%;
  aspect-ratio: 16/9;
}

/* Tide Chart */
.skeleton-tide-chart {
  background-color: #f9fafb;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  overflow: hidden;
  padding-bottom: 16px;
  padding-left: 4.5rem;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 4px;
  justify-content: flex-start;
  height: 80px;
}

@media (min-width: 768px) {
  .skeleton-tide-chart {
    padding-left: 5.5rem;
  }
}

.skeleton-tide-bar {
  background-color: #e5e7eb;
  border-radius: 4px;
  min-height: 4px;
  min-width: 12px;
  width: 12px;
}

/* Error message styling */
.forecast-error-message {
  background-color: #f8f9fa;
  margin: 1.25rem auto;
  max-width: 37.5rem;
  padding: 2.5rem 1.25rem;
  text-align: center;
}

.forecast-error-message h2 {
  color: #6c757d;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.forecast-error-message p {
  font-size: 1rem;
  margin: 0;
}

.forecast-error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.25rem;
}

/* Responsive styles */
@media (min-width: 1200px) {
  .skeleton-weather-chart {
    gap: 8px;
  }

  .skeleton-weather-item {
    flex-shrink: 0;
  }
}

@media (max-width: 1024px) {
  h1.page-title {
    font-size: 1.75rem;
    padding-right: 2.5rem;
  }
  .page-subtitle {
    font-size: 1.125rem;
  }
}

@media (max-width: 768px) {
  .forecast-error-message {
    padding: 1.25rem 0.75rem;
  }

  .forecast-error-message h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .forecast-error-actions {
    flex-direction: column;
  }
}
