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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#map {
  flex: 1;
  width: 100%;
}

footer.footer-links {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #2c3e50;
  z-index: 1000;
  color: #dee2e6;
}
main {
  padding-bottom: 60px; /* enough room so content doesn't hide behind footer */
}

footer {
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 0.8rem;
  font-size: 0.9rem;
}

.footer-links {
  background-color: #2c3e50;
  font-size: 12px;
}

.footer-links .footer-link {
  color: #ffffff;
  text-decoration: none;
}

.footer-links .footer-link:hover {
  text-decoration: underline;
}

#searchbox {
  position: relative;
  width: 300px;
}

.header-wrapper .dropdown {
  margin-left: auto;
}

.dropdown-toggle {
  color: white !important;
}

#map {
  flex-grow: 1;
  width: 100%;
  z-index: 2 !important;
}

.main-header {
  background-color: #2c3e50;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-bottom: 5px solid #88a2aa;
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 60px;
  max-height: 60px;
  object-fit: contain;
}

.gm-style-iw-d {
  margin-top: -25px !important;
}

/* Button Styling */
#myBtn {
  background-color: #34495e;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  transform: scale(1.05);
  float: right;
}

#myBtn:hover {
  background-color: #34495e;
  transform: scale(1.05);
}

#myBtn:focus {
  outline: none;
}

/* Modal Styling */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Black with transparency */
  justify-content: center;
  align-items: center;
  opacity: 100;
  transition: opacity 0.3s ease-in-out;
}

.range-slider {
  flex: 1; /* Let it fill the remaining space */
}

.circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  font-size: 18px;
}
.container-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin: 0 auto;
  flex-wrap: wrap;
}

.leaflet-popup-content {
  width: 100% !important;
}

/* Green circle styling */
.green {
  background-color: #00ff00;
  border: 3px solid #008000;
  opacity: 50%;
  display: inline;
}

/* Yellow circle styling */
.yellow {
  background-color: #ffff00;
  border: 3px solid #808000;
  opacity: 50%;
  display: inline;
}

/* Red circle styling */
.red {
  background-color: #ff0000;
  border: 3px solid #8b0000;
  opacity: 50%;
  display: inline;
}

.fa-question-circle {
  font-size: 28px;
}

.inline {
  display: inline;
  height: 100px;
}

.gm-style-iw-ch {
  padding-top: 7px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 20px;
  float: left;
}

#searchButton {
  background-color: #2c3e50 !important;
}

.filter-header {
  border-radius: 12px 12px 0 0 !important;
}

.filter-group {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.filter-group h5 {
  font-weight: 600;
  color: #2c3e50;
}

.filter-group input[type="time"] {
  width: 100px;
  font-size: 14px;
}

.fa-clock {
  padding-right: 3px;
}

.logo {
  height: 75px;

  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.btn-primary {
  background-color: #88a2aa !important;
  border: none !important;
}
.logo img {
  max-height: 65%;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
}
.time {
  font-weight: bold;
  font-size: 14px;
  color: #88a2aa;
}

.range-slider {
  position: relative;
  height: 5px;
  background: #ddd;
  border-radius: 5px;
  margin-top: 10px;
}

.range-input {
  position: absolute;
  width: 100%;
  height: 5px;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  z-index: 2;
}

.range-input::-webkit-slider-thumb {
  height: 17px;
  width: 17px;
  border-radius: 50%;
  background: #17a2b8;
  pointer-events: auto;
  -webkit-appearance: none;
}

.range-input::-moz-range-thumb {
  height: 17px;
  width: 17px;
  border-radius: 50%;
  background: #17a2b8;
  pointer-events: auto;
}

.slider-track {
  position: absolute;
  height: 5px;
  width: 100%;
  background: #ddd;
  border-radius: 5px;
  z-index: 1;
}
.holes-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  width: 100%;
  padding: 4px 0;
}

.holes-btn {
  padding: 8px;
  font-size: 13px;
  border-radius: 10px;
  background: #ffffff;
  border: 2px solid #2c3e50;
  color: #2c3e50;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  text-align: center;
}

.holes-btn.active,
.holes-btn:hover {
  background: #2c3e50;
  color: #ffffff;
  transform: scale(1.03);
}

.slider-progress {
  position: absolute;
  height: 5px;
  background: #17a2b8;
  border-radius: 5px;
  z-index: 1;
}
#playerMin {
}
.info-row {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 13px;
  color: #ffffff;
}

