:root {
  --main-color: #071952;
  --white1-color: #f8f8f8;
  --white2-color: #fdfdfd;
  --h1-color: #202b81;
  --h2-color: #036698;
  --h3-color: #5197b5;
  --text1-color: #30313d;
  --text2-color: #6e6a69;
  --text3-color: #a9a3a2;
  --success-color: #029c5a;
  --danger-color: #ed1c01;
  --warning-color: #dfc902;
}

.main-color {
  color: var(--main-color);
}

.main-bg-color {
  background-color: var(--main-color);
}

.white1-color {
  color: var(--white1-color);
}

.white1-bg-color {
  background-color: var(--white1-color);
}

.white2-color {
  color: var(--white2-color);
}

.white2-bg-color {
  background-color: var(--white2-color);
}

.h1-color {
  color: var(--h1-color);
}

.h1-bg-color {
  background-color: var(--h1-color);
}

.h2-color {
  color: var(--h2-color);
}

.h2-bg-color {
  background-color: var(--h2-color);
}

.h3-color {
  color: var(--h3-color);
}

.h3-bg-color {
  background-color: var(--h3-color);
}

.text1-color {
  color: var(--text1-color);
}

.text1-bg-color {
  background-color: var(--text1-color);
}

.text2-color {
  color: var(--text2-color);
}

.text2-bg-color {
  background-color: var(--text2-color);
}

.text3-color {
  color: var(--text3-color);
}

.text3-bg-color {
  background-color: var(--text3-color);
}

.success-color {
  color: var(--success-color);
}

.success-bg-color {
  background-color: var(--success-color);
}

.danger-color {
  color: var(--danger-color);
}

.danger-bg-color {
  background-color: var(--danger-color);
}

.warning-color {
  color: var(--warning-color);
}

.warning-bg-color {
  background-color: var(--warning-color);
}

a {
  text-decoration: none;
}

body {
  background-color: var(--white2-color);
  color: var(--text1-color);
  padding-top: 3.75rem;
}

img {
  mix-blend-mode: multiply;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: top 0.5s ease-in-out;
  background-color: var(--white2-color);
}

.navbar-hidden {
  top: -4.5rem; /* Move navbar out of view when scrolling down */
}

.navbar-brand .logo {
  height: 3.5rem; /* Maintain desired height */
  max-width: 100%; /* Ensure the image doesn't exceed its container */
  margin: 0;
  margin-right: 0.1rem;
  padding: 0;
  mix-blend-mode: multiply;
  image-rendering: auto; /* Use default rendering for smoother output */
  /* Consider commenting out or removing these lines if the image still looks too sharp */
}

.navbar-brand .logo-name {
  color: var(--main-color);
  font-weight: bold;
}

nav .nav-link {
  position: relative;
  color: var(--main-color);
  font-weight: 500;
}

nav .nav-link::after {
  content: '';
  position:absolute;
  background-color: var(--h1-color);
  height: 2px;
  width: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.3s;
}

nav .nav-link:hover {
  color: var(--h1-color);
}

nav .nav-link:hover::after {
  width: 100%;
}

.section {
  padding: 0.5rem;
  margin: 0;
}

.hero-section {
  position: relative;
  height: 80dvh;
  overflow: hidden;
  background-image: url('../img/home-6.avif');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2); /* lighter overlay for glass effect */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 80%;
  padding: 4rem 2rem;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  color: var(--white2-color);
}

.hero-content .features-pills {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  z-index: 2;
}

.hero-content .features-pills .feature-pill {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: var(--h2-color);
  color: var(--white2-color);
  border-radius: 0.35rem;
  font-weight: 500;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  cursor: default;
}

