.selected-date {
    background-color: #dddddd !important;
    border: 2px solid #dddddd !important;
}

.fc-title {
    display: flex;
    flex-direction: column;
}

a.myL-links {
    color: #6c1cff
}

/* Hide the native title tooltip */
.fc-event[title] {
    position: relative; /* Required for absolute positioning of the tooltip */
    cursor: pointer;
}
  
  /* Create a custom tooltip using a pseudo-element */
.fc-event[title]::after {
    content: attr(title);
    position: absolute;
    bottom: 100%; /* Position above the event */
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 9999;
}
  
  /* Show the tooltip on hover */
.fc-event[title]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-12px);
}

.custom-tooltip {
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    position: absolute;
    z-index: 10000;
    white-space: pre-line; /* To handle the \n newlines */
    display: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}


.flex-half {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
}

.fc-event {
    background-color: #9356f4;
    border-color: #9356f4;
}

/* ----- Custom select (MyListing Booking) ----- */
.mylisting-booking-form .ml-select-wrap {
  position: relative;
  width: 100%;
}

/* Remove native look across browsers */
.mylisting-booking-form .ml-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  display: block;
  width: 100%;
  padding: 12px 44px 12px 14px;

  background-color: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 6px;

  font-size: 14px;
  line-height: 1.4;
  color: #222;

  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

/* Placeholder color when first option is selected */
.mylisting-booking-form .ml-select:required:invalid {
  color: #7a7a7a;
}

/* Safari/iOS keeps placeholder color unless a “real” option is set explicitly */
.mylisting-booking-form .ml-select option[value=""] { color: #7a7a7a; }
.mylisting-booking-form .ml-select option { color: #222; }

/* Focus + hover states to match inputs */
.mylisting-booking-form .ml-select:hover {
  border-color: #c7c7c7;
}
.mylisting-booking-form .ml-select:focus {
  outline: none;
  border-color: #6c1cff;           /* accent from your links */
  box-shadow: 0 0 0 3px rgba(108,28,255,.12);
}

/* Disabled state */
.mylisting-booking-form .ml-select:disabled {
  background-color: #f6f6f6;
  color: #a8a8a8;
  cursor: not-allowed;
}

/* Custom chevron (SVG) */
.mylisting-booking-form .ml-select-wrap::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  width: 18px;
  height: 18px;

  /* Inline SVG so no extra request; inherits currentColor */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

/* High-contrast / dark backgrounds (optional) */
@media (prefers-color-scheme: dark) {
  .mylisting-booking-form .ml-select {
    /* background-color: #1f1f1f; */
    /* border-color: #3a3a3a; */
    color: #eaeaea;
  }
  .mylisting-booking-form .ml-select:required:invalid { color: #9c9c9c; }
  .mylisting-booking-form .ml-select-wrap::after {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23c8c8c8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  }
}


@media screen and (max-width: 768px) {
    #booked-dates thead {
        display: none; /* Hide table headers on small screens */
    }

    #booked-dates, 
    #booked-dates tbody, 
    #booked-dates tr, 
    #booked-dates td {
        display: block;
        width: 100%;
    }

    #booked-dates tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 6px;
        padding: 10px;
        background: #f9f9f9;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    #booked-dates td {
        text-align: left;
        padding: 6px 8px;
        border: none;
        position: relative;
    }

    #booked-dates td::before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        color: #444;
        margin-bottom: 4px;
    }

    #booked-dates .buttons {
        width: 100%;
        margin-top: 8px;
    }
	
	/* calendar for admin on mob	 */
	/* Make the calendar header more readable on small screens */
    .fc-header-toolbar h2 {
        font-size: 18px;
        text-align: center;
    }

    /* Adjust toolbar buttons for better touch interaction */
    .fc-toolbar .fc-button {
        font-size: 12px;
        padding: 8px;
    }

    .fc-prev-button, .fc-next-button {
        font-size: 16px;
    }

    /* Improve the calendar grid layout */
    .fc-view-container {
        overflow-x: auto;
    }

    .fc-month-view .fc-content-skeleton {
        display: block;
        overflow-x: scroll;
    }

    /* Adjust the days grid layout for mobile */
    .fc-day-header {
        padding: 10px;
        font-size: 14px;
    }

    /* Adjust the grid cells for smaller screens */
    .fc-day {
        width: 14.2%;
        height: 80px;
    }

    .fc-day-number {
        font-size: 16px;
        line-height: 24px;
    }

    .fc-event-container {
        font-size: 12px;
        padding: 4px;
    }

    /* Add a bit more space between rows on small screens */
    .fc-row.fc-week {
        margin-bottom: 10px;
    }
	
	.fc-content .listing-title,
	.fc-content .email{
		display: none;
	}
}


/* For very small screens (phones in portrait mode) */
@media (max-width: 480px) {
    .fc-day {
        width: 28%;
    }

    .fc-day-header {
        font-size: 10px;
    }

    .fc-day-number {
        font-size: 14px;
    }

    .fc-event-container {
        font-size: 10px;
    }

    .fc-toolbar .fc-button {
        padding: 6px;
        font-size: 10px;
    }

    .fc-prev-button, .fc-next-button {
        font-size: 14px;
    }

    /* Adjusting header text */
    .fc-header-toolbar h2 {
        font-size: 16px;
        text-align: center;
    }
}

