/* Hotel Detail Page Styles */

/* Enhanced Media Gallery */
.media-gallery {
  padding: 2rem 0;
  background: #f8f9fa;
}

.main-media-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.main-media-display {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.main-media-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.media-controls {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.main-media-container:hover .media-controls {
  opacity: 1;
}

.media-nav {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.media-nav:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.media-counter {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

/* Media Sidebar */
.media-sidebar {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: fit-content;
}

.media-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.media-tab {
  flex: 1;
  background: #f8f9fa;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.media-tab.active {
  background: #007bff;
  color: white;
}

.media-tab:hover:not(.active) {
  background: #e9ecef;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  max-height: 300px;
  overflow-y: auto;
}

.thumbnail {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.thumbnail.active {
  border-color: #007bff;
}

.thumbnail:hover {
  transform: scale(1.05);
}

.thumbnail img {
  width: 100%;
  height: 80px;
  object-fit: cover;
}

.thumbnail-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 0.5rem;
  font-size: 0.8rem;
}

.video-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-preview:hover {
  background: #e9ecef;
  transform: scale(1.02);
}

.video-thumbnail {
  text-align: center;
  color: #007bff;
}

.media-info {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

/* Room Details Section */
.room-details {
  padding: 3rem 0;
}

.hotel-tabs .nav-tabs {
  border-bottom: 2px solid #eee;
  margin-bottom: 2rem;
}

.hotel-tabs .nav-link {
  border: none;
  color: #666;
  font-weight: 500;
  padding: 1rem 1.5rem;
  transition: all 0.3s ease;
}

.hotel-tabs .nav-link.active {
  color: #007bff;
  border-bottom: 2px solid #007bff;
  background: none;
}

.hotel-tabs .nav-link:hover {
  color: #007bff;
  border-color: transparent;
}

/* Overview Tab Styles */
.room-description h4 {
  color: #333;
  margin-bottom: 1rem;
}

.room-description .lead {
  color: #666;
  line-height: 1.6;
}

.spec-card {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1.5rem;
  height: 100%;
}

.spec-card h6 {
  color: #333;
  margin-bottom: 1rem;
  font-weight: 600;
}

.spec-list.compact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.spec-list.compact li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.spec-list.compact li:last-child {
  border-bottom: none;
}

.spec-label {
  font-weight: 500;
  color: #666;
}

.amenities-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.amenity-badge {
  background: #e3f2fd;
  color: #1976d2;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.amenity-badge.more {
  background: #f5f5f5;
  color: #666;
}

/* Amenities Tab Styles */
.amenity-category {
  margin-bottom: 2rem;
}

.amenity-category h6 {
  color: #333;
  margin-bottom: 1rem;
  font-weight: 600;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.amenity-item:hover {
  background: #e3f2fd;
  transform: translateY(-2px);
}

.amenity-item i {
  color: #007bff;
  width: 20px;
  text-align: center;
}

/* Media Gallery Tab */
.full-gallery .gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.full-gallery .gallery-item:hover {
  transform: scale(1.02);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-label {
  color: white;
  font-weight: 500;
  margin-right: 1rem;
}

.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  border-radius: 10px;
  overflow: hidden;
}

.video-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Enhanced Booking Sidebar */
.booking-sidebar {
  top: 2rem;
}

.price-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  padding: 1.5rem;
}

.price-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-main {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.price-main .currency {
  font-size: 1.2rem;
  font-weight: 500;
}

.price-main .amount {
  font-size: 2.5rem;
  font-weight: 700;
}

.price-main .price-unit {
  font-size: 0.9rem;
  opacity: 0.9;
}

.rating-stars {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.rating-stars i {
  color: #ffd700;
}

.booking-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.booking-header {
  margin-bottom: 1.5rem;
}

.booking-header h5 {
  color: #333;
  margin-bottom: 0.5rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Booking Form Floating Label Styles - Scoped to booking form only */
.booking-form .floating-label {
  position: relative;
}

.booking-form .floating-label .input-group {
  position: relative;
  display: flex;
}

.booking-form .floating-label .input-group-text {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-right: none;
  border-radius: 8px 0 0 8px;
  color: #007bff;
  width: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1;
}

.booking-form .floating-label .form-control-wrapper {
  position: relative;
  flex: 1;
  z-index: 5;
}

.booking-form .floating-label .form-control,
.booking-form .floating-label .form-select {
  border: 1px solid #e0e0e0;
  border-left: none;
  border-radius: 0 8px 8px 0;
  padding: 1.2rem 0.75rem 0.4rem 0.75rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: white;
  width: 100%;
  position: relative;
  z-index: 1;
  cursor: text;
}

.booking-form .floating-label .form-select {
  cursor: pointer;
}

.booking-form .floating-label .floating-label-text {
  position: absolute;
  top: -8px;
  left: 0.5rem;
  transform: translateY(0);
  background: white;
  padding: 0 0.25rem;
  color: #007bff;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 5;
  user-select: none;
}

/* Booking Form Active/Focus States */
.booking-form .floating-label .form-control:focus,
.booking-form .floating-label .form-select:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  outline: none;
}

/* Labels are always floating - no dynamic positioning needed */

.booking-form .floating-label .input-group:focus-within .input-group-text {
  border-color: #007bff;
  background: rgba(0, 123, 255, 0.1);
}

/* Ensure inputs are clickable and editable */
.booking-form .floating-label .form-control,
.booking-form .floating-label .form-select {
  pointer-events: auto !important;
  user-select: auto !important;
}

.booking-form .floating-label .form-control:disabled,
.booking-form .floating-label .form-select:disabled {
  pointer-events: none;
}

/* Booking Form Date Input Specific Styles */
.booking-form .floating-label input[type="date"] {
  color: #333;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.booking-form .floating-label input[type="date"]:focus,
.booking-form .floating-label input[type="date"]:valid,
.booking-form .floating-label input[type="date"]:not([value=""]) {
  color: #333;
}

.booking-form .floating-label input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  position: relative;
  z-index: 10;
  opacity: 1;
}

/* Date labels are always floating - no dynamic positioning needed */

/* Booking Form Select Specific Styles */
.booking-form .floating-label .form-select {
  cursor: pointer;
  position: relative;
  z-index: 1;
}

/* Select labels are always floating - no dynamic positioning needed */

/* Legacy form styles for compatibility */
.form-label {
  font-weight: 500;
  color: #333;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-control,
.form-select {
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 0.75rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.price-breakdown {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  margin: 1.5rem 0;
}

.price-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.price-row.total {
  border-top: 1px solid #ddd;
  margin-top: 0.5rem;
  padding-top: 1rem;
  font-weight: 600;
}

.booking-btn {
  border-radius: 8px;
  padding: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.booking-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.booking-features .feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}

.contact-card {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
}

.contact-options {
  display: flex;
  gap: 0.5rem;
}

.contact-options .btn {
  flex: 1;
  border-radius: 6px;
}

/* Related Rooms Section */
.related-rooms {
  padding: 3rem 0;
  background: #f8f9fa;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h3 {
  color: #333;
  margin-bottom: 0.5rem;
}

.property-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.property-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
  transform: scale(1.05);
}

.property-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.property-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: calc(100% - 200px);
}

.property-title a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
}

.property-title a:hover {
  color: #007bff;
}

.property-type {
  color: #666;
  margin-bottom: 1rem;
}

.property-features {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #666;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.property-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.property-price .price {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
}

.property-price .price-unit {
  font-size: 0.9rem;
  color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
  .media-gallery .row {
    flex-direction: column-reverse;
  }

  .media-sidebar {
    margin-bottom: 2rem;
  }

  .thumbnail-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .amenities-grid {
    grid-template-columns: 1fr;
  }

  .contact-options {
    flex-direction: column;
  }

  .property-features {
    flex-direction: column;
    gap: 0.5rem;
  }
}
