/* Global Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #eee;
}

.container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
}

/* Calendar Styles */
.calendar-container {
  flex: 1;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  user-select: none;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background-color: #243a52;
  color: #fff;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  text-align: center;
}

.calendar-header button {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.calendar-header button:hover {
  transform: scale(1.2);
}

.calendar-header h1 {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
}

.calendar-heading {
  display: flex;
  justify-content: center;
  background-color: #eee;
}

.day-heading {
  flex: 1;
  padding: 10px 4px;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  color: #444;
  border: 1px solid #ddd;
  overflow: hidden;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-gap: 1px;
  background-color: #fff;
}

.day {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  min-height: 60px;
  font-size: 24px;
  font-weight: 100;
  text-align: center;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
  overflow: hidden;
}

.day.empty {
  background-color: #fff;
  border-color: #0000;
}

.day.bookable {
  background-color: #c3e6cb;
}

.day.closed {
  background-color: #f8d7da;
  text-decoration: line-through;
  color: rgba(255, 255, 255, 0.8);
  text-decoration-color: #00000052;
  text-decoration-style: dashed;
  text-decoration-thickness: 2px;
}

.day.closed.highlight,
.day.closed.highlight-end {
  text-decoration: none;
}

.day.closed.highlight .cal-tide-times {
  background-color: rgb(201 117 0 / 80%) !important;
}

.day.selected {
  background-color: #007bff;
  color: #fff;
}

/* Sidebar Styles */
.sidebar-container,
.sidebar-container1 {
  flex: 1;
  padding: 10px;
  background-color: #fff;
  border-radius: 10px;
  max-width: 350px;
  margin-left: 20px;
}



.sidebar {
  display: none;
  flex-direction: column;
}

.sidebar h4 {
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 20px;
}

.selected-date-info {
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px;
}

.selected-date-info h3.date {
  font-size: 32px;
  font-weight: bold;
  margin: 0 0 10px;
}

.selected-date-info h3.opening-time {
  font-size: 18px;
  margin: 0;
}

.start-date-info,
.end-date-info {
  display: flex;
  flex-direction: column;
}

.start-date-info h3.date,
.end-date-info h3.date {
  font-size: 24px;
  font-weight: 300;
  margin: 0;
}

.start-date-info h3.opening-time,
.end-date-info h3.opening-time {
  font-size: 12px;
  margin: 0;

  font-weight: 400;
}

.price-calculation h4,
.booking-type h4 {
  font-size: 24px;
  font-weight: bold;
  margin: 20px 0 10px;
}

.price-calculation p,
.booking-type select,
#bookingOptions {
  font-size: 18px;
  margin: 0;
  padding: 6px;
  background-color: #eee;
  border: none;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  color: #444;
  margin-bottom: 4px;
  border: 1px solid #ddd;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: 0;
}

.booking-type select {
  margin-top: 5px;
}

