/* Ruangan list page styles */
:root {
  --peminjaman-gold: #ffc400;
  --peminjaman-gold-dark: #ffb000;
  --peminjaman-navy: #162033;
  --peminjaman-text: #5f6c80;
  --peminjaman-border: #e8edf3;
  --peminjaman-icon-color: #24334d;
}

.container .text-primary,
.container i.text-primary {
  color: var(--peminjaman-icon-color) !important;
}

.gambar.awal {
  min-height: 40vh;
  display: grid;
  align-items: end;
  background:
    linear-gradient(rgba(54, 54, 54, 0.54), rgba(98, 98, 98, 0.54)),
    url("../../img/patri_yp2.webp") center/cover no-repeat;
  color: #ffffff;
  filter: drop-shadow(0 22px 44px rgba(0, 29, 74, 0.14));
}

.gambar.awal .hero-header {
  min-height: 30vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: 80px 7%;
  text-align: left;
}

.gambar.awal .hero-header h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--peminjaman-gold);
}

.gambar.awal .hero-header p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 600px;
  line-height: 1.6;
}

.Peminjaman-Ruangan-container {
  min-height: 75vh !important;
  margin: 50px auto !important;
  text-align: center !important;
  background-color: #ffffff !important;
}

.Peminjaman-Ruangan-container h1 {
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  margin-bottom: 10px !important;
  color: #000 !important;
  letter-spacing: 2px !important;
}

.Peminjaman-Ruangan-container > h2 {
  display: inline-block;
  padding-bottom: 0.25rem;
  border-bottom: 3px solid var(--peminjaman-gold) !important;
  padding-left: 1rem;
  padding-right: 1rem;
}

.subtitle {
  font-size: 1rem !important;
  color: #999 !important;
  font-style: italic !important;
  margin-bottom: 20px !important;
  font-weight: 300 !important;
}

.booking-agenda-shell {
  text-align: left;
  position: relative;
}

.booking-agenda-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.booking-agenda-title {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.35rem;
  letter-spacing: -0.03em;
  color: var(--peminjaman-navy);
}

.booking-agenda-subtitle {
  color: var(--peminjaman-text);
  max-width: 56ch;
  line-height: 1.6;
}

.agenda-shortcut {
  border-width: 2px;
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(20, 28, 44, 0.06);
}

.calendar-view-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.view-btn {
  border: 2px solid #e0e0e0;
  background: #fff;
  color: #333;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.view-btn:hover {
  border-color: var(--peminjaman-gold);
  background: #fffbf0;
}

.view-btn.active {
  background: var(--peminjaman-gold);
  border-color: var(--peminjaman-gold);
  color: #333;
  box-shadow: 0 4px 12px rgba(255, 196, 0, 0.3);
}

.booking-agenda-card {
  background: #fff;
  border: 1px solid var(--peminjaman-border);
  border-radius: 14px;
  padding: 1rem;
  overflow: hidden;
}

.agenda-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 1rem;
  padding: 0.2rem 0;
}

.agenda-calendar-header h3 {
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #1b2430;
}

.agenda-calendar-header button {
  width: 40px;
  height: 40px;
  border: 1px solid #e6ebf2;
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.agenda-calendar-header button:hover {
  background: #eef3f8;
  color: #334155;
  border-color: #dbe3ec;
}

.agenda-calendar-copy,
.calendar-header-copy {
  text-align: center;
}

.agenda-calendar-copy small,
.calendar-header-copy small {
  display: block;
  margin-top: 0.2rem;
  color: #94a3b8;
  font-size: 0.85rem;
}

.agenda-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.agenda-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 110px;
  overflow: hidden;
  border: 1px solid rgba(22, 32, 51, 0.08);
  border-top: none;
  border-radius: 0 0 18px 18px;
}

.agenda-day-header {
  background: #f8fafc;
  color: #94a3b8;
  padding: 0.75rem 0.5rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  border-right: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
  text-transform: uppercase;
}

.agenda-day-header:first-child {
  border-top-left-radius: 18px;
}

.agenda-day-header:last-child {
  border-top-right-radius: 18px;
  border-right: none;
}

.agenda-day {
  position: relative;
  height: 110px;
  border-right: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
  padding: 0.7rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  overflow: hidden;
  cursor: pointer;
}

.agenda-day:not(.muted):hover {
  box-shadow: inset 0 0 0 1px #2f80ed;
  background: #fcfdff;
}

.agenda-day.muted {
  background: #fbfcfe;
  color: #c4ceda;
}

.agenda-day.today {
  background: #f8fbff;
  box-shadow: inset 0 0 0 1px #2f80ed;
}

.agenda-day.weekend:not(.muted) {
  background: #fff;
}

.agenda-calendar-grid .agenda-day:nth-child(7n) {
  border-right: none;
}

.agenda-day-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.agenda-date {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  color: #111827;
}

.agenda-day.today .agenda-date {
  color: #2f80ed;
}