.hero-content .features-pills .feature-pill:hover {
  background: var(--h1-color);
  transform: scale(1.05);
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background-color: var(--h1-color);
  color: var(--white1-color);
  border: 1px solid var(--white1-color);
  border-radius: 0.35rem;
  font-size: clamp(1.25rem, 1.25rem + 1vw, 2rem);
  font-weight: 500;
  padding: 1.5rem 2rem;
  line-height: 1.2;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition:
    background-color 0.3s ease-in-out,
    color 0.3s ease-in-out,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.hero-btn:hover {
  background-color: var(--main-color);
  color: var(--white1-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.hero-btn .text-block {
  display: inline-block;
  text-align: left;
  margin-right: 0.5rem;
  white-space: nowrap;
}

.hero-btn .icon-circle {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  position: relative;
  color: var(--white2-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.hero-btn .icon-circle i {
  position: absolute;
  font-size: clamp(2rem, 2vw + 1rem, 3.25rem);
  line-height: 1;
  opacity: 1;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  will-change: transform;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5))
          drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.25));
}

.hero-btn .icon-circle i.copy {
  transform: translate(-150%, 150%);
  opacity: 0;
  transition-delay: 0.05s;
}

.hero-btn:hover .icon-circle i:first-child {
  transform: translate(150%, -150%);
  opacity: 0;
}

.hero-btn:hover .icon-circle i.copy {
  transform: translate(0);
  opacity: 1;
}

.hero-btn:not(:hover) .icon-circle i:first-child {
  transform: translate(0);
  opacity: 1;
}

.hero-btn:not(:hover) .icon-circle i.copy {
  transform: translate(-150%, 150%);
  opacity: 0;
}

.hero-btn:hover .icon-circle i {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.75))
          drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.3));
}

.find-your-ground-filters .dropdown > a {
  cursor: pointer;
  color: var(--text1-color);
}

.find-your-ground-filters a.active-filter {
  background-color: var(--h3-color);
  color: var(--white2-color);
}

.find-your-ground-filters .form-check-input {
  display: none;
}

.find-your-ground-filters label:has(input:not([type="range"])) {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: all 0.2s ease;
  cursor: pointer;
  margin: 0.05rem;
  color: var(--text1-color);
  background-color: var(--white2-color);
  font-size: 0.9rem;
  transition: color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.find-your-ground-filters label:has(input:not([type="range"])).active-label {
  color: var(--h3-color);
  border-color: var(--h3-color);
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.15);
  font-weight: 500;
}

.find-your-ground-filters .dropdown-menu.show {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.5rem;
  max-width: 90vw;
  background-color: var(--white1-color);
}

.find-your-ground-filters .dropdown-menu.show .dropdown-item {
  display: flex !important;
  flex: 0 0 auto;
  width: auto !important;
  padding: 0;
  margin: 0;
  align-items: center;
}

.find-your-ground-filters .dropdown-menu.show .dropdown-item:hover {
  background-color: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
}

.find-your-ground-filters .dropdown-menu.show .dropdown-item label i.bi-star-fill {
  color: var(--warning-color);
}

.find-your-ground-filters .dropdown-menu.show .dropdown-item label span {
  color: var(--text2-color);
  font-size: 0.8rem;
}

.find-your-ground-filters .dropdown-menu.show .dropdown-item label.active-label span {
  color: var(--h3-color) !important;
  font-weight: 500;
}

#top-grounds {
  background-image: url('../img/balls_bg.avif');
  background-repeat: repeat;
  background-position: center center;
  background-size: contain;
  background-color: transparent;
}

#home-features {
  background-image: url('../img/bats_bg.avif');
  background-repeat: repeat;
  background-position: center center;
  background-size: contain;
  background-color: transparent;
}

footer {
  background-color: var(--text1-color);
  padding: 25px 10px;
  margin-top: 4rem;
}

@media (min-width: 992px) {
  footer {
    padding: 50px 20px;
  }
}

/* Wrapper for buttons */
.signup-form .choose-role {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  justify-content: center; /* centers grid inside container */
  max-width: 500px;        /* optional: restrict overall width */
  margin: 0 auto;           /* horizontally center the grid */
}

.signup-form .choose-role h3 {
  grid-column: 1 / -1;  /* span all columns */
  text-align: center;    /* center text */
  margin: 0.5rem 0 -0.25rem 0;
}

/* Role buttons stacked style */
.signup-form .role-btn {
  display: flex;
  flex-direction: column;       /* stack icon above text */
  align-items: center;          /* center horizontally */
  justify-content: center;      /* center vertically */
  padding: 2rem;
  font-weight: 600;
  text-align: center;
  border: 2px solid var(--h2-color);
  color: var(--h2-color);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  background: var(--white1-color);
  min-height: 150px;            /* ensures equal height */
}