.booking-options {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.booking-options li {
  font-size: 18px;
  color: #444;
  margin-bottom: 10px;
}

/* Style for highlighted days */
.calendar-grid .day.highlight {
  background-color: #345fb3;
  color: #fff;
}

.adminselected {
  background: unset !important;
  background-color: #345fb3 !important;
}

/* Style for the end of selected consecutive nights */
.calendar-grid .day.highlight-end {
  background-color: #345fb3;
  color: #fff;
  /* Change the text color for better readability */
  background: linear-gradient(to right,
      #345fb3 49.5%,
      #353535 49.5%,
      #353535 50.5%,
      #8d8d8dd4 50.5%);
}

.calendar-grid .housebooked-green-first {
  background: linear-gradient(to left,
      #f99b1e 49.5%,
      #353535 49.5%,
      #353535 50.5%,
      #25935a 50.5%);
  background-color: #f99b1e;
  text-decoration: line-through;
  color: rgba(255, 255, 255, 0.5);
  text-decoration-color: #00000052;
  text-decoration-style: dashed;
  text-decoration-thickness: 2px;
}

.calendar-grid .housebooked-red-first {
  background: linear-gradient(to left,
      #f99b1e 49.5%,
      #353535 49.5%,
      #353535 50.5%,
      #ed6464 50.5%);
  background-color: #f99b1e;
  text-decoration: line-through;
  color: rgba(255, 255, 255, 0.5);
  text-decoration-color: #00000052;
  text-decoration-style: dashed;
  text-decoration-thickness: 2px;
}

.calendar-grid .bookable-orange-last {
  background: linear-gradient(to left,
      #25935a 49.5%,
      #353535 49.5%,
      #353535 50.5%,
      #f99b1e 50.5%);
}

.calendar-grid .day.selected {
  background-color: #345fb3;
  background: linear-gradient(to left,
      #345fb3 49.5%,
      #353535 49.5%,
      #353535 50.5%,
      #8d8d8dd4 50.5%);
  color: #fff;
  /* Change the text color for better readability */
}

.booking-options {
  margin: 0;
}

.booking-date {
  border: 1px solid #ddd;
  padding: 4px;
  background-color: #eee;
  text-align: center;
  border-radius: 4px;
  flex: auto;
}

.booking-date-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.no-nights {
  text-align: center;
  font-size: 16px;
  background-color: #eee;
  margin: 0;
  padding: 4px;
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 4px;
  margin-bottom: 4px;
}

/* Responsive Styling */
@media (max-width: 768px) {}

/* Add this CSS to your existing style.css file */

.booking-pref input[type="number"],
.booking-pref select {
  font-size: 16px;
  color: #444;
  margin: 0;
  padding: 6px;
  background-color: #eee;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  color: #444;
  margin-bottom: 4px;
  border: 1px solid #ddd;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: 0;
}

.options-section {
  border: 2px solid #b1b1b1;
  padding: 6px;
  border-radius: 4px;
  background-color: #fafafa;
  border-left: 0;
  border-right: 0;
}

.price-section {
  border: 2px solid #000;
  padding: 6px;
  border-radius: 4px;
  background-color: #fafafa;
  border-left: 0;
  border-right: 0;
}

.booking-pref input[type="number"],
.booking-pref select {
  font-size: 16px;
  color: #444;
  margin: 0;
  padding: 6px;
  background-color: #eee;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  color: #444;
  margin-bottom: 4px;
  border: 1px solid #ddd;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: 0;
}

label {
  background-color: #ddd;
  width: 100%;
  display: block;
  color: #000;
  padding: 3px;
  box-sizing: border-box;
  border-radius: 4px;
  border: 1px solid #ddd;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: medium;
  font-size: 14px;
}

.fromtolabel {
  margin: 2px;
  text-transform: uppercase;
  font-size: 12px;
  color: #434343;
  font-weight: 100;
  margin-bottom: 4px;
}

.casewayTimes {
  margin: 0;
  font-weight: bold;
  font-size: 14px;
}

.date-container-sidebar {
  display: flex;
  background-color: #f8f8f8;
}

.day-sidebar {
  font-size: 40px;
  margin-right: 8px;
  color: #646464;
  margin-left: 8px;
}

.month-year-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.month-year-sidebar>div {
  font-size: 16px;
}

#depositPrice {
  margin: 0;
}

/* Calendar Styles */
.calendar-container {
  /* ... (existing styles) */
}

.calendar-header {
  background-color: #21203a;
  /* Dark gray header */
  color: #fff;
}

.calendar-header button {
  /* ... (existing styles) */
}

.calendar-header h1 {
  /* ... (existing styles) */
}

.calendar-heading {
  border-color: #0000;
  border-bottom: 1px solid #fff;
}

.day-heading {
  border-color: #0000;
  border-left: 2px solid #ccc;
}

.first-heading {
  border-left: 0;
}

.day {
  background-color: #f5f5f5;
  /* Light gray default background */
  color: #fff;
  /* Dark gray text color */
}

.day.empty {
  /* ... (existing styles) */
}

.day.bookable {
  background-color: #25935a;
  /* Light green for bookable days */
  color: #fff;
}

.day.closed {
  background-color: #ed6464;
  /* Light red for closed days */
  color: rgba(255, 255, 255, 0.5);
}

.day.houseclosed {
  background-color: #ed6464;
  text-decoration: line-through;
  color: rgba(255, 255, 255, 0.5);

  text-decoration-color: #00000052;
  text-decoration-style: dashed;
  text-decoration-thickness: 2px;
}

.day.adminclosed {
  background-color: #790000;
}

.day.housebooked {
  background-color: #f99b1e;
  text-decoration: line-through;
  color: rgba(255, 255, 255, 0.5);
  text-decoration-color: #00000052;
  text-decoration-style: dashed;
  text-decoration-thickness: 2px;
}

.day.notbookable {
  background-color: #a5a5a5;
  text-decoration: line-through;
  color: rgba(0, 0, 0, 0.78);
  text-decoration-color: #00000052;
  text-decoration-style: dashed;
  text-decoration-thickness: 2px;
}

.calendar-grid .day.selected {
  /* ... (existing styles) */
}

.calendar-header-text {
  text-align: center;
}

.current-year {
  font-size: 14px;
  font-weight: 100;
  text-transform: uppercase;
}

.current-month {
  font-size: 28px;
  font-weight: 100;
  text-transform: uppercase;
}

.closed-days-warning {
  font-size: 10px;
  color: #fff;
  background-color: #da9304;
  text-align: center;
  padding: 6px;
  font-weight: bold;
  margin-bottom: 5px;
  border-radius: 4px;
  display: none;
}

/* Style the select box container */
.booking-type {
  position: relative;
  width: 100%;
  /* Set the container width to 100% */
}

.cal-tide-times {
  position: absolute;
  margin-top: 50px;
  font-size: 10px;

  color: rgba(255, 255, 255, 0.7);
  font-weight: bold;
  text-transform: uppercase;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 3px;
  border-radius: 4px;
  line-height: 12px;
}

.water-icon {
  color: #120d55;
  font-size: 22px;
  vertical-align: middle;

  opacity: 0.9;
}

.emoji-icon {
  opacity: 1;
  font-size: 12px;
}

.date-details-container {
  background-color: #f8f8f8;
}

.opening-time {
  margin: 0;
}

@media only screen and (orientation: portrait),
only screen and (max-width: 950px) {
  .container {
    flex-direction: column;
  }

  .calendar-grid {
    font-size: 14px;
  }

  .calendar-container,
  .sidebar-container,
  .sidebar-container1 {
    border-radius: 10px;
  }

  .sidebar-container,
  .sidebar-container1 {
    max-width: 100%;
    margin-left: 0;
    margin-top: 10px;
    background-color: #fff;
  }

  .sidebar {
    color: #444;
  }

  .selected-date-info {
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
  }

  .selected-date-info h3.date {
    font-size: 28px;
  }

  .selected-date-info h3.opening-time {
    font-size: 16px;
  }

  .start-date-info,
  .end-date-info {
    display: flex;
    flex-direction: column;
  }

  .start-date-info h3.date,
  .end-date-info h3.date {
    font-size: 22px;
    margin: 0 0 10px;
    font-weight: 200;
  }

  .start-date-info h3.opening-time,
  .end-date-info h3.opening-time {
    font-size: 16px;
    margin: 0;
  }

  .price-calculation h4,
  .booking-type h4 {
    font-size: 22px;
    margin: 20px 0 10px;
  }

  .price-calculation p,
  .booking-type select {
    font-size: 18px;
    margin: 0;
    padding: 10px;
    background-color: #eee;
    border: none;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    color: #444;
  }

  .booking-options li {
    font-size: 18px;
    color: #444;
    margin-bottom: 10px;
  }

  .container {
    padding: 0;
    border: 0;
  }

  .day {
    min-height: 40px;
    padding: 8px;
    font-size: 20px;
    line-height: 10px;
  }

  .calendar-container {
    width: 100%;

    border: 0;
  }

  .sidebar-container,
  .sidebar-container1 {
    width: 100%;
    padding: 4px;
    box-sizing: border-box;
  }

  .container {
    width: 95%;
    margin: 10px auto;
    margin-top: 10px;
  }

  .cal-tide-times {
    margin-top: 37px;
    font-size: 7px;
    padding: 1px;
    line-height: 10px;
  }

  @media (min-width: 700px) {
    .cal-tide-times .water-icon {
      display: inline;
      font-size: 14px;
    }

    .cal-tide-times .emoji-icon {
      font-size: 7px;
    }
  }

  @media (max-width: 300px) {
    .cal-tide-times {
      font-size: 5px;
      margin-top: 29px;
    }

    .cal-tide-times .water-icon {
      display: inline;
      font-size: 14px;
    }

    .cal-tide-times .emoji-icon {
      font-size: 7px;
    }

    .day {
      min-height: 27px;
      font-size: 14px;
    }

    .day-heading {
      font-size: 12px;
    }
  }

  @media (min-width: 750px) {
    .cal-tide-times .water-icon {
      display: unset !important;
    }

    .cal-tide-times {
      font-size: 12px;
      padding: 2px;
    }
  }
}

@media (max-width: 1100px) {
  .cal-tide-times .water-icon {
    display: none;
  }
}

@media only screen and (orientation: landscape) {
  @media (min-width: 799px) {
    .cal-tide-times .water-icon {
      display: unset;
    }
  }
}

@media only screen and (min-width: 601px) and (max-width: 1024px) {
  /* Insert CSS styles for medium devices here */
}

.welcome-message {
  text-align: center;
  padding: 4px;
}

.loadingIcon {
  height: 50px;
  width: 50px;
  position: absolute;
  background-color: #ffffffd1;
  border-radius: 6px;
  z-index: 999;
  display: none;
}

@media only screen and (max-width: 950px) {
  .loadingIcon {
    height: 40px;
    width: 40px;
  }
}

@media only screen and (max-width: 300px) {
  .loadingIcon {
    height: 30px;
    width: 30px;
  }
}

.calLoadingDiv {
  width: auto;
  background-color: #ffffff;
  text-align: center;
  grid-column: span 7;
  height: 200px;
}

.calLoadingDivButton {
  width: auto;
  background-color: #f1f1f1;
  text-align: center;
  grid-column: span 7;
  /* height: 40px; */
  text-align: center;
  display: none;
  border: 2px solid #ccc;
  margin-top: 6px;
}

.book-button {
  width: 100%;
  padding: 8px;
  margin-top: 8px;
  border-radius: 4px;
  background-color: #25935a;
  font-size: 17px;
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  border: 3px solid #024900;
  cursor: pointer;
}

.book-button:hover {
  background-color: #158249;
}

#monthYearSelector {
  position: relative;
  display: inline-block;
  background-color: #0000;
  color: #fff;
  border-radius: 4px;
  border: 2px solid #fff3;
  font-size: 18px;
  font-weight: 100;
  text-transform: uppercase;
  cursor: pointer;
  padding-top: 8px;
  padding-bottom: 8px;
}

select option {
  margin: 40px;
  background: #f1f1f1;
  color: #000;
  font-size: 16px;
}

/* Styling for the overlay */
#custom-alert-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
}

/* Styling for the alert dialog */
#custom-alert {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  text-align: center;
}

/* Styling for the content inside the alert */
#custom-alert-content {
  font-size: 18px;
  margin-bottom: 20px;
}

/* Styling for the close button */
#custom-alert-button {
  padding: 8px 16px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

/* Styling for the close button on hover */
#custom-alert-button:hover {
  background-color: #0056b3;
}

