/**
 * Divi 5 Hotel Extension Suite - Core Stylesheet
 * Responsive, Quiet Luxury, High-Performance Design
 */

:root {
  --dhe-primary: #b89146;
  --dhe-primary-dark: #977330;
  --dhe-primary-light: #f5eedc;
  --dhe-dark: #12151b;
  --dhe-dark-surface: #1b2029;
  --dhe-text-main: #2d3139;
  --dhe-text-muted: #6b7280;
  --dhe-border: #e5e7eb;
  --dhe-glass-bg: rgba(255, 255, 255, 0.85);
  --dhe-glass-border: rgba(255, 255, 255, 0.3);
  --dhe-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --dhe-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.14);
  --dhe-radius: 12px;
  --dhe-radius-lg: 20px;
  --dhe-font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --dhe-font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  --dhe-transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   Base & Resets
   ========================================================================== */
.dhe-module {
  box-sizing: border-box;
  font-family: var(--dhe-font-sans);
  color: var(--dhe-text-main);
  position: relative;
}

.dhe-module *,
.dhe-module *::before,
.dhe-module *::after {
  box-sizing: inherit;
}

/* ==========================================================================
   1. Room Showcase (`hotel-room-card`)
   ========================================================================== */
.dhe-room-card {
  background: #ffffff;
  border-radius: var(--dhe-radius-lg);
  overflow: hidden;
  box-shadow: var(--dhe-shadow);
  transition: var(--dhe-transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--dhe-border);
}

.dhe-room-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--dhe-shadow-hover);
}

.dhe-room-image-wrap {
  position: relative;
  width: 100%;
  padding-top: 60%;
  overflow: hidden;
  background-color: #f3f4f6;
}

.dhe-room-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.dhe-room-card:hover .dhe-room-image {
  transform: scale(1.05);
}

.dhe-room-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--dhe-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 2;
}

.dhe-room-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.dhe-room-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.dhe-room-title {
  font-family: var(--dhe-font-serif);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  color: var(--dhe-dark);
  margin: 0;
  line-height: 1.25;
}

.dhe-room-price-box {
  text-align: right;
  flex-shrink: 0;
}

.dhe-room-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--dhe-primary);
  line-height: 1;
}

.dhe-room-price-suffix {
  font-size: 12px;
  color: var(--dhe-text-muted);
  display: block;
  margin-top: 4px;
}

.dhe-room-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 0;
  margin: 8px 0 16px;
  border-top: 1px solid #f1f3f5;
  border-bottom: 1px solid #f1f3f5;
  font-size: 13px;
  color: var(--dhe-text-muted);
}

.dhe-room-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dhe-room-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--dhe-text-muted);
  margin-bottom: 20px;
}

.dhe-room-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.dhe-amenity-tag {
  background: var(--dhe-primary-light);
  color: var(--dhe-primary-dark);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dhe-room-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.dhe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--dhe-transition);
  border: none;
  min-height: 48px;
}

.dhe-btn-primary {
  background: var(--dhe-primary);
  color: #ffffff !important;
}

.dhe-btn-primary:hover {
  background: var(--dhe-primary-dark);
}

.dhe-btn-whatsapp {
  background: #25D366;
  color: #ffffff !important;
}

.dhe-btn-whatsapp:hover {
  background: #1eb956;
}

.dhe-btn-outline {
  background: transparent;
  border: 1px solid var(--dhe-border);
  color: var(--dhe-text-main) !important;
}

.dhe-btn-outline:hover {
  border-color: var(--dhe-primary);
  color: var(--dhe-primary) !important;
}

/* ==========================================================================
   2. Smart Booking Bar (`hotel-booking-bar`)
   ========================================================================== */
.dhe-booking-bar {
  background: var(--dhe-glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--dhe-glass-border);
  border-radius: var(--dhe-radius-lg);
  padding: 16px 24px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.dhe-booking-bar.is-sticky {
  position: sticky;
  top: 20px;
  z-index: 1000;
}

.dhe-booking-field {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dhe-booking-label {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--dhe-text-muted);
}

.dhe-booking-input {
  border: 1px solid var(--dhe-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--dhe-text-main);
  background: #ffffff;
  outline: none;
  transition: var(--dhe-transition);
  width: 100%;
}

.dhe-booking-input:focus {
  border-color: var(--dhe-primary);
  box-shadow: 0 0 0 3px rgba(184, 145, 70, 0.15);
}

/* ==========================================================================
   3. Galeri Sinematik (`hotel-gallery`)
   ========================================================================== */
.dhe-gallery-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.dhe-gallery-filter-btn {
  background: transparent;
  border: 1px solid var(--dhe-border);
  border-radius: 30px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--dhe-transition);
}

.dhe-gallery-filter-btn.active,
.dhe-gallery-filter-btn:hover {
  background: var(--dhe-primary);
  border-color: var(--dhe-primary);
  color: #ffffff;
}

.dhe-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.dhe-gallery-item {
  position: relative;
  border-radius: var(--dhe-radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.dhe-gallery-item img,
.dhe-gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.dhe-gallery-item:hover img,
.dhe-gallery-item:hover video {
  transform: scale(1.08);
}

.dhe-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--dhe-transition);
  color: #ffffff;
}

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

/* ==========================================================================
   4. Banquet, Meeting Room & Ballroom (`hotel-banquet`)
   ========================================================================== */
.dhe-banquet-card {
  background: #ffffff;
  border-radius: var(--dhe-radius-lg);
  border: 1px solid var(--dhe-border);
  overflow: hidden;
  box-shadow: var(--dhe-shadow);
  margin-bottom: 30px;
}

.dhe-banquet-hero {
  position: relative;
  width: 100%;
  height: 380px;
  background-color: #1b2029;
}

.dhe-banquet-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dhe-banquet-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  color: #ffffff;
}

.dhe-banquet-title {
  font-family: var(--dhe-font-serif);
  font-size: clamp(24px, 3vw, 36px);
  margin: 0 0 8px 0;
  color: #ffffff;
}

.dhe-banquet-specs {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

.dhe-banquet-body {
  padding: 32px;
}

.dhe-capacity-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
}

.dhe-capacity-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 13px;
}

.dhe-capacity-table th,
.dhe-capacity-table td {
  padding: 14px 12px;
  border: 1px solid var(--dhe-border);
}

.dhe-capacity-table th {
  background: #f9fafb;
  font-weight: 600;
  color: var(--dhe-text-main);
}

.dhe-capacity-icon {
  font-size: 20px;
  display: block;
  margin-bottom: 4px;
}

.dhe-equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.dhe-equipment-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 8px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 980px) {
  .dhe-booking-bar {
    padding: 20px;
  }
  .dhe-room-content {
    padding: 20px;
  }
}

@media (max-width: 767px) {
  .dhe-booking-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .dhe-booking-field {
    width: 100%;
  }
  .dhe-room-actions {
    flex-direction: column;
  }
  .dhe-btn {
    width: 100%;
  }
  .dhe-banquet-hero {
    height: 240px;
  }
  .dhe-banquet-body {
    padding: 20px;
  }
  .dhe-equipment-grid {
    grid-template-columns: 1fr;
  }
}