/* Icon inside role button */
.signup-form .role-btn i {
  font-size: 3rem;              /* large icon */
  margin-bottom: 0.25rem;        /* space between icon and text */
}

/* Text inside role button */
.signup-form .role-btn span {
  font-size: 1.5rem;              /* smaller text below icon */
}

.signup-form .role-btn:hover {
  background: var(--h2-color);
  color: var(--white1-color);
}

/* Highlight selected button */
.signup-form input[type="radio"]:checked + label {
  background: var(--h1-color);
  color: var(--white1-color);
  border-color: var(--main-color); /* dark color */
}

/* Hide buttons when one is selected */
.signup-form #register_player:checked ~ .choose-role,
.signup-form #register_owner:checked ~ .choose-role {
  display: none;
}

/* Form fields slide-in from right */
.signup-form .form-fields {
  max-width: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
  transform: translateX(100%);
  transition: all 0.6s ease;
}

/* Show form fields when a role is selected */
.signup-form #register_player:checked ~ .form-fields,
.signup-form #register_owner:checked ~ .form-fields {
  max-width: 5000px;   /* large enough to fit all fields */
  max-height: 5000px;
  opacity: 1;
  padding: 1rem;        /* restore normal padding */
  margin-top: 1rem;
  transform: translateX(0);
}

/* Hide both by default */
#registering_owner,
#registering_player {
  display: none;
  color: var(--h2-color);
}

/* Show "Ground Owner" when owner radio is checked */
#register_owner:checked ~ .form-fields #registering_owner {
  display: inline;
}

/* Show "Player" when player radio is checked */
#register_player:checked ~ .form-fields #registering_player {
  display: inline;
}

.faq-title {
  color: var(--h2-color);
  position: relative;
  padding-left: 10px;
}

.faq-title::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background-color: var(--danger-color);
}

.accordion-button {
  font-size: 1.2rem;
}

.accordion-button:focus {
  outline: 1px solid gray;
  box-shadow: none;
  background-color: inherit;
}

.accordion-body {
  font-size: 1.1rem;
  padding: 0 1.5rem 0.5rem 2.5rem;
}

#all-features {
  background-image: url('../img/bats_balls_bg.avif');
  background-repeat: repeat;
  background-position: center center;
  background-size: contain;
  background-color: transparent;
}

.features {
  margin: 0;
}

.feature {
  margin: 1rem 0.2rem;
  background-color: var(--white1-color);
}