.booking-title {
  text-align: center;
  background-color: #e2e1db;
  padding: 8px;
  font-size: 30px;
  font-weight: bold;
  display: table;
  margin: 20px auto;
  margin-bottom: 0;
  border-radius: 9px;
}

.today-highlight {
  border: 2px dashed #ffffff;
}

.booking-notice {
  display: none;
  font-size: 18px;
  color: #444;
  margin-bottom: 10px;
  /* width: 100%; */
  text-align: center;
  background-color: #003e80;
  padding: 10px;
  color: white;
  text-transform: uppercase;
  font-weight: bold;
  margin: 10px;
  border-radius: 10px;
}

.date-info {
  font-size: 12px;
  text-align: left;

  color: black;
}

.overview-day {
  justify-content: unset;
  align-items: unset;
  padding: 4px;
  padding: 0;
  flex-direction: column;
  background-color: rgb(200 200 200);
  background-color: rgb(25 100 196);
}

.date-info-top {
  font-weight: bold;
  background-color: rgb(39, 39, 39);
  color: white;
  padding: 4px;
}


.date-info-tides-box {
  margin: 2px;
  font-size: 11px;
  text-align: left;
  background-color: #b1d0ff;
  border-radius: 4px;
  padding: 2px;
  text-transform: uppercase;
  line-height: 14px;
  color: black;
}

