.custom-link {
  color: rgb(75, 73, 73);
  text-decoration: none;
}
body {
  overflow-x: hidden !important;
}


.custom-link:hover {
  font-weight: bold;
  color: black;
  text-decoration: none;
}

/* example.css */

.swiper-button-custom {
  position: absolute;
  top: 40%;
  z-index: 3;
  width: 35px;
  height: 35px;
  border: 2px solid #565758;
  background: #ffffff;
  color: #233058;
  box-shadow: 4px 8px 30px rgba(250, 185, 8, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translateY(-50%);
}

/* Default desktop positioning */
.swiper-button-prev-custom {
  position: absolute;
  left: 140px;
  transform: translateY(-50%);
  z-index: 10;
}

.swiper-button-next-custom {
  position: absolute;
  right: 140px;
  transform: translateY(-50%);
  z-index: 10;
}

/* Adjust for mobile */
@media (max-width: 1024px),
(max-width: 1200px) {
  .swiper-button-prev-custom {
    left: 45px;
  }

  .swiper-button-next-custom {
    right: 10px;
  }
}

@media (max-width: 576px) {

  .swiper-initialized {
    width: 95% !important;
  }
}

/* @media (max-width: 576px) {

  .swiper-button-prev-custom,
  .swiper-button-next-custom {
    display: none;
  }
} */

@media (max-width: 576px) {
  .swiper-button-custom {
    position: absolute;
    bottom: -20px; /* just below swiper */
    background: none;
    border: none;
    box-shadow: none;
    color: #000;
    font-size: 18px;
    padding: 4px 6px;
  }

  .swiper-button-prev-custom {
    left: 0;
  }

  .swiper-button-next-custom {
    right: 0;
  }
}


.btn-myl {
  background-color: #233058;
  color: #ffffff;
}

.btn-myl:hover {
  background-color: rgb(247, 195, 46);
  color: black;
}


.btn-myl1 {
  background-color: #f7c32e;
  color: black;
}

.btn-myl1:hover {

  background-color: #233058;
  color: #ffffff;
}


.nav-myl {
  color: #233058;
}

.nav-myl.active {
  color: #f7c32e;
}

.nav.nav-bottom-line .nav-link.active {
  font-weight: bold !important;
  color: #233058 !important;
  border-bottom: 3px solid #f7c32e;
}


.close-btn {
  margin-top: 10px;
}

/* Move Filter button to next line on small screens */
@media (max-width: 576px) {
  .filter-button-wrapper {
    width: 100%;
    margin-top: 1rem;
    /* Optional spacing */
    display: flex;
    justify-content: flex-end;
    /* or center */
  }
}

@media (max-width: 767px) {
  .nav-link span {
    display: none;
  }

  .rounded-pill-right span {
    display: none;
  }

  .ltl {
    padding-top: 0%;
  }
}
.custom-shadow {
  box-shadow: 2px 6px 17px rgba(250, 185, 8, 0.3);
  border-radius: 1.5rem;
}

@media (max-width: 576px) {
  .tab-section-padding {
    padding-top: 0.5rem !important;
  }

  .custom-shadow {
    margin-top: 0.5rem;
  }
}

@media (min-width: 998px) {
  .st {
    flex-shrink: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-right: calc(var(--bs-gutter-x) * 2.7) !important;
    margin-top: var(--bs-gutter-y) !important;
}
}

/* */

/* Mobile view adjustments */
@media (max-width: 576px) {
  .slot-container {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
  }

  .slot-container .slot-list {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .slot-container .slot-link {
    font-size: 0.72rem !important;
    padding: 3px 6px !important;
    border-radius: 6px !important;
  }

  .slot-container .btn-calendar {
    flex-shrink: 0;
    padding: 6px;
    height: 36px;
    width: 36px;
  }
  .slot-container li {
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .slot-container ul {
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}
@media (max-width: 420px) {
  .narrow-mobile {
    max-width: 96% !important;
    margin: 0 auto;
  }
}
@media (max-width: 576px) {
  .search-wrapper .form-control {
    width: 100% !important;
    flex: 1 1 auto;
  }

  .search-wrapper .input-group {
    flex-wrap: nowrap;
  }
}

/* Stack the input, select, and button vertically for mobile view */
@media (max-width: 767px) {
  .searchbar .custom-shadow {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .searchbar .custom-shadow .form-control {
    flex: 2 1 auto;
    /* ⬅️ Input takes more space */
    width: 100%;
    min-width: 0;
    border-radius: 0;
  }

  .searchbar .custom-shadow .rounded-pill-right {
    border-radius: 0 !important;
  }

  .searchbar .custom-shadow .rounded-pill-left {
    border-radius: 0 !important;
    font-weight: bold !important;
  }

  .searchbar .custom-shadow .form-control,
  .searchbar .custom-shadow .form-select,
  .searchbar .custom-shadow .btn {
    width: 100%;
    border-radius: 0;
  }
}

@media (max-width: 576px) {
  .css-1nrahfv-control {
    width: 328px !important;
  }
}

/* Ensure the navbar is displayed properly on all screen sizes */
.navbar-brand {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Center logo image on mobile view */
@media (max-width: 768px) {
  .logo-container {
    display: flex;
    justify-content: center !important;
    align-items: center !important;
    width: 100%;
  }

  .navbar-brand-item {
    max-width: 100%;
    height: auto;
  }
}


@media (min-width: 769px) {
  .navbar-brand {
    display: flex;
    justify-content: flex-start;
  }
}

.responsive-width {
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 768px) {
  .responsive-width {
    max-width: 100%;
     overflow-x: hidden !important;
  }
}

.table td,
.table th {
  font-size: 0.9rem !important;
  padding-top: 0.2rem !important;
  padding-bottom: 0.2rem !important;
 
  vertical-align: middle;
}

.table-sameday {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}


@media (max-width: 768px) {
  .table-responsive tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    padding: 1rem;
    border-radius: 8px;
    background-color: #f9f9f9;
  }

  .table-responsive thead {
    display: none;
   
  }


}

@media (max-width: 576px) {
  .hide-mobile {
    display: none !important;
  }
}

/* Hide and show columns based on screen size */
.desktop-only {
  display: table-cell;
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block;
  }

  .rating-hours-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
  }

  .rating-block,
  .hours-block {
    width: 48%;

  }

  .rating-block strong,
  .hours-block strong {
    color: #233058;
  }
}

.table-sameday tbody tr:hover td {
  background-color: #eafafc !important;
  /* soft yellow */
  cursor: pointer;
}

.table-sameday tbody tr {
  transition: transform 0.2s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.table-sameday tbody tr:hover {
  /* transform: scale(1.02); */
  /* box-shadow: 0 4px 10px rgba(33, 45, 80, 0.1); */
  /* z-index: 1; */
  overflow: visible;
  position: relative;
  background-color: #b4cdd4;
  /* Soft yellow on hover */
  /* cursor: pointer; */
}

.table-sameday {
  text-align: center;
  /* horizontal center */
  vertical-align: middle;
  border-radius: 0.7rem;
}

.table-sameday td {
  border: 1.2px solid #dee2e6;
  text-align: left;

}

.table-sameday {
  border-collapse: separate;
  border-spacing: 0;
}

.table-sameday thead th:first-child {
  border-top-left-radius: 0.7rem;
}

.table-sameday thead th:last-child {
  border-top-right-radius: 0.7rem;
}

.table-sameday tbody tr:last-child td:first-child {
  border-bottom-left-radius: 0.7rem;
}

.table-sameday tbody tr:last-child td:last-child {
  border-bottom-right-radius: 0.7rem;
}

.table-sameday tbody tr {
  transition: background-color 0.3s ease;
}

.business-container {
  overflow: visible !important;

}

thead {

  position: sticky !important;
  z-index: 1;
  /* position: relative; */
  overflow: visible !important;
}

.thead-sameday{
   position: sticky !important;
}

.table-gradient-header th {
  background: linear-gradient(-45deg, #2978a3, #445791, #233058);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  /* background: #040f63; */
  color: white !important;
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}



@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }

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

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

/* .input-group .form-select1 {
  border-radius: 0 !important;
} */

.select-wrapperss {
  width: 280px;

}
.css-1u9des2-indicatorSeparator {
   
    background-color: #fff !important;
   
}
.custom-shadow  {
 
  font-size: 2px !important;
}

@media (max-width: 768px) {
  .select-wrapperss {
    width: 100%;
  }
}

@media (min-width: 992px) {
  .table-sameday {
    width: 100%;
    margin: 0 auto;

  }
}


/* Styling for custom calendar header */
.react-datepicker__header {
  background-color: #233058 !important;
  color: white !important;
  font-weight: bold;
  font-size: 1.1rem;
  border-radius: 10px 10px 0 0;
}

.react-datepicker__current-month {
  font-size: 1.2rem;
  font-weight: 600;
}

.react-datepicker__day-name {
  font-size: 0.9rem;
  font-weight: bold;
}

/* Custom styling for the selected date */
.react-datepicker__day--selected {
  background-color: #f7c32e !important;
  /* Set the background color to yellow */
  color: black !important;
  /* Set the text color to black for better contrast */
}

/* Optional: You can add a hover effect for better user experience */
.react-datepicker__day--selected:hover {
  background-color: #f7c32e !important;
  /* Slightly darker yellow on hover */
  color: black !important;
}

.react-datepicker__day-name,
.react-datepicker__current-month {
  color: white !important;
}

.react-datepicker__day--keyboard-selected {
  background-color: #f7c32e !important;
}



/* Ensure sticky navbar does not overlap */
.sticky-navbar {
  padding: 0 !important;
  margin: 0 !important;
  /* position: sticky; */
  top: 0;
  background-color: #fff;
  z-index: 100;
}

/* Close button positioned at top-right */
.modal-content .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: transparent;
  border: none;
  font-size: 20px;
  color: #ff6666;
  cursor: pointer;
}

/* Close button hover effect */
.modal-content .close-btn:hover {
  color: #ff0000;
}

/* Custom button styles */
.btn-calendar {
  background-color: transparent !important;
  color: white;
  border: none;
  padding: 4px 4px;
  border-radius: 15%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-calendar:hover {
  background-color: #218838;
  transform: scale(1.1);
}

.btn-calendar:active {
  background-color: #1e7e34;
  transform: scale(1);
}

.btn-calendar i {
  font-size: 15px;
}

.btn-calendar .btn-label {
  margin-left: 10px;
  font-weight: bold;
}

.slot-container {
display: flex !important;
justify-content: space-between !important;
align-items: center !important;
/* flex-wrap: wrap !important; */
gap: 10px;
width: 100%;
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  /* align-items: flex-start; */
  z-index: 1050;
  padding: 20px 10px;
  overflow-y: auto;
  box-sizing: border-box;
  align-items: center;
}

/* Modal content */


/* Typography */
.modal-title {
  text-align: center;
  font-size: 1.7rem;
  color: #233058;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.modal-address {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0a0000;
  margin-bottom: 0.7rem;
}

.modal-rating {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* Close button */
.modal-content .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 20px;
  color: #ff6666;
  cursor: pointer;
}

.modal-content .close-btn:hover {
  color: #ff0000;
}

.list-group-item + .list-group-item
 {
    border-top-width: 0;
    color: black;
}
/* Tablet and mobile */
@media (max-width: 768px) {
  .modal-content {
    max-width: 95%;
    margin-top: 40px;
    padding: 18px;
  }
}

@media (max-width: 450px) {
  .modal-content {
    padding: 10px;
    border-radius: 6px;
    max-width: 90% !important;
    margin-top: 20px;
  }

  .modal-title {
    font-size: 1rem;
  }

  .modal-address,
  .modal-rating {
    font-size: 0.9rem;
  }

  .modal-content .close-btn {
    font-size: 18px;
    top: 8px;
    right: 8px;
  }
}

@media (max-width: 360px) {

  /* Make the two main columns stack */
  .responsive-schedule-wrapper {
    flex-direction: column !important;
  }

  /* On the slots list, allow wrapping and center each item */
  .responsive-schedule-wrapper>div:nth-child(2) ul {
    flex-wrap: wrap;
    overflow-x: hidden;
    /* no side‑scroll */
    justify-content: center;
    gap: 4px;
  }

  /* Each slot takes ~45% width so two fit per row */
  .responsive-schedule-wrapper>div:nth-child(2) ul li {
    flex: 1 1 40%;
    max-width: 40%;
    display: flex;
    justify-content: center;
    margin-bottom: 6px;
  }
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  box-sizing: border-box;
  position: relative;
  margin-top: 60px;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

.modal-content-1 {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  box-sizing: border-box;
  position: relative;
  margin-top: 60px;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Right column */
.slots-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

/* Wrapper around UL to control overflow/wrapping */
.slots-list-wrapper {
  width: 100%;
  overflow-x: auto;
  /* allow horizontal scroll if needed */
  overflow-y: hidden;
}

/* The UL itself */
.slots-list {
  display: flex;
  flex-wrap: wrap;
   gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
  justify-content: center;
  /* center items */
  box-sizing: border-box;
}

/* LI items */
.slots-list-item {
  flex: 1 1 45%;
  max-width: 40%;
  min-width: 100px;
  display: flex;
  justify-content: center;
  font-size: 0.9rem;
}

/* Buttons */
.slot-btn {
  background-color:#ffffff;
  border: 1px solid #178532;
  color: #178532;
  font-weight: bold;
  border-radius: 5px;
  padding: 6px 8px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  /* fill the li container */
  box-sizing: border-box;
  max-width: 130px !important;
}

.slot-btn.selected {
  background-color: #178532;
  font-weight: bold;
  
  color:#ffffff;
}

.slot-btn.disabled {
  position: relative;
    border: 1px solid #999;
  background-color: #fcd9d9;
  color: #999;
  cursor: not-allowed;
}

.slot-btn.disabled::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  width: 80%;
  height: 2px;
  background-color: #999;
  /* transform: rotate(-10deg); */
}
.booked-indicator {
    font-size: 0.75em;
    color: red;
    margin-left: 4px;
}

/* Footer */
.slots-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
}

/* On very narrow screens, switch to one-column */
@media (max-width: 370px) {
  .slots-list-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* The UL itself */
.slots-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0;
  margin: 0;
  list-style: none;
  /* justify-content: space-between; */
  /* spread items */
  box-sizing: border-box;
}
.slot-link:hover {
  color: #f7f6f6 !important;
  background-color: #178532 !important;
}


.slot-link {
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease;
}

@media (min-width: 1050px) and (max-width: 1400px) {
   .table-sameday {
    width: 100% !important;
    table-layout: auto; /* Optional for content-driven sizing */
  }
  .slot-container .slot-link {
    padding: 3px 4px !important;
     font-Size: "0.7";
  }
  .slot-container .btn-calendar {
    flex-shrink: 0;
    padding: 2px;
    height: 30px;
    width: 30px;
  }
}
.slot-last-minute:hover {
  color: #f7f6f6 !important;
  background-color: #C24E00 !important; /* light orange on hover */
}



/* LI items – five per row */
.slots-list-item {
  flex: 0 0 calc((100% - (4 * 8px)) / 6);
  max-width: calc((100% - (4 * 8px)) / 6);
  /* display: flex; */
  /* justify-content: center; */
  font-size: 0.7rem;
}

/* On very narrow screens, fall back to two per row */
@media (max-width: 300px) {
  .slots-list-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

@media (max-width: 500px) {
  .slots-list-item {
    flex: 0 0 calc((100% - (3 * 8px)) / 4);
    max-width: calc((100% - (3 * 8px)) / 4);
  }
}

@media (max-width: 700px) {
  .slots-list-item {
    flex: 0 0 calc((100% - (3 * 8px)) / 4);
    max-width: calc((100% - (3 * 8px)) / 4);
  }
}
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
    color: transparent;
    border: none;
    height: 38px;
    border-radius: 6px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}
@keyframes blinker {
  60% { opacity: 0; }
}