.club-name {
  margin: 12px 0 4px;
  font-size: 15px;
  font-weight: normal;
  color: rgb(202, 202, 202);
}

input[type="time"] {
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 16px;
  padding: 8px 6px;
  color: #333;
  background-color: #f9f9f9 !important;
  width: 100%;
}

.price {
  font-weight: bold;
  color: #ffffff;
  font-size: 16px;
}
/* iOS-inspired Filter Group Styling */
.filter-group-ios {
  background: #f5f8fb;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.2s;
  width: 100%;
}

/* Filter summary: Use the same style for all sizes */
#filterSummary {
  position: absolute;
  top: 2px;
  left: 3%; /* Adjust as needed for consistent spacing */
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  width: auto;
  max-width: 95%;
  align-items: center;
  justify-content: center;
  display: none;
}

/* Pills inside filter summary */
.filter-pill {
  background: #e8f0f2;
  color: #2c3e50;
  font-weight: 600;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-family: "Segoe UI", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

#playerMin {
  display: none;
}
.filter-group-ios:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.filter-group-ios h6 {
  font-size: 14px;
  font-weight: 600;
  color: #6e6e73;
}

.form-label-ios {
  font-size: 13px;
  font-weight: 500;
  color: #6e6e73;
}

.form-control-ios {
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 16px;
  padding: 8px 6px;
  color: #333;
  background-color: #f9f9f9 !important;
}

.form-control-ios:focus {
  background: #e5e5ea;
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.25);
}

#selectedTimeRange {
  font-size: 13px;
  color: #6e6e73;
}

/* Responsive Layout: Stack vertically on small screens */
@media (max-width: 480px) {
  .d-flex.align-items-center.gap-2.flex-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .form-control-ios {
    width: 100%;
  }

  .filter-pill {
    font-size: 11px;
  }
}

.book-button {
  margin-top: 16px;
  width: 100%;
  padding: 8px;
  font-size: 13px;
  color: #e74c3c;
  border: 1px solid #e74c3c;
  border-radius: 6px;
  background-color: white;
  cursor: pointer;
}

#resultsDropdown {
  color: black;
  font-size: 12px;
}

/* Filter Toggle Button */
.filter-toggle {
  position: fixed;
  top: 18%;
  right: 5%;
  background-color: #4c88c925;
  color: #000000;
  border: none;
  padding: 12px 16px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 1001;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close-filter-btn {
  margin-left: 90% !important;
  background: none;
  border: none;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  z-index: 10;
}

.close-filter-btn:hover {
  color: #000;
}

/* Filter Overlay */
.filter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999 !important;
  pointer-events: all;
  width: 100vw;
  height: 100vh;
}
/* Compact & Modern Vertical Filter Layout */
.filter-container {
  background-color: #fff;
  padding: 16px;
  border-radius: 16px;
  width: 92vw;
  max-width: 320px;
  box-sizing: border-box;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin: 0 auto;
}

.filter-group {
  background: #f5f8fb;
  border-radius: 16px;
  padding-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  text-align: center;
  width: 100%;
}

.filter-group label {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

.player-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 100%;
  padding: 4px 0;
}

.player-btn {
  padding: 8px;
  font-size: 13px;
  border-radius: 10px;
  background: #ffffff;
  border: 2px solid #2c3e50;
  color: #2c3e50;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  text-align: center;
}

.player-btn.active,
.player-btn:hover {
  background: #2c3e50;
  color: #ffffff;
  transform: scale(1.03);
}

input,
select,
button {
  font-size: 16px;
}

