/* HOTEL LIST STYLES - Table Layout */

/* Hotel Table Header */
.hotel-table-header {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1fr 1fr 150px;
  background: #D9A128;
  color: #ffffff;
  font-weight: bold;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.hotel-table-header > div {
  display: flex;
  align-items: center;
  font-size: 14px;
  margin: 0;
  padding: 9px 15px;
  min-width: 0;
  white-space: nowrap;
}

/* Hotel Table Row */
.hotel-table-row {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1fr 1fr 150px;
  border-bottom: 1px solid #eee;
  font-size: 12px;
  align-items: center;
  transition: background 0.2s ease-in-out;
  background: #FFFBF4;
}

.hotel-table-row:hover {
  background: #fffdf9;
}

.hotel-table-row > div {
  font-size: 12px;
  padding: 10px 15px;
  min-width: 0;
  display: flex;
  align-items: center;
}

/* Hotel Actions */
.hotel-actions {
  display: flex;
  gap: 5px;
  justify-content: center;
}

.hotel-actions .action-btn {
  background: transparent;
  border: none;
  color: #555;
  padding: 4px 8px;
  cursor: pointer;
  transition: color 0.2s;
  font-size: 12px;
}

.hotel-actions .action-btn:hover {
  color: #D9A128;
}

/* Expanded Details */
.hotel-expanded-details {
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
  padding: 15px;
}

/* Room Table Header */
.room-table-header {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 1fr 0.8fr 0.8fr 150px;
  background: #6c757d;
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  border-radius: 6px 6px 0 0;
}

.room-table-header > div {
  padding: 8px 12px;
}

/* Room Table Row */
.room-table-row {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 1fr 0.8fr 0.8fr 150px;
  background: #fff;
  border-bottom: 1px solid #eee;
  font-size: 12px;
  align-items: center;
}

.room-table-row:last-child {
  border-radius: 0 0 6px 6px;
}

.room-table-row > div {
  padding: 8px 12px;
}

.room-table-row:hover {
  background: #f8f9fa;
}

/* Room Actions */
.room-actions {
  display: flex;
  align-items: center;
  gap: 3px;
}

.room-actions .action-btn {
  background: transparent;
  border: none;
  color: #555;
  padding: 3px 6px;
  cursor: pointer;
  font-size: 11px;
}

.room-actions .action-btn:hover {
  color: #D9A128;
}

/* Hotel Pagination */
.hotel-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: #FFFBF4;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Legacy styles kept for modals */
.hotel-heading {
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 16px;
}

.hotel-header-box {
  background-color: #e6f5f0;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  color: #333;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
}


/* Card identical */
.hotel-card {
  border-radius: 8px;
  padding: 1rem 1.2rem;
  transition: box-shadow 0.2s;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

/* Vertical bar inside card */
.hotel-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

/* Hover effect identical */
.hotel-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Hotel logo */
.hotel-logo {
  width: 90px;
  margin-right: 10px;
}

.hotel-card img {
  max-width: 50px;
  max-height: 50px;
}

/* Right-side edit/delete icons */
.hotel-actions-icons {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 8px;
}

/* Reuse modal overlay */
.hotel-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
}

/* Reuse modal container */
.hotel-modal-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  width: 500px;
  max-width: 90%;
  padding: 20px;
  border-radius: 10px;
  z-index: 1000;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Reuse modal header + close button */
.hotel-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.hotel-close-button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* Gallery Modal Overlay */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6); /* semi-transparent background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Modal Content */
.gallery-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 80%;
  max-height: 80%;
  overflow-y: auto; /* scroll if many images */
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  position: relative;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  border: none;
  background: none;
  cursor: pointer;
}

/* Images inside modal */
.gallery-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.gallery-img {
  width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s;
}

.gallery-img:hover {
  transform: scale(1.05);
}