.date-info-tide {
  min-height: 14px;
  color: black
}

.date-info-bookings {
  font-size: 10px;
  color: rgb(255, 255, 255);
  line-height: 10px;
  font-weight: bold;
  font-style: normal;
  background-color: #00000017;
  padding: 2px;
  margin-bottom: 2px;
}

.date-info-bookings-phone {

  font-size: 10px;
  color: rgb(25 25 25);
  line-height: 10px;
  font-weight: bold;

  margin-top: 2px;
  margin-bottom: 2px;
}

.date-info-bookings-box {
  margin-top: 2px;
  background-color: rgba(0, 128, 0, 0.67);
  border: 2px solid #6ea465;
  font-size: 10px;
  color: #ccc;
  font-style: italic;
}



.date-info-bookings-box-first {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  margin-right: 0;
  border-right: 0;
}

.date-info-bookings-box-last {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-left: 0;
  border-left: 0;
}

.date-info-bookings-box-mid {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-left: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  margin-right: 0;
  border-left: 0;
  border-right: 0;
}


.date-info-company-name {
  font-size: 10px;
  color: rgb(220, 220, 220);
  font-style: italic;
}

.date-info-house-closed {
  background-color: #ed6464;
  color: rgb(63, 63, 63);
  border-radius: 4px;
  padding: 4px;
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  margin: 4px;
}

.info-box-section-header {
  font-weight: bold;
  font-size: 8px
}