.agenda-events {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.agenda-event-chip {
  display: block;
  padding: 0.3rem 0.45rem;
  border-radius: 4px;
  text-decoration: none;
  background: #fff1f2;
  border: 1px solid #ffd7db;
  color: #b42318;
  width: 100%;
  cursor: default;
}

.agenda-event-chip:hover {
  background: #ffe4e8;
}

.agenda-event-chip.ruangan-color-1 {
  background: #fff1f2;
  border: 1px solid #ffd7db;
  color: #b42318;
}

.agenda-event-chip.ruangan-color-1:hover {
  background: #ffe4e8;
}
.agenda-event-chip.ruangan-color-2 {
  background: #dbeafe;
  border: 1px solid #93c5fd;
  color: #1e40af;
}
.agenda-event-chip.ruangan-color-2:hover {
  background: #bfdbfe;
}
.agenda-event-chip.ruangan-color-3 {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
}
.agenda-event-chip.ruangan-color-3:hover {
  background: #bbf7d0;
}
.agenda-event-chip.ruangan-color-4 {
  background: #ede9fe;
  border: 1px solid #ddd6fe;
  color: #6b21a8;
}
.agenda-event-chip.ruangan-color-4:hover {
  background: #ddd6fe;
}
.agenda-event-chip.ruangan-color-5 {
  background: #fed7aa;
  border: 1px solid #fdba74;
  color: #9a3412;
}
.agenda-event-chip.ruangan-color-5:hover {
  background: #fdba74;
}
.agenda-event-chip.ruangan-color-6 {
  background: #fbcfe8;
  border: 1px solid #f9a8d4;
  color: #be185d;
}
.agenda-event-chip.ruangan-color-6:hover {
  background: #f9a8d4;
}
.agenda-event-chip.ruangan-color-7 {
  background: #cffafe;
  border: 1px solid #a5f3fc;
  color: #0e7490;
}
.agenda-event-chip.ruangan-color-7:hover {
  background: #a5f3fc;
}
.agenda-event-chip.ruangan-color-8 {
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
}
.agenda-event-chip.ruangan-color-8:hover {
  background: #fde68a;
}

.agenda-room {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.agenda-time {
  display: block;
  font-size: 0.66rem;
  color: #b42318;
  margin-top: 0.1rem;
}

.agenda-more {
  font-size: 0.66rem;
  color: #64748b;
  font-weight: 600;
  margin-top: auto;
  cursor: default;
}

.agenda-day-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.45);
}

.agenda-day-modal {
  width: min(420px, 100%);
  max-height: min(72vh, 520px);
  overflow: hidden;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5eaf0;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.agenda-day-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid #eef2f7;
}

.agenda-day-modal-label {
  display: block;
  margin-bottom: 0.2rem;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.agenda-day-modal h3 {
  margin: 0;
  color: var(--peminjaman-navy);
  font-size: 1.1rem;
  font-weight: 800;
}

.agenda-day-modal-close {
  width: 34px;
  height: 34px;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
}

.agenda-day-modal-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 390px;
  overflow-y: auto;
  padding: 1rem;
}

.agenda-day-modal-event {
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  background: #fff3cd;
  border: 1px solid #ffe08a;
  color: #7a5200;
}

.agenda-day-modal-event strong,
.agenda-day-modal-event span {
  display: block;
}

.agenda-day-modal-event strong {
  font-size: 0.9rem;
  text-transform: uppercase;
}

.agenda-day-modal-event span {
  margin-top: 0.2rem;
  font-size: 0.85rem;
}

.agenda-day-modal-empty {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
}

.shadow-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.shadow-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.text-center {
  text-align: center !important;
  margin-bottom: 1.5rem !important;
}

.ruangan-card {
  border: none;
  border-radius: 1px;
  overflow: hidden;
}

.card-image-wrapper {
  position: relative;
  overflow: hidden;
}

.ruangan-card .card-img-top {
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ruangan-card:hover .card-img-top {
  transform: scale(1.05);
}

.card-img-top-placeholder {
  height: 220px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
}

.card-badge .badge {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.room-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background-color: #f8f9fa;
  flex-direction: column;
  border-radius: 8px;
}

.info-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff8e1 0%, #ffe7a1 100%);
  border-radius: 8px;
  color: #333;
  font-size: 1.2rem;
}

.info-text {
  flex: 1;
}

.facilities-box {
  background-color: #e8f5e9;
  padding: 1rem;
  border-radius: 8px;
}

.btn-booking {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-booking:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(255, 196, 0, 0.4);
}

@media (max-width: 991.98px) {
  .booking-agenda-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .agenda-calendar {
    min-width: 720px;
  }

  .agenda-calendar-grid,
  .agenda-weekdays {
    grid-template-columns: repeat(7, minmax(92px, 1fr));
  }
}

@media (max-width: 768px) {
  .booking-agenda-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .calendar-view-controls {
    width: 100%;
  }

  .view-btn,
  .agenda-shortcut {
    width: 100%;
    justify-content: center;
  }

  .room-info-grid {
    grid-template-columns: 1fr;
  }

  .agenda-calendar {
    min-width: 640px;
  }

  .agenda-calendar-grid,
  .agenda-weekdays {
    grid-template-columns: repeat(7, minmax(82px, 1fr));
  }

  .agenda-calendar-grid {
    grid-auto-rows: 96px;
  }

  .agenda-day {
    height: 96px;
    padding: 0.55rem;
  }

  .agenda-day-header {
    padding: 0.65rem 0.35rem;
    font-size: 0.68rem;
  }

  .agenda-date {
    font-size: 0.95rem;
  }

  .agenda-event-chip {
    padding: 0.25rem 0.35rem;
  }

  .agenda-room {
    font-size: 0.62rem;
  }

  .agenda-time,
  .agenda-more {
    font-size: 0.6rem;
  }
}
