/* ====== Global Styles ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #e6f7ff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  z-index: -1;
}

/* ====== Header ====== */
.main-header {
  text-align: center;
  margin-bottom: 2rem;
}
.main-header h1 {
  font-size: 2.5rem;
  color: #2a6b7e;
  margin-bottom: 10px;
}
.main-header p {
  font-size: 1.2rem;
  color: #555;
}

/* ====== Buttons ====== */
a.btn,
button.btn {
  all: unset;
  background: var(--btn-color, #2a6b7e);
  color: var(--btn-text, #ffffff);
  padding: 12px 20px;
  border-radius: 8px;
  text-align: center;
  font-size: 1.1rem;
  text-decoration: none;
  display: inline-block;
  transition: filter 0.3s, transform 0.2s;
  font-family: inherit;
  cursor: pointer;
}

a.btn:hover,
button.btn:hover {
  filter: brightness(96%);
  transform: translateY(-2px);
}

/* ====== Navigation ====== */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}
.main-nav a.btn {
  min-width: 120px;
}

/* ====== Swell effect animation ====== */
.swell-effect {
  animation: swell 2s infinite ease-in-out;
}
@keyframes swell {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* ====== Container Layout ====== */
.container {
  max-width: 800px;
  margin: auto;
  padding: 2rem;
}

/* ====== Reviews Page ====== */
.top-bar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}
.review-card {
  border: 1px solid #ddd;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  background-color: #fff;
}
.review-image {
  max-width: 100%;
  max-height: 300px;
  margin-top: 1rem;
  border-radius: 4px;
}
.leave-review-button {
  background-color: #2a6b7e;
  color: var(--btn-text, #ffffff) !important;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: filter 0.3s ease;
}
.leave-review-button:hover {
  filter: brightness(96%);
}
.rating-stars {
  color: gold;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* ====== Forms ====== */
.contact-form {
  background: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: 600px;
  margin: 2rem auto;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  font-weight: bold;
  display: block;
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
}
.form-group textarea {
  resize: vertical;
}
textarea[name="notes"] {
  display: block;
  width: 100%;
  min-height: 100px;
  background: #fff;
  color: #000;
  border: 1px solid #ccc;
  padding: 0.75rem;
  font-size: 1rem;
  resize: vertical;
}
.contact-form button {
  background: var(--btn-color, #2a6b7e);
  color: var(--btn-text, #ffffff) !important;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: filter 0.3s ease;
}
.contact-form button:hover {
  filter: brightness(96%);
}

/* ====== Alert Box ====== */
.alert {
  background: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border: 1px solid #f5c6cb;
  border-radius: 5px;
  margin-bottom: 1rem;
  text-align: center;
}

/* ====== Back Button ====== */
.back-btn {
  margin: 2rem auto 0;
  text-align: center;
}
.back-btn a {
  background: #ccc;
  color: #333;
  padding: 0.5rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}
.back-btn a:hover {
  background: #999;
  color: white;
}

/* ====== Modal Popup ====== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  animation: popup 0.5s ease;
}
@keyframes popup {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.modal-content button {
  margin-top: 1.5rem;
  background: var(--btn-color, #2a6b7e);
  color: var(--btn-text, #ffffff) !important;
  border: none;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: filter 0.3s ease;
}
.modal-content button:hover {
  filter: brightness(96%);
}

/* ====== Admin Console Layout ====== */
.admin-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  margin: 0;
}
.sidebar {
  width: 220px;
  background: var(--sidebar-bg, #d5e8f6);
  color: #333;
  padding: 1rem;
  box-sizing: border-box;
  flex-shrink: 0;
}
.sidebar h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.sidebar a {
  color: #333;
  text-decoration: none;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
  display: block;
  transition: background 0.3s ease;
}
.sidebar a:hover {
  background: rgba(0,0,0,0.05);
}
.sidebar a.active {
  background: rgba(0,0,0,0.1);
}
.admin-content {
  flex-grow: 1;
  padding: 2rem;
  background: var(--admin-bg, #f9fbfd);
}
.dashboard-card {
  background: var(--admin-button-color, #4CAF50);
  color: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  font-size: 1.2rem;
  transition: background 0.3s ease;
}

/* ====== Calendar Styling ====== */
.selected-arrival {
  background: linear-gradient(to left, #ffcc66 50%, #a9d5af 50%) !important;
}
.selected-departure {
  background: linear-gradient(to right, #ffcc66 50%, #a9d5af 50%) !important;
}
.selected-middle {
  background-color: #ffcc66 !important;
}

.booked-arrival {
  background: linear-gradient(to left, #2f73b6 50%, #a9d5af 50%) !important;
}
.booked-departure {
  background: linear-gradient(to right, #2f73b6 50%, #a9d5af 50%) !important;
}
.booked-middle {
  background-color: #2f73b6 !important;
}

.fc-daygrid-day.available {
  background-color: #a9d5af;
}
.fc-daygrid-day.unavailable {
  background-color: #d46a6a !important;
}

.color-key {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  font-size: 0.95rem;
}
.color-entry {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.color-box {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  border: 1px solid #999;
}

/* ====== Share Memory Button ====== */
.share-memory-link {
  text-align: center;
  margin: 1rem auto;
}
.share-memory-link a {
  all: unset;
  background: var(--btn-color, #2a6b7e);
  color: var(--btn-text, #ffffff);
  padding: 12px 20px;
  border-radius: 8px;
  text-align: center;
  font-size: 1.1rem;
  text-decoration: none;
  display: inline-block;
  transition: filter 0.3s, transform 0.2s;
  font-family: inherit;
  cursor: pointer;
}
.share-memory-link a:hover {
  filter: brightness(96%);
  transform: translateY(-2px);
}
