/**
 * Property Details Enhancements
 * Additional styles for property-details.php
 */

/* Property Gallery Improvements */
.property-gallery .gallery-item {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.property-gallery .gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 10px rgba(0,0,0,0.1);
}

/* Fancybox Custom Styling */
.fancybox__container .fancybox__toolbar {
  background: rgba(0,0,0,0.5);
  padding: 8px;
}

.fancybox__container .fancybox__counter {
  font-size: 14px;
  font-weight: bold;
}

/* Room/Unit Tables Styling */
.room-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.room-table thead {
  background-color: #f8f9fa;
  border-bottom: 2px solid #e0e5ec;
}

.room-table th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: #343a40;
  border-bottom: 2px solid #dee2e6;
  position: sticky;
  top: 0;
  background-color: #f8f9fa;
  z-index: 10;
}

.room-table tbody tr {
  border-bottom: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.room-table tbody tr:hover {
  background-color: rgba(240, 242, 245, 0.6);
}

.room-table td {
  padding: 12px;
  vertical-align: top;
  line-height: 1.4;
}

.room-type strong {
  font-size: 16px;
  color: #343a40;
  display: block;
  margin-bottom: 3px;
}

.room-type small {
  color: #6c757d;
  font-size: 13px;
  display: block;
}

/* Capacity icons styling */
.capacity-icons i {
  color: #6c757d;
  margin-right: 3px;
}

.capacity-icons .text-muted {
  font-size: 13px;
}

/* Room details styling */
.room-details .detail-item {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.room-details .detail-item i {
  width: 18px;
  color: #6c757d;
  margin-right: 5px;
}

/* Status badge styling */
.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
}

.badge-success {
  background-color: #d4edda;
  color: #155724;
}

.badge-primary {
  background-color: #cce5ff;
  color: #004085;
}

.badge-warning {
  background-color: #fff3cd;
  color: #856404;
}

.badge-danger {
  background-color: #f8d7da;
  color: #721c24;
}

.badge i {
  margin-right: 5px;
}

/* Price cell styling */
.pricing-cell {
  font-size: 15px;
}

.pricing-cell .price {
  color: #212529;
  font-size: 18px;
  font-weight: 700;
}

.pricing-cell .currency {
  font-size: 14px;
  color: #6c757d;
  margin-left: 2px;
}

.pricing-cell .text-muted {
  font-size: 13px;
  margin-top: 2px;
  display: block;
}

/* Table lists styling */
.room-policies-list,
.room-amenities-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  font-size: 14px;
}

.room-policies-list li,
.room-amenities-list li {
  margin-bottom: 6px;
  line-height: 1.4;
}

.room-policies-list i,
.room-amenities-list i {
  width: 18px;
  color: #6c757d;
  margin-right: 5px;
}

/* Filter container styling */
.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: flex-end;
}

.filter-item {
  flex: 1 1 200px;
}

.filter-item label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #495057;
}

/* Button styling */
.book-now-btn {
  white-space: nowrap;
  min-width: 120px;
}

/* Modal styling enhancements */
.modal-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.modal-footer {
  background-color: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

/* Commercial specific styling */
.commercial-feature-list li {
  margin-bottom: 8px;
}

/* Responsive adjustments */
@media screen and (max-width: 992px) {
  .table-container {
    max-width: 100vw;
    overflow-x: auto;
  }
  
  .room-table th,
  .room-table td {
    min-width: 120px;
  }
}

@media screen and (max-width: 768px) {
  .filter-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-item {
    flex: 1 1 100%;
  }
  
  .room-details .detail-item {
    font-size: 13px;
  }
}