.feature-img {
  height: 16rem;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.feature-header {
  font-size: 1.75rem;
  font-weight: 500;
  margin: 1rem;
  color: var(--h2-color);
}

.feature-text {
  font-size: 1.25rem;
  margin: 1rem;
  color: var(--text1-color);
}

.all-features .feature {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
}

.all-features .feature:nth-child(1) {
  animation-delay: 0.0s;
}

.all-features .feature:nth-child(2) {
  animation-delay: 0.40s;
}

.all-features .feature:nth-child(3) {
  animation-delay: 0.80s;
}

.all-features .feature:nth-child(4) {
  animation-delay: 1.2s;
}

.all-features .feature:nth-child(5) {
  animation-delay: 1.6s;
}

.all-features .feature:nth-child(6) {
  animation-delay: 2.0s;
}

.all-features .feature:nth-child(7) {
  animation-delay: 2.4s;
}

.all-features .feature:nth-child(8) {
  animation-delay: 2.8s;
}

.all-features .feature:nth-child(9) {
  animation-delay: 3.2s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wrapper {
  z-index: 2000;
  border: none;
  width: 300px;
  position: fixed;
  right: 30px;
  padding: 0;
  margin: 0;
  top: 50px;
}

.notification {
  width: 100%;
  padding: 2px 5px 0 5px;
  font-size: 16px;
  background-color: var(--white1-color);
  border-radius: 2px;
  display: grid;
  grid-template-columns: 0.8fr 6fr 0.5fr;
  box-shadow: 0 6px 10px #7B7F88;
  animation: notification-entry 0.25s;
}

@keyframes notification-entry {
  0% {
    opacity: 0;
    transform: translateX(10%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.success-msg {
  border: 0;
  border-left: 8px solid var(--success-color);
}

.bi-check-circle {
  color: var(--success-color);
  font-weight: 500;
  font-size: 1.3em;
  align-items: center;
}

.error-msg {
  border: 0;
  border-left: 8px solid var(--danger-color);
}

.bi-x-circle {
  color: var(--danger-color);
  font-weight: 500;
  font-size: 1.3em;
  align-items: center;
}

.info-msg {
  border: 0;
  border-left: 8px solid var(--text2-color);
}

.bi-info-circle {
  color: var(--text2-color);
  font-weight: 500;
  font-size: 1.3em;
  align-items: center;
}

.container-1, .container-2 {
  align-self: center;
  margin: 0;
  padding: 2px;
  text-align: left;
}

.container-2 p {
  font-size: 16px;
  color: var(--text1-color);
  font-weight: 500;
  margin: 0;
  padding: 2px;
}

.notification button {
  padding-top: 20px;
  align-self: flex-start;
  background-color: transparent;
  border: none;
  font-size: 12px;
  line-height: 0;
  cursor: pointer;
  color: rgb(51, 51, 51);
}

input, select {
  outline: none;
  border: 0.05em solid gray;
  border-radius: 6px;
  padding: 2px;
}

.form-control:focus, .form-select:focus {
  border-color: #4A90E2;
  outline: none;
  box-shadow: 0 0 2px rgba(74, 144, 226, 0.8);
}

.field-error ul, .non-field-errors ul {
  list-style-type: none;
  margin: 0;
  padding: 1px;
  font-size: 12px;
  color: #FF0000;
  font-weight: bold;
}

.errorlist.nonfield ul {
  list-style-type: none;
  margin: 0;
  padding: 1px;
  font-size: 12px;
  color: #FF0000;
  font-weight: bold;
}

.booking-not-available-legend {
  width: 20px;
  height: 20px;
  background-color: var(--text3-color);
  margin: 0 4px;
  border: 1px solid var(--text3-color);
}

.booking-available-legend {
  width: 20px;
  height: 20px;
  background-color: var(--white2-color);
  margin: 0 4px;
  border: 1px solid var(--text2-color);
}

.booking-selected-legend {
  width: 20px;
  height: 20px;
  background-color: var(--main-color);
  margin: 0 4px;
  border: 1px solid var(--main-color);
}

.booking-not-available {
  width: 80px;
  height: 42px;
  padding: 1px;
  justify-content: center;
  align-items-center: center;
  background-color: var(--text3-color);
}

.booking-available {
  background-color: var(--white2-color);
  color: var(--white2-color);
}

.time-button {
  width: 80px;
  height: 42px;
  padding: 1px;
  justify-content: center;
  align-items-center: center;
}

.time-button.booking-selected {
  background-color: var(--main-color);
  color: var(--white1-color);
}

.booking-receipt-logo {
  height: auto; /* Allow height to scale with width */
  max-height: 2.3rem; /* Limit max height */
  max-width: 100%; /* Limit width to container size */
  mix-blend-mode: multiply;
  image-rendering: auto;
  object-fit: contain; /* Maintain aspect ratio */
  display: inline-block; /* Align image to the start */
}

.page-header {
  color: var(--h2-color);
  font-size: 1.3em;
  font-weight: 500;
  position: relative;
  margin-bottom: 10px;
  padding: 0.25em 2em 0.25em 0.7em;
  width: fit-content;
}

.page-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0.35em;
  background-color: var(--warning-color);
}

.dash-card {
  height: 8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url('../img/bats_balls_bg.avif');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-color: var(--white1-color);
}

.search-div {
  max-height: 300px;
}

.search {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 14px;
  border-radius: 28px;
  background: var(--white1-color);
  transition: background 0.25s;
}

.search:focus-within {
  background: #f8f8f8;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.search-input {
  font-size: 16px;
  margin-left: 14px;
  outline: none;
  border: none;
  background: transparent;
  width: 100%;
}

.search-results {
  width: 100%;
  overflow-y: auto;
  padding: 0.5rem;
}

.result-item {
  width: 100%;
  text-decoration: none;
  padding: 0.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
  margin: 0;
  display: flex;
  justify-content: left;
  align-items: center;
  background: transparent;
  transition: background 0.25s;
  cursor: pointer;
}

.result-item:hover {
  background: #f6f6f6;
}

.search-label {
    font-size: 0.75rem;
    white-space: nowrap;
    background-color: rgba(169, 163, 162, 0.2);
    border-radius: 0.25rem;
    padding: 0.10rem 0.3rem;
    color: var(--text1-color);
    margin-right: 0.4rem;
    flex-shrink: 0;
}

.owner-dash-card {
  height: 10rem;
  display: flex;
  flex-direction: column;
  border: 1px solid #dee2e6;
  background-image: url('../img/bats_balls_bg.avif');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-color: var(--white1-color);
}

.card {
  border: 1px solid #dee2e6;
}

.card-header {
  border-bottom: 1px solid #dee2e6;
}

.owner-dash-card .custom-border {
  position: relative;
}

.owner-dash-card .custom-border::before,
.owner-dash-card .custom-border::after {
  content: '';
  position: absolute;
  width: 1px;
  height: 50%;
  background-color: #B2B2B2;
  right: 0;
}

.owner-dash-card .custom-border::before {
  top: 15%;
}

.owner-dash-card .custom-border::after {
  bottom: 15%;
}

.booked-status {
  background-color: rgba(2, 156, 90, 0.2);
  color: var(--success-color);
  font-weight: 500;
  border: 1px solid rgba(2, 156, 90, 0.4);
}

.booked-status .bi-shield-check {
  color: var(--success-color);
}

.failed-status {
  background-color: rgba(237, 29, 1, 0.2);
  color: var(--danger-color);
  font-weight: 500;
  border: 1px solid rgba(237, 29, 1, 0.4);
}

.failed-status {
  color: var(--danger-color);
}

.cancelled-status {
  background-color: rgba(223, 201, 100, 0.2);
  color: var(--warning-color);
  font-weight: 500;
  border: 1px solid rgba(223, 201, 2, 0.4);
}

.cancelled-status .bi-x-octagon {
  color: var(--warning-color);
}

.timed-out-status {
  background-color: rgba(169, 163, 162, 0.2);
  color: var(--text1-color);
  font-weight: 500;
  border: 1px solid rgba(169, 163, 162, 0.4);
}

.table {
  margin-bottom: 0;
}

.table tbody tr:last-child td, .table tbody tr:last-child th {
  border: none;
}

.state-select {
  width: 90%;
}

.state-select option {
  white-space: nowrap;
}

.carousel-item img {
  width: 320px;
  aspect-ratio: 3/2;
  object-fit: cover;
}

.carousel-indicators img {
  width: 60px;
  height: 30px;
  display: block;
  border-radius: 4px;
  object-fit: cover;
}

.carousel-indicators button {
  width: max-content !important;
}

.carousel-indicators {
  position: unset;
  padding: 4px;
}

.carousel-indicators button.active img {
  border-radius: 4px;
  border: 2px solid blue;
}

.location-iframe {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.location-iframe iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 99%;
  height: 99%;
  border: 0;
}

.ground-image {
  max-height: 60dvh;
}

.ground-actions {
  padding: 0.25rem 1.5rem;
}

.ground-actions details {
  position: relative;
  white-space: nowrap;
}

.ground-actions details summary {
  display: flex;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 500;
  list-style: none;
}

.ground-actions details .ground-action-menu {
  position: absolute;
  right: 0;
  list-style: none;
  width: max-content;
  background-color: var(--white2-color);
  border-radius: 6px;
  padding: 0;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.15);
  z-index: 1060;
}

.ground-actions details .ground-action-menu .ground-action {
  padding: 5px 10px;
  cursor: pointer;
  font-weight: 500;
  font-size: 1.05rem;
}

.ground-actions details .ground-action-menu .ground-action:hover {
  background-color: #F0F2FB;
}

.ground-actions details .ground-action-menu .ground-action a {
  color: inherit;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
}

.ground-action .bookings-open {
  color : green;
}

.ground-action .bookings-closed {
  color : #848482;
}

.switch, .manual-switch {
  position: relative;
  height: 1.125rem;
  width: 2.25rem;
  margin-right: 8px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 9999px;
  background-color: rgba(132, 132, 130, 0.377);
  transition: all .3s ease;
}

.switch:checked {
  background-color: rgba(34, 197, 94, 1);
}

.switch::before {
  position: absolute;
  content: "";
  left: calc(1.125rem - 1.215rem);
  top: calc(1.125rem - 1.215rem);
  display: block;
  height: 1.2rem;
  width: 1.2rem;
  cursor: pointer;
  border: 1px solid rgba(132, 132, 130, 0.527);
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0 3px 10px rgba(132, 132, 130, 0.327);
  transition: all .3s ease;
}

.switch:hover::before {
  box-shadow: 0 0 0px 6px rgba(0, 0, 0, .15);
}

.switch:checked:hover::before {
  box-shadow: 0 0 0px 6px rgba(34, 197, 94, .15);
}

.switch:checked:before {
  transform: translateX(100%);
  border-color: rgba(34, 197, 94, 1); /* Green border */
}

.manual-switch:checked {
  background-color: rgba(34, 197, 94, 1);
}

.manual-switch::before {
  position: absolute;
  content: "";
  left: calc(1.125rem - 1.215rem);
  top: calc(1.125rem - 1.215rem);
  display: block;
  height: 1.2rem;
  width: 1.2rem;
  cursor: pointer;
  border: 1px solid rgba(132, 132, 130, 0.527);
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0 3px 10px rgba(132, 132, 130, 0.327);
  transition: all .3s ease;
}

.manual-switch:hover::before {
  box-shadow: 0 0 0px 6px rgba(0, 0, 0, .15);
}

.manual-switch:checked:hover::before {
  box-shadow: 0 0 0px 6px rgba(34, 197, 94, .15);
}

.manual-switch:checked:before {
  transform: translateX(100%);
  border-color: rgba(34, 197, 94, 1); /* Green border */
}

.ground-contact {
  margin: 0.4rem;
  padding: 0.5rem;
}

.ground-contact img {
  object-fit: cover;
  height: 2.0rem;
  aspect-ratio: 1/1;
  border-radius: 4px;
  box-shadow: 0 0.15rem 0.25rem rgba(0, 0, 0, 0.10);
  background-color: transparent;
  mix-blend-mode: multiply;
  margin: 0;
  padding: 6px;
}

.icon-lg {
  height: 34px;
  aspect-ratio: 1/1;
  margin: 0 4px;
  margin-left: 0;
  object-fit: cover;
}

.icon-sm {
  height: 26px;
  aspect-ratio: 1/1;
  margin: 0 4px;
  margin-left: 0;
  object-fit: cover;
}

.customize-amenities {
  width: 1.05rem;
  height: 1.05rem;
  cursor: pointer;
  margin-right: 0.25rem;
}

.customize-amenities ~ label {
  font-size: 1.05rem;
}

.modal-title {
  color: var(--h3-color);
}

.modal-footer {
  color: var(--text2-color);
}

.table-container {
  overflow: auto;
  max-height: 500px;
}

.table-container table thead {
  position: sticky;
  top: 0;
  z-index: 4;
}

.table-container table thead th:nth-child(2), .table-container table tbody td:nth-child(2) {
  position: sticky;
  left: 0;
  z-index: 3;
}

.chart-container {
  height: 325px;
  width: 650px;
}

@media (max-width: 768px) {
  .chart-container {
    height: 250px;
    width: 350px;
  }
}

.owner-chart-container-1 {
  height: 310px;
  width: 310px;
}

.owner-chart-container-2 {
  height: 300px;
  width: 550px;
}

.owner-chart-container-3 {
  height: 300px;
  width: 430px;
}

.owner-chart-container-4 {
  height: 300px;
  width: 430px;
}

@media (max-width: 768px) {
  .owner-chart-container-1 {
    height: 350px;
    width: 350px;
  }

  .owner-chart-container-2 {
    height: 250px;
    width: 350px;
  }

  .owner-chart-container-3 {
    height: 250px;
    width: 350px;
  }

  .owner-chart-container-4 {
    height: 250px;
    width: 350px;
  }
}

.breadcrumb {

}

.breadcrumb-item {
  font-size: 1rem;
  background-color: var(--white1-color);
  padding: 2px 6px;
  margin: 0;
}

.breadcrumb-item a {
  color: var(--h3-color);
  font-weight: 500;
}

.breadcrumb-item.active {
  color: var(--h3-color);
}

.breadcrumb-item+.breadcrumb-item::before {
  color: var(--h3-color);
}

@media (max-width: 768px) {
  .breadcrumb-item {
    font-size: 0.85rem;
    padding: 1px 2px;
  }
}

.page-link {
  font-size: 0.75rem;
}

/* Full-screen overlay for loader with a blurry background */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(253, 253, 253, 0.5); /* Slightly transparent white background */
  backdrop-filter: blur(6px); /* Blur effect */
  display: flex;
  flex-direction: column; /* Stack loader and text vertically */
  align-items: center;
  justify-content: center;
  z-index: 99999; /* Ensure it's on top of other elements */
}

/* Loader animation */
.loader {
  width: 80px;
  aspect-ratio: 1;
  display: grid;
  border: 5px solid transparent;
  border-radius: 50%;
  border-color: var(--h2-color) transparent;
  animation: l16 1s infinite linear;
}

.loader::before,
.loader::after {
  content: "";
  grid-area: 1/1;
  margin: 10px;
  border: inherit;
  border-radius: 50%;
}

.loader::before {
  border-color: var(--h1-color) transparent;
  animation: inherit;
  animation-duration: 0.5s;
  animation-direction: reverse;
}

.loader::after {
  margin: 22px;
}

/* Keyframes for rotation */
@keyframes l16 {
  100% {
    transform: rotate(1turn);
  }
}

/* Keyframes for loading text pulse effect */
@keyframes pulse {
  0% {
    opacity: 0.5; /* Start slightly transparent */
  }
  50% {
    opacity: 1; /* Fully visible */
  }
  100% {
    opacity: 0.5; /* Back to slightly transparent */
  }
}

/* Styling for "LOADING..." text */
.loader-text {
  margin-top: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--h2-color); /* Use a color from your theme for consistency */
  animation: pulse 1.5s infinite; /* Apply the pulse animation */
}

.aceplayer-owner-dashboard-chart-container-1 {
  height: 325px;
  width: 95dvw;
  max-width: 370px;
}

.aceplayer-owner-dashboard-chart-container-2 {
  height: 325px;
  width: 95dvw;
  max-width: 370px;
}

.aceplayer-owner-dashboard-chart-container-3 {
  height: 325px;
  width: 95dvw;
  max-width: 370px;
}

.aceplayer-owner-dashboard-chart-container-4 {
  width: 95dvw;
  max-width: 400px;
  height: 300px;
}

.aceplayer-owner-dashboard-chart-container-5 {
  width: 95dvw;
  max-width: 400px;
  height: 300px;
}

.star-rating-input {
  display: inline-flex;
  flex-direction: row-reverse; /* highest star on left */
  justify-content: flex-start;
}

.star-rating-input input {
  display: none;
}

.star-rating-input label {
  cursor: pointer;
  font-size: 2rem;
  color: #ccc; /* default gray */
  transition: color 0.2s;
  margin: 0 2px;
}

/* Hover + selected stars */
.star-rating-input input:checked ~ label i,
.star-rating-input label:hover ~ label i,
.star-rating-input label:hover i {
  color: #f1c40f; /* gold */
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  padding: 0 0.4rem;
  font-size: 0.75rem;
  border: 0.02rem solid var(--text3-color);
  border-radius: 0.325rem;
  background-color: var(--white1-color);
  color: var(--h3-color);
  font-weight: 500;
  gap: 0.5rem; /* space between star and count */
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  margin-left: 0.325rem;
}

.rating-badge i {
  color: var(--warning-color);
  flex-shrink: 0; /* don't shrink star */
  position: relative;
  margin-left: -0.4rem;
}

.rating-badge i::after {
  content: '';
  display: block;
  position: absolute;
  right: -0.25rem; /* move separator slightly outside star */
  top: 50%;
  transform: translateY(-50%);
  width: 0.05rem;
  height: 0.6rem;
  background-color: var(--text3-color);
}

.offer-badge {
  display: inline-flex;
  align-items: center;
  padding: 0 0.45rem;
  font-size: 0.75rem;
  border: 0.02rem solid var(--main-color);
  border-radius: 0.325rem;
  background-color: var(--main-color);
  color: var(--white1-color);
  font-weight: 500;
  gap: 0.35rem;
  box-shadow: inset 0 0.06rem 0.12rem rgba(0, 0, 0, 0.1);
  position: relative;
  white-space: nowrap;
  margin-right: 0.325rem;
}

.offer-badge i {
  color: var(--white1-color);
  flex-shrink: 0;
  line-height: 1;
  margin-left: -0.25rem;
  position: relative;
}

/* =========================
   COMMON BUTTON STYLES
   ========================= */
.primary-btn,
.secondary-btn,
.tertiary-btn,
.success-btn,
.warning-btn,
.danger-btn {
  padding: 0.55rem 1.25rem;
  border-radius: 0.25rem;
  margin: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
  user-select: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

/* Hover effect (applies to all buttons) */
.primary-btn:hover,
.secondary-btn:hover,
.tertiary-btn:hover,
.success-btn:hover,
.warning-btn:hover,
.danger-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Active effect */
.primary-btn:active,
.secondary-btn:active,
.tertiary-btn:active,
.success-btn:active,
.warning-btn:active,
.danger-btn:active {
  transform: scale(0.98);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Focus ring */
.primary-btn:focus-visible,
.secondary-btn:focus-visible,
.tertiary-btn:focus-visible,
.success-btn:focus-visible,
.warning-btn:focus-visible,
.danger-btn:focus-visible {
  outline-offset: 2px;
}

/* Disabled */
.primary-btn.disabled,
.secondary-btn.disabled,
.tertiary-btn.disabled,
.success-btn.disabled,
.warning-btn.disabled,
.danger-btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}


/* =========================
   INDIVIDUAL BUTTON COLORS
   ========================= */

/* PRIMARY */
.primary-btn {
  color: var(--white1-color);
  background-color: var(--h2-color);
  border: 1px solid var(--h2-color);
  font-weight: 600;
}
.primary-btn:hover {
  color: var(--h2-color);
  background-color: var(--white1-color);
  border-color: var(--h2-color);
}
.primary-btn:focus-visible {
  outline: 2px solid rgba(3, 102, 152, 0.4);
}

/* SECONDARY */
.secondary-btn {
  color: var(--white1-color);
  background-color: var(--h3-color); /* #5197b5 */
  border: 1px solid var(--h3-color);
}
.secondary-btn:hover {
  color: var(--h3-color);
  background-color: var(--white1-color);
  border-color: var(--h3-color);
}
.secondary-btn:focus-visible {
  outline: 2px solid rgba(81, 151, 181, 0.4);
  outline-offset: 2px;
}

/* TERTIARY */
.tertiary-btn {
  color: var(--white1-color);
  background-color: var(--text2-color); /* #6e6a69 */
  border: 1px solid var(--text2-color);
}
.tertiary-btn:hover {
  color: var(--text2-color);
  background-color: var(--white1-color);
  border-color: var(--text2-color);
}
.tertiary-btn:focus-visible {
  outline: 2px solid rgba(110, 106, 105, 0.4);
  outline-offset: 2px;
}

/* SUCCESS */
.success-btn {
  color: var(--white1-color);
  background-color: var(--success-color);
  border: 1px solid var(--success-color);
}
.success-btn:hover {
  color: var(--success-color);
  background-color: var(--white1-color);
  border-color: var(--success-color);
}
.success-btn:focus-visible {
  outline: 2px solid rgba(2, 156, 90, 0.4);
}

/* WARNING */
.warning-btn {
  color: var(--text1-color);
  background-color: var(--warning-color);
  border: 1px solid var(--warning-color);
}
.warning-btn:hover {
  color: var(--text1-color);
  background-color: #f9e436; /* lighter yellow hover */
  border-color: #f9e436;
}
.warning-btn:focus-visible {
  outline: 2px solid rgba(223, 201, 2, 0.4);
}

/* DANGER */
.danger-btn {
  color: var(--white1-color);
  background-color: var(--danger-color);
  border: 1px solid var(--danger-color);
}
.danger-btn:hover {
  color: var(--danger-color);
  background-color: var(--white1-color);
  border-color: var(--danger-color);
}
.danger-btn:focus-visible {
  outline: 2px solid rgba(237, 28, 1, 0.4);
}

/* Universal smaller version for all buttons */
.btn-small {
  padding: 0.35rem 0.9rem;
  margin: 0.25rem;
  font-size: 0.9rem;
  border-radius: 0.2rem;
  line-height: 1.1;
}