.filter-actions {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.filter-actions button {
  background-color: #2c3e50;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.filter-actions button:hover {
  background-color: #1a252f;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .skinnyP {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

  .dropdown-toggle {
    display: none !important;
  }

  .filter-container {
    background-color: #ffffff;
    padding: 0px 20px 20px 20px;
    border-radius: 20px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    max-height: 90vh;
    overflow-y: auto;
    margin-top: -75px;
  }

  .header-wrapper {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0px !important;
  }

  .main-header {
    padding-bottom: 10px !important;
    padding-top: 10px !important;
  }
  #searchBox {
    width: 100%;
    max-width: 300px;
    padding: 0;
    margin: 0 auto;
  }

  .logo-img {
    max-width: 100%;
    height: 55px;
  }

  .helpIcon {
    align-self: flex-end;
    display: none !important;
  }

  .filter-toggle {
    position: fixed;
    top: 25%;
    right: 4%;
  }

  .moneyInput {
    min-width: 110px;
    width: 100%;
  }

  #searchInput {
    font-size: 13px !important;
    padding: 8px 20px !important;
    width: 80% !important;
    border: none !important;
    outline: none !important;
    margin: 0 !important;
    box-shadow: none !important;
    -webkit-text-size-adjust: 100% !important; /* helps prevent zooming */
  }

  .logo-container {
    margin-left: 24%;
    margin-top: -15px !important;
  }

  .player-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    width: 100%;
    height: 60px;
    padding: 5px;
  }

  #myBtn {
    display: none; /* Hide the button on small screens */
  }

  #search-box {
    display: none;
  }

  .theModal {
    max-width: 280px !important;
    font-size: 12px !important;
  }

  .modalBox {
    font-size: 11px !important;
    padding: 6px !important;
  }

  .modalBox div,
  .modalBox span {
    font-size: 11px !important;
  }

  .theModal span {
    font-size: 12px !important;
  }

  .modalBox i {
    font-size: 10px !important;
  }

  .theModal h3,
  .popup-card h3 {
    font-size: 14px !important;
  }

  .popup-card .subtext,
  .popup-card .status {
    font-size: 11px !important;
  }

  .leaflet-popup-content {
    font-size: 12px !important;
  }

  .timeFont {
    font-size: 10px;
  }

  .logo {
    margin-right: -50px;
  }

  .close-filter-btn {
    margin-left: 90% !important;
    background: none;
    border: none;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    z-index: 10;
    margin-bottom: -10px;
  }
}

.leaflet-popup-content-wrapper {
  border-radius: 12px;
  background-color: #ffffff;
  color: #000000;
  font-family: "Arial", sans-serif;
  padding: 8px 12px;
  padding-right: 24px;
  min-width: 300px;
}
.leaflet-popup-tip {
  background: #222;
}

.popup-card {
  font-family: "Segoe UI", sans-serif;
  max-width: 300px;
}

.popup-card h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.status {
  color: #e63946;
  font-weight: bold;
}

.subtext {
  font-size: 12px;
  color: #444;
  margin-bottom: 8px;
}

.tee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tee-time {
  background-color: #2d3748;
  color: #fff;
  padding: 8px;
  border-radius: 8px;
  font-size: 12px;
  text-align: center;
}

.tee-time strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.tee-time .price {
  margin-top: 4px;
  font-weight: bold;
  color: #90ee90;
}

#map {
  background: rgba(0, 120, 255, 0.06); /* Subtle blue hint */
}

.blueFont {
  color: #2d3748;
}

#searchBox {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 8px;
}

#searchInput {
  width: 100%;
  padding: 8px 16px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: border 0.3s, box-shadow 0.3s;
  font-family: "Segoe UI", sans-serif;
}

#searchInput:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
  outline: none;
}

.logo {
  max-height: 25px;
}

/* Safari-specific layout and spacing fixes */
@supports (-webkit-touch-callout: none) {
  .filter-container {
    max-width: 320px !important;
    width: 92vw !important;
    padding: 16px !important;
    box-sizing: border-box;
  }

  .form-control-ios {
    font-size: 16px !important;
    line-height: 1.3 !important;
    -webkit-appearance: none;
    appearance: none;
  }

  input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(0.5);
  }

  .player-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px !important;
  }

  .range-slider {
    height: 6px !important;
  }

  .range-input::-webkit-slider-thumb {
    height: 17px;
    width: 17px;
  }
}

.filter-container {
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@supports (-webkit-touch-callout: none) {
  .modalBox {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
  }

  .modalBox > div:first-child {
    white-space: nowrap;
  }

  .modalBox span {
    display: block;
    text-align: center;
  }

  .modalBox .fa-user,
  .modalBox .fa-golf-ball-tee {
    font-size: 10px !important;
  }

  .modalBox span,
  .modalBox div {
    line-height: 1.2 !important;
  }
}

@supports (-webkit-touch-callout: none) {
  .modalBox {
    font-size: 12px !important;
    padding: 8px 6px !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .modalBox > div {
    max-width: 100%;
    overflow-wrap: break-word;
  }
}
