/* ======== global ======== */
body {
  background-color: #1a1a1a;
  color: #e0e0e0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ======== jumbotron ======== */
header.jumbotron {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 220px;

  /* align to center */
  display: flex;
  align-items: center;
  justify-content: center;

  /* makes background black */
  background-color: #000000 !important;
  color: #ccc;
  font-weight: 900;
  border-bottom: 1px solid #333;
}

/* main text */
header.jumbotron h1 {
  color: #ff4444;
  /* blood red title */
  text-transform: uppercase;
  text-shadow: 2px 2px 4px #000;
  /* shadow */
}

/* subtitle text */
header.jumbotron p {
  color: #aaa;
}

/* ======== links ======== */
a {
  color: #ff4444;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #cc0000;
  /* darker red on hover */
  background-color: transparent;
  text-decoration: underline;
}

.icon {
  background-image: url('../images/house.png');
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-size: contain;
  display: inline-block;
}

/* ======== general HTML elements ======== */
section h2 {
  text-decoration: none;
  border-bottom: 1px solid #ff4444;
  display: inline-block;
  padding-bottom: 5px;
  color: #fff;
}

figure {
  display: inline-block;
  position: relative;
}

figure img {
  border: 1px solid #333;
}

figure figcaption {
  color: #888;
  font-style: italic;
  text-align: center;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px;
}

footer {
  border-top: 1px solid #333;
  text-align: center;
  font-style: italic;
  font-size: 0.8rem;
  color: #666;
  padding-top: 1rem;
}

/* ======== navbar ======== */
.navbar {
  background-color: #000000 !important;
  border-bottom: 1px solid #222;
}

.navbar-nav .nav-link,
.navbar-brand {
  color: #e0e0e0 !important;
  font-weight: 500;
}

.navbar-nav .nav-link:hover {
  color: #ff4444 !important;
}

.navbar-toggler {
  border-color: #ff4444 !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23FF4444' stroke-width='3' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar .btn-primary,
a.btn-primary {
  background-color: #ff4444;
  border-color: #ff4444;
  color: #fff;
  font-weight: bold;
}

.navbar .btn-primary:hover,
a.btn-primary:hover {
  background-color: #cc0000;
  border-color: #cc0000;
  color: #fff;
}

.navbar .navbar-brand img {
  filter: brightness(0) invert(1);
}

.navbar-nav .nav-link.active {
  background-color: #ff4444 !important;
  color: #fff !important;
  border-radius: 4px;
  font-weight: bold;
  padding: 6px 10px;
}

/* ======== filters & search ======== */
.search-bar {
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}

.filter-box {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 25px 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  margin-top: 40px;
  color: #e0e0e0;
  backdrop-filter: blur(5px);
}

.filter-box h4,
.filter-box h6 {
  color: #ff4444;
}

/* ======== room cards ======== */
.room-card {
  background-color: #0a0a0a;
  border: 1px solid #222;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);

  transition: all 0.3s cubic-bezier(.2, .9, .3, 1);
  will-change: transform;
  cursor: pointer;
  text-decoration: none;
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
  height: 650px;
  margin-bottom: 30px;
}

.room-card .card {
  background-color: transparent !important;
  border: none !important;
  border-radius: inherit;
  height: 100%;
}

.room-card .card-body {
  background-color: #0a0a0a;
  color: #ccc;
  flex-grow: 1;
}

.room-card .card-title {
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
}

.room-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 0 20px rgba(255, 68, 68, 0.15);
  border-color: #ff4444;
  text-decoration: none;
  color: inherit;
  z-index: 10;
}

.room-card .card-img-top {
  transition: transform 0.4s cubic-bezier(.2, .9, .3, 1);
  transform-origin: center center;

  width: 100%;
  height: 400px;
  object-fit: contain;
  /* show whole poster */
  background-color: #000;
  object-position: center;
  border-bottom: 1px solid #333;
  flex-shrink: 0;
}

.room-card:hover .card-img-top {
  opacity: 0.9;
}

/* ======== utilities ======== */
.badge {
  font-size: 0.8rem;
  border-radius: 2px;
}

.badge.bg-light {
  background-color: #333 !important;
  color: #e0e0e0 !important;
  border: 1px solid #555;
}

.text-center.my-4 p {
  color: #aaa !important;
}

.logo {
  height: 40px;
  width: auto;
}

/* ======== promotional banners ======== */
.promo-banner {
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  background-color: #111;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.promo-banner-content {
  padding: 24px;
  color: #f2f2f2;
}

.promo-banner-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffc107;
  border: 1px solid #ffc107;
  border-radius: 999px;
  padding: 4px 10px;
}


/* ======== responsive breakpoints ======== */
/* tablet */
@media (min-width: 768px) and (max-width: 991px) {
  .room-card {
    flex: 0 0 46% !important;
    max-width: 46% !important;
    margin-left: 2%;
    margin-right: 2%;
    margin-bottom: 30px;
  }

  .room-card .card-img-top {
    height: 350px;
  }
}

/* desktop */
@media (min-width: 992px) {
  .room-card {
    flex: 0 0 30% !important;
    max-width: 30% !important;
    margin-left: 1.6%;
    margin-right: 1.6%;
  }
}

/* mobile */
@media (max-width: 768px) {
  .logo {
    height: 30px;
  }

  .promo-banner-content {
    padding: 18px;
  }

  .room-card {
    width: 100%;
    margin-bottom: 30px;
    height: auto;
  }

  .room-card .card-img-top {
    height: 250px;
  }
}