/* GLOBAL RESET & BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: Arial, sans-serif;
  background-image: url('../assets/images/background.jpg'); /* Default background for all pages except maps.html */
  background-size: cover;
  background-position: center;
  color: #333;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

body.maps-page {
  background-image: none;
  margin-top: 60px;  
  height: 100vh; /* Ensure the map takes the full screen */
  margin: 0; /* Remove margin */
  padding: 0;
}

/* TRANSPARENT HEADER */
header {
  background-color: rgba(255, 255, 255, 0);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  box-shadow: none;
}
.left-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hamburger {
  font-size: 1.5rem;
  cursor: pointer;
}
.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-right: 16px;
}

/* SEARCH LANDING PAGE */
.search-panel {
  max-width: 400px;
  margin: 150px auto;
  padding: 30px;
  background-color: #f7f2e7;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.search-panel input,
.search-panel button {
  width: 100%;
  margin: 10px 0;
  padding: 10px;
  font-size: 1rem;
  border-radius: 6px;
}

.search-panel-btn {
  background-color: #0070ba;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.9rem;
  text-decoration: none; /* removes underline */
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-panel-btn:hover {
  background-color: #005a99;
}

.login-below {
  font-weight: bold;
}

/* Content window adjustments */
.content-window {
  background-color: rgba(247, 242, 231, 0.9); /* light tan with transparency */
  margin: 80px auto 20px auto; /* Reduced top and bottom margins */
  padding: 16px 20px;          /* Less vertical padding */
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 0 8px rgba(0,0,0,0.15);
  position: relative;
  z-index: 2; /* ensures it's on top of the background */
}

/* BUTTONS */
button,
.auth-container button {
  background-color: #0070ba;
  color: white;
  border: none;
  padding: 8px 14px;
  margin-top: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}
button:hover,
.auth-container button:hover {
  background-color: #005a99;
}

/* NOTIFICATION BELL */
.notification-bell img {
  cursor: pointer;
}

/* LISTINGS / TABLE-LIKE STRUCTURE */
.list-item, .listing-card, .payout-card {
  background: #ffffffcc;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}

/* STATUS BADGES */
.status-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.75rem;
  border-radius: 12px;
  font-weight: bold;
  text-transform: capitalize;
  color: white;
  margin-top: 4px;
}
.badge-active {
  background-color: #0dfbf2;
}
.badge-scheduled {
  background-color: #0d72c4;
}
.badge-completed {
  background-color: #10b981;
}
.badge-confirmed {
  background-color: #0dfbf2;
}
.badge-cancelled {
  background-color: #ef6c00;
}
.badge-cancelled-late {
  background-color: #ff0000;
}
.badge-paid {
  background-color: #10b981;
}
.badge-pending {
  background-color: #0d72c4;
}
.badge-refunded {
  background-color: #f8fb0d;
}
.badge-approved {
  background-color: #10b981; /* or whatever color you want */
  color: white;
}
.badge-rejected {
  background-color: red;
  color: white;
}

/* FORMS */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
textarea {
  padding: 8px;
  width: 100%;
  margin-top: 6px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
label {
  font-weight: bold;
  display: block;
  margin-top: 10px;
}

/* WEBHOOK LOGS */
.webhook-log-entry {
  background: #fffbe6;
  border-left: 4px solid #ff9800;
  padding: 12px;
  margin-bottom: 15px;
  font-family: monospace;
  font-size: 0.9em;
  white-space: pre-wrap;
  word-wrap: break-word;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .modal-content,
  .content-window {
    width: 95%;
    padding: 16px;
  }
  button {
    width: 100%;
  }
}

.hidden {
  display: none !important;
}

.listings-container {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.listing-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.verification-details {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #ccc;
  font-size: 0.9rem;
  color: #444;
}

.verification-details a {
  display: inline-block;
  margin: 6px 8px 0 0;
  color: #0070ba;
  text-decoration: underline;
  font-weight: bold;
}

.verification-details button {
  margin-right: 10px;
}

#listOverlay {
  position: absolute;
  top: 130px; /* just under Google Maps controls */
  left: 10px;
  width: 250px;
  max-height: 475px; 
  background-color: rgba(247, 242, 231, 0.9);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 999;
  overflow: hidden;
  align-items: center;
  vertical-align: middle;  
}

.list-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 225px;
  align-items: center; 
  vertical-align: middle;  
}

.list-header {
  margin-left: 12x;
  padding: 10px;
  font-size: 1rem;
  font-weight: bold;
  text-align: center; 
}

.list-results {
  overflow-y: auto;
  padding: 0;
  margin-left: 16px;  
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;  /* 👈 centers children horizontally */
  vertical-align: middle;  
}

.list-item {
  width: 100%; /* fills the parent, but won't overflow if .list-results uses align-items */
  max-width: 220px; /* safe buffer under 225px container */
  box-sizing: border-box;
  margin: 6px 0;
  background-color: #fff;
  border-radius: 6px;
  padding: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  align-items: center;  
  vertical-align: middle;  
}

select {
  padding: 4px;
  font-size: 0.75rem;
  height: 30px;
  line-height: 1.2;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  box-sizing: border-box;
  vertical-align: middle;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

select.duration-select {
  flex: 1;
  padding: 4px;
  font-size: 0.75rem;
  height: 25px;
  line-height: 1.2;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  box-sizing: border-box;
  vertical-align: middle;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.duration-dropdown {
  margin-top: 3px; /* adjust this value until the alignment looks right */
}

#reservationList {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reservation-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ccc;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.3s;
  position: relative;
  flex-wrap: wrap;
}

.expanded-details {
  display: none;
  width: 100%;
  background: #f5f5f5;
  padding: 10px 12px;
  font-size: 0.9rem;
  border-top: 1px solid #ddd;
  animation: fadeIn 0.2s ease-out;
}

/* Show and grid when expanded */
.reservation-row.expanded .expanded-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 16px;
}

.expanded-details p {
  margin: 0px 0;
}

/* Animation if you want to keep it */
@keyframes slideDown {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 500px; }
}

/* Reservation row styling */
.res-col.date,
.res-col.time {
  flex: 1;
  min-width: 90px;
}

.res-col.title {
  flex: 2;
  align-items: center;
  vertical-align: middle;
  text-align: center;  
}

.res-col.badge {
  flex: none;
  display: flex;
  gap: 6px;
}

/* 1) Base “modal” wrapper is invisible and non‑interactive when closed */
.user-menu {
  position: fixed;  
  top: 60px;              /* adjust if your header is taller/shorter */
  left: 0;
  width: 0;
  height: auto;
  overflow: hidden;
  background: transparent;  
  pointer-events: none;   /* let clicks through when closed */
  transition: width 0.3s ease-in-out;
  z-index: 1000;
}

/* 2) When open, slide it out to full width and allow interaction */
.user-menu.open {
  width: 220px;           /* your desired drawer width */
  pointer-events: auto;   /* now it will catch clicks */
}

/* 3) The inner white panel that actually holds your buttons */
.user-menu .user-menu-content {
  background: rgba(247, 242, 231, 0.9);;
  box-shadow: 2px 0 8px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  width: 220px;           /* match the open width */
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  border-radius: 0 8px 8px 0;  
}

/* 4) Button styling */
.user-menu .user-menu-content button {
  background: none;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  text-align: left;
  color: #333;
  cursor: pointer;
}
.user-menu .user-menu-content button:hover {
  background: rgba(0,0,0,0.05);
}

.reserve-modal {
  position: fixed;
  inset: 0;                      /* top:0; right:0; bottom:0; left:0 */
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
}

.reserve-modal .modal-content {
  background: #fff;
  border-radius: 8px;
  max-width: 400px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  align-items: center;
  vertical-align: middle;  
}

.auth-form {
  background-color: rgba(247, 242, 231, 0.95);
  padding: 24px;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.auth-form h2 {
  font-size: 1.5rem;
  color: #333;
}

.auth-form input {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-buttons button {
  width: 100%;
}

  /* FullCalendar Overrides (if needed) */
.fc {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.7rem;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
}

/* shrink the header title */
#calendar .fc-toolbar-title {
  font-size: 0.8 rem; /* or 12px, whatever you need */
}

.fc-button {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 4px 4px;
  border-radius: 8px;
  font-size: .5rem;  
}

.fc-button:hover {
  background-color: #0056b3;
}

.fc-event {
  background-color: rgba(200, 200, 200, 0.7);
  border: 1px solid rgba(150, 150, 150, 0.8);
}

.fc-event-title {
  font-size: 0.5rem;
  text-align: center;
}

.fc-daygrid-day.selected-date,
.fc-timegrid-slot.selected-date {
  background-color: rgba(100, 149, 237, 0.4); /* soft blue */
  border: 2px solid #6495ED;
}

.selected-day {
  background-color: rgba(100, 180, 255, 0.3) !important;
  transition: background-color 0.3s ease;
}

.custom-selected {
  background-color: rgba(100, 180, 255, 0.3);
}


