/* Amenities Grid */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin: 30px 0;
  justify-content: center;
}

.amenities-grid label {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  cursor: pointer;

  width: 100%;
  max-width: 280px;
  box-sizing: border-box;
  flex-wrap: wrap;
  word-break: break-word;
}

.amenities-grid label:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.amenities-grid input[type="checkbox"] {
  accent-color: #0077cc;
  transform: scale(1.2);
}

.amenities-grid .icon {
  font-size: 1.4em;
}


/* Admin Layout */
.admin-container {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
}

.admin-sidebar {
  width: 250px;
  background-color: #003366;
  color: #fff;
  padding: 20px;
  flex-shrink: 0;
}

.admin-sidebar h2 {
  font-size: 1.6em;
  margin-bottom: 20px;
  color: #ffffff !important;
}

.admin-sidebar a {
  display: block;
  color: #ffd700;
  text-decoration: none;
  margin-bottom: 12px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.admin-sidebar a:hover {
  color: #ffffff;
}

.admin-main {
  flex-grow: 1;
  padding: 50px;
  background: linear-gradient(to bottom right, #ffffff, #f7f9fc);
  border-left: 1px solid #ddd;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.03);
  border-radius: 0 8px 8px 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.admin-main h1 {
  font-size: 2.4em;
  font-weight: 600;
  margin-bottom: 20px;
  color: #2c3e50;
}

.admin-main p {
  font-size: 1.15em;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

.admin-main em {
  font-style: italic;
  color: #888;
  font-size: 1.1em;
}


/* Admin Footer */
.admin-footer {
  background-color: #003366;
  color: #ffd700;
  text-align: center;
  padding: 20px;
}

/* Public Page Layout */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Hero Banner */
.hero-banner {
  background: linear-gradient(to right, #f2f4f8, #ffffff);
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  animation: fadeIn 1s ease-in;
}

.hero-box {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.hero-box h1 {
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 10px;
  color: #2c3e50;
}

.hero-box h2 {
  font-size: 2em;
  font-weight: 600;
  margin-bottom: 20px;
  color: #444;
}

.hero-box .tagline,
.hero-box .subtext {
  font-size: 1.2em;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 10px;
  color: #777;
}

/* Buttons */
.section-buttons {
  margin: 30px 0;
}

.section-buttons .mini-button {
  background-color: #fff;
  color: #0077cc;
  border: 1px solid #0077cc;
  padding: 10px 18px;
  margin: 6px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.section-buttons .mini-button:hover {
  background-color: #e6f2ff;
}

.cta-button {
  background-color: #d4af37;
  color: #000;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.cta-button:hover {
  background-color: #bfa133;
}

/* Fade-in Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Public Footer */
footer {
  width: 100%;
  background-color: #f8f8f8;
  padding: 30px 0;
}

.footer-wrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.footer-wrapper p {
  margin-bottom: 10px;
  font-size: 0.9em;
  color: #666;
}

.footer-wrapper a {
  color: #0077cc;
  text-decoration: underline;
}

.footer-wrapper a:visited {
  color: #0077cc;
}

/* Property Description */
.property-description {
  font-size: 1.1em;
  color: #444;
  line-height: 1.6;
}
.property-description h3 {
  margin-bottom: 10px;
  color: #2c3e50;
}

/* Edit Property */
.edit-property-wrapper {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.edit-property-wrapper h2 {
  margin-bottom: 20px;
  font-size: 1.8em;
  color: #2c3e50;
}

.edit-property-form label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
  color: #333;
}

.edit-property-form input[type="text"],
.edit-property-form input[type="number"],
.edit-property-form input[type="date"],
.edit-property-form input[type="email"],
.edit-property-form textarea {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  box-sizing: border-box;
}

.edit-property-form textarea {
  min-height: 160px;
  width: 100%;
  padding: 12px 14px;
  font-size: 1.05em;
  line-height: 1.6;
  border: 1px solid #ccc;
  border-radius: 6px;
  resize: vertical;
  box-sizing: border-box;
  background-color: #fdfdfd;
}

.edit-property-form .form-group {
  margin-bottom: 20px;
}

.edit-property-form .form-section {
  margin-top: 30px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.edit-property-form button {
  background-color: #0077cc;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  margin-top: 20px;
}

.edit-property-form button:hover {
  background-color: #005fa3;
}

.edit-property-form select {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  box-sizing: border-box;
}

.edit-property-form h3 {
  margin-top: 30px;
  font-size: 1.4em;
  color: #2c3e50;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
}

@media (max-width: 768px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 20px;
    border: 1px solid #ccc;
    padding: 10px;
    background: #fff;
  }

  td {
    padding: 5px 10px;
    text-align: left;
    border: none;
    position: relative;
  }

  td::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #555;
  }
}

/* Edit Receipts */
.edit-receipt-wrapper {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.receipt-form label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
  color: #333;
}

.receipt-form input[type="text"],
.receipt-form input[type="number"],
.receipt-form input[type="date"],
.receipt-form textarea {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  box-sizing: border-box;
}

.receipt-form textarea {
  min-height: 120px;
  resize: vertical;
  background-color: #fdfdfd;
}

.button-group {
  margin-top: 20px;
}

.button-group button {
  background-color: #0077cc;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  margin-right: 10px;
}

.button-group .delete {
  background-color: #cc0000;
}

.button-group button:hover {
  opacity: 0.9;
}

.preview-section {
  margin-top: 40px;
}

.receipt {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.receipt p {
  margin: 6px 0;
}

.receipt form {
  margin-top: 10px;
}

/* Welcome Arrival */
.disclaimer {
  font-size: 0.95em;
  color: #666;
  margin-top: 30px;
  font-style: italic;
}

/* Property Search Table */
.results-table-wrapper table {
  margin: 0 auto;
  max-width: 1000px;
}

td[data-label="Title"],
td[data-label="Address"],
td[data-label="Available"] {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.thumbnail {
  width: 100px;
  height: auto;
  border-radius: 4px;
}

.search-form input {
  width: 100%;
  max-width: 300px;
  padding: 8px;
  margin-bottom: 10px;
}

#zip {
  width: 100% !important;
  max-width: 300px !important;
  box-sizing: border-box;
}

/* Public Footer */
.public-footer {
  background: #f4f4f4;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 0.9em;
  color: #333;
}

/* Property Search Badge */
td .badge-immediate {
  background-color: #28a745 !important;
  color: white !important;
  font-size: 0.75em;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 6px;
  display: inline-block;
  animation: pulse 1.5s infinite;
  box-shadow: 0 0 6px rgba(40, 167, 69, 0.6);
}

/* Table Center */
th, td {
  text-align: center;
}

.receipt button.edit {
  background-color: #666;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  margin-right: 10px;
}

.receipt button.edit:hover {
  background-color: #444;
}

/* Arrivals Welcome */
.dashboard {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
  background-color: #fdfdfd;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.dashboard h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #0077cc;
  text-align: center;
}

.dashboard h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5rem;
  color: #444;
}

.dashboard p {
  margin: 0.5rem 0;
  font-size: 1rem;
  line-height: 1.5;
}

.dashboard strong {
  color: #333;
}

.dashboard ul {
  margin: 0.5rem 0 1rem 1.2rem;
  padding-left: 0;
}

.dashboard ul li {
  margin-bottom: 0.3rem;
}

.highlight {
  font-weight: bold;
  color: #0077cc;
}

.admin-footer {
  text-align: center;
  font-size: 0.9rem;
  color: #777;
  margin-top: 2rem;
}

#reserve_button {
  transition: opacity 0.4s ease;
}

.admin-table th,
.admin-table td {
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}
