/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.opens-filters-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.opens-filters-form > fieldset {
  min-width: 0;
}

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

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  left: 0;
  position: absolute;
  top: 0;
}

.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
  user-select: none;
  -webkit-user-drag: none;
}

.leaflet-container .leaflet-tile {
  max-height: none !important;
  max-width: none !important;
}

.leaflet-tile {
  visibility: hidden;
}

.leaflet-tile-loaded {
  visibility: inherit;
}

.leaflet-pane {
  z-index: 400;
}

.leaflet-tile-pane {
  z-index: 200;
}

.leaflet-overlay-pane {
  z-index: 400;
}

.leaflet-shadow-pane {
  z-index: 500;
}

.leaflet-marker-pane {
  z-index: 600;
}

.leaflet-tooltip-pane {
  z-index: 650;
}

.leaflet-popup-pane {
  z-index: 700;
}

.leaflet-control-container .leaflet-top,
.leaflet-control-container .leaflet-bottom {
  pointer-events: none;
  position: absolute;
  z-index: 1000;
}

.leaflet-control-container .leaflet-top {
  top: 0;
}

.leaflet-control-container .leaflet-right {
  right: 0;
}

.leaflet-control-container .leaflet-bottom {
  bottom: 0;
}

.leaflet-control-container .leaflet-left {
  left: 0;
}

.leaflet-control {
  clear: both;
  float: left;
  pointer-events: auto;
  position: relative;
  z-index: 800;
}

.leaflet-right .leaflet-control {
  float: right;
}

.leaflet-top .leaflet-control {
  margin-top: 10px;
}

.leaflet-bottom .leaflet-control {
  margin-bottom: 10px;
}

.leaflet-left .leaflet-control {
  margin-left: 10px;
}

.leaflet-right .leaflet-control {
  margin-right: 10px;
}

.leaflet-bar {
  border: 2px solid rgb(0 0 0 / 0.2);
  border-radius: 4px;
}

.leaflet-bar a {
  background-color: #ffffff;
  border-bottom: 1px solid #cccccc;
  color: #000000;
  display: block;
  font: bold 18px/26px "Lucida Console", Monaco, monospace;
  height: 26px;
  text-align: center;
  text-decoration: none;
  width: 26px;
}

.leaflet-bar a:last-child {
  border-bottom: 0;
}

.leaflet-control-attribution {
  background: rgb(255 255 255 / 0.8);
  font-size: 11px;
  line-height: 1.4;
  padding: 0 5px;
}

.golf-map {
  min-height: 20rem;
}

.map-modal-open {
  overflow: hidden;
}

.opens-map-modal {
  align-items: end;
  display: grid;
  justify-items: center;
  z-index: 2000;
}

.opens-map-panel {
  background: #ffffff;
  border-radius: 0.5rem 0.5rem 0 0;
  box-shadow: 0 20px 40px rgb(15 23 42 / 0.25);
  max-height: 75vh;
  overflow-y: auto;
  width: 100%;
}

.opens-map-loading {
  align-items: flex-start;
  display: grid;
  gap: 1rem;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 1.5rem;
}

.opens-map-loading-spinner {
  animation: opens-map-loading-spin 0.8s linear infinite;
  border: 3px solid #d1fae5;
  border-radius: 9999px;
  border-top-color: #047857;
  height: 2rem;
  margin-top: 0.25rem;
  width: 2rem;
}

.opens-map-loading-label {
  color: #047857;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1rem;
  text-transform: uppercase;
}

.opens-map-loading-title {
  color: #09090b;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.75rem;
  margin-top: 0.25rem;
}

.opens-map-loading-copy {
  color: #52525b;
  font-size: 0.875rem;
  line-height: 1.25rem;
  margin-top: 0.5rem;
}

.opens-map-loading-skeletons {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.opens-map-loading-skeleton {
  background: linear-gradient(90deg, #f4f4f5 0%, #e4e4e7 50%, #f4f4f5 100%);
  background-size: 200% 100%;
  border-radius: 0.375rem;
  height: 1rem;
  animation: opens-map-loading-shimmer 1.1s ease-in-out infinite;
}

.opens-map-loading-skeleton-title {
  height: 1.25rem;
  width: 66%;
}

.opens-map-loading-skeleton-full {
  width: 100%;
}

.opens-map-loading-skeleton-short {
  width: 83%;
}

.golf-map-pin {
  align-items: center;
  background: #047857;
  border: 2px solid #ffffff;
  border-radius: 9999px 9999px 9999px 0;
  box-shadow: 0 8px 20px rgb(15 23 42 / 0.25);
  display: flex;
  height: 28px;
  justify-content: center;
  transform: rotate(-45deg);
  width: 28px;
}

.golf-map-pin-selected {
  background: #0f766e;
  box-shadow:
    0 0 0 4px rgb(15 118 110 / 0.2),
    0 8px 20px rgb(15 23 42 / 0.25);
}

.golf-map-pin::after {
  background: #ffffff;
  border-radius: 9999px;
  content: "";
  height: 10px;
  width: 10px;
}

@keyframes opens-map-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes opens-map-loading-shimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

@media (min-width: 768px) {
  .opens-map-modal {
    align-items: center;
  }

  .opens-map-panel {
    border-radius: 0.5rem;
    max-height: 90vh;
    max-width: 48rem;
  }
}

@media (min-width: 1024px) {
  .opens-filters-form {
    display: grid;
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, 1fr)
      minmax(0, 1.5fr)
      minmax(0, 2fr);
    align-items: end;
  }

  .opens-filters-date-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
}
