/* ======================
   NAVBAR BASE
====================== */
:root {
  --nav-bg: #f8f8f8;
  --nav-primary: #930746;
  --nav-gold: #b48a47;
  --nav-text-soft: rgba(147, 7, 70, 0.68);
  --nav-border: rgba(147, 7, 70, 0.1);
  --hotel-ink: #2b2226;
  --hotel-muted: #6f6268;
  --hotel-surface: #ffffff;
  --hotel-soft: #f8f3f5;
  --hotel-line: rgba(147, 7, 70, 0.12);
}

body {
  background: var(--hotel-surface);
  color: var(--hotel-ink);
  font-family: "Public Sans", Arial, sans-serif;
}

/* ======================
   IMAGE LOADING SPINNER
====================== */
.image-load-host {
  position: relative;
}

.image-load-host:not(.image-loaded) > img.image-load-target {
  opacity: 0;
}

.image-loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 60;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border: 3px solid rgba(255, 255, 255, 0.58);
  border-top-color: var(--nav-gold);
  border-radius: 50%;
  background: rgba(43, 34, 38, 0.22);
  box-shadow: 0 8px 24px rgba(43, 34, 38, 0.18);
  pointer-events: none;
  animation: imageLoadingSpin 0.8s linear infinite;
}

@keyframes imageLoadingSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .image-loading-spinner {
    animation: none;
  }
}

.navbar-custom {
  background-color: rgba(248, 248, 248, 0.96);
  border-bottom: 1px solid var(--nav-border);
  padding: 14px 0;
  position: relative;
  z-index: 1000;
  animation: navbarReveal 0.7s ease both;
}

.navbar-brand,
.custom-toggler,
.navbar-nav .nav-item {
  animation: navMenuReveal 0.55s ease both;
}

.navbar-brand {
  animation-name: navLogoReveal;
  animation-delay: 0.18s;
}

.custom-toggler {
  animation-delay: 0.24s;
}

.navbar-nav .nav-item:nth-child(1) {
  animation-delay: 0.26s;
}

.navbar-nav .nav-item:nth-child(2) {
  animation-delay: 0.34s;
}

.navbar-nav .nav-item:nth-child(3) {
  animation-delay: 0.42s;
}

.navbar-nav .nav-item:nth-child(4) {
  animation-delay: 0.5s;
}

@keyframes navbarReveal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes navLogoReveal {
  from {
    opacity: 0;
    transform: translateX(-26px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes navMenuReveal {
  from {
    opacity: 0;
    transform: translateX(26px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ======================
   LOGO
====================== */
.navbar-logo {
  height: 38px;
  width: auto;
}

/* ======================
   BRAND TEXT
====================== */
.brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-left: 14px;
  line-height: 1.05;
}

.brand-top {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--nav-primary);
}

.brand-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: 12px;
  letter-spacing: 2.2px;
  color: var(--nav-primary);
  opacity: 0.72;
  white-space: nowrap;
}

.brand-bottom .line {
  width: 30px;
  height: 1px;
  background-color: var(--nav-primary);
  margin: 0 6px;
}

/* ======================
   BUTTON BOOK
====================== */
.btn-book {
  background-color: var(--nav-primary);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 4px;
  border: 1px solid var(--nav-primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}

.btn-book:hover {
  background-color: #7d063b;
  border-color: var(--nav-gold);
  color: #ffffff;
}

/* ======================
   TOGGLER
====================== */
.custom-toggler {
  border: 1px solid var(--nav-border);
  background-color: transparent;
  padding: 6px 9px;
  border-radius: 4px;
  box-shadow: none;
}

.custom-toggler:focus {
  box-shadow: 0 0 0 3px rgba(180, 138, 71, 0.18);
}

.navbar-toggler-icon {
  filter: none;
}

/* ======================
   NAV LINK (NEW SYSTEM)
====================== */
.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 4px;
  margin: 0 12px;
  font-size: 16px;
  color: var(--nav-text-soft) !important;
  border-radius: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 0;
}

.navbar-nav .nav-link:not(.nav-link-active) {
  font-weight: 500;
}

.nav-button-item {
  margin-left: 56px;
}

/* ANIMATED BACKGROUND */
.nav-link::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 2px;
  height: 1px;
  background: var(--nav-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s ease;
  z-index: -1;
}

/* HOVER EFFECT */
.nav-link:hover::before {
  transform: scaleX(1);
}

.nav-link:hover {
  color: var(--nav-primary) !important;
}

/* ACTIVE MENU */
.nav-link-active {
  background-color: transparent;
  color: var(--nav-primary) !important;
  font-weight: 700;
}

.nav-link-active::before {
  transform: scaleX(1);
}

.nav-link-active:hover {
  color: var(--nav-primary) !important;
  background-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .navbar-custom,
  .navbar-brand,
  .custom-toggler,
  .navbar-nav .nav-item {
    animation: none;
  }
}

/* ======================
   MOBILE VERSION
====================== */
@media (max-width: 991px) {
  .navbar-custom {
    padding: 10px 0;
  }

  .navbar-custom .container {
    align-items: center;
  }

  .navbar-brand {
    min-width: 0;
    margin-right: 8px;
  }

  .navbar-logo {
    height: 38px;
  }

  .brand-text {
    margin-left: 14px;
  }

  .brand-top {
    font-size: 15px;
    letter-spacing: 0.3px;
    white-space: nowrap;
  }

  .brand-bottom {
    font-size: 11px;
    letter-spacing: 2.2px;
  }

  .brand-bottom .line {
    width: 28px;
    height: 1px;
    margin: 0 6px;
  }

  .custom-toggler {
    flex: 0 0 auto;
    padding: 5px 9px;
  }

  .navbar-collapse {
    width: 100%;
    margin-top: 12px;
    padding: 12px 0 4px;
    background-color: var(--nav-bg);
    border-top: 1px solid var(--nav-border);
    box-shadow: none;
  }

  .navbar-nav {
    margin-top: 0;
    padding: 0;
    align-items: stretch;
    width: 100%;
    gap: 2px;
  }

  .nav-item {
    width: 100%;
  }

  .nav-button-item {
    margin-left: 0;
    margin-top: 12px;
  }

  .nav-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 4px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
  }

  .navbar-nav .nav-link:not(.nav-link-active) {
    color: var(--nav-text-soft) !important;
  }

  .nav-link-active {
    background-color: transparent;
    color: var(--nav-primary) !important;
  }

  .nav-link::before {
    left: 4px;
    right: auto;
    bottom: 7px;
    width: 28px;
    height: 1px;
    transform-origin: left;
  }

  .btn-book {
    display: block;
    width: 100%;
    margin: 10px 0 0;
    padding: 12px 16px;
    text-align: center;
    border-radius: 4px;
  }
}
/* ======================
   OFFCANVAS NAVBAR RIGHT
====================== */

/* ======================
   ROOM DETAIL PAGE
====================== */
.room-detail {
  background:
    linear-gradient(180deg, #fff 0%, var(--hotel-soft) 100%);
  padding: 34px 0 56px;
}

.room-detail .container {
  max-width: 1140px;
}

.room-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--hotel-muted);
  font-size: 14px;
}

.room-breadcrumb a {
  color: var(--nav-primary);
  font-weight: 600;
  text-decoration: none;
}

.room-breadcrumb a:hover {
  color: var(--nav-gold);
}

.room-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(340px, 5fr);
  gap: 34px;
  align-items: center;
}

.room-detail-media {
  position: relative;
  min-height: 440px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #20181c;
  box-shadow: 0 18px 52px rgba(43, 34, 38, 0.16);
}

.room-detail-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: inherit;
  pointer-events: none;
}

.room-detail-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
}

.room-detail-content {
  padding: 6px 0;
}

.room-eyebrow {
  margin: 0 0 10px;
  color: var(--nav-gold);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.room-detail-content h1 {
  margin: 0;
  color: var(--nav-primary);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.08;
}

.room-lead {
  max-width: 540px;
  margin: 16px 0 0;
  color: var(--hotel-muted);
  font-size: 16px;
  line-height: 1.65;
}

.room-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.room-highlights div {
  display: flex;
  min-height: 78px;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 14px 12px;
  border: 1px solid var(--hotel-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.room-highlights i {
  color: var(--nav-gold);
  font-size: 21px;
}

.room-highlights span {
  color: var(--hotel-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.room-facilities {
  padding-top: 4px;
}

.room-facilities h2 {
  margin: 0 0 14px;
  color: var(--hotel-ink);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 21px;
  font-weight: 700;
}

.room-facilities ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.room-facilities li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--hotel-muted);
  font-size: 14px;
  line-height: 1.5;
}

.room-facilities i {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--nav-primary);
}

.room-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 28px;
}

.room-book-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--nav-primary);
  border-radius: 4px;
  background: var(--nav-primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.room-book-btn:hover {
  border-color: var(--nav-gold);
  background: #7d063b;
  color: #fff;
  transform: translateY(-1px);
}

.share-section {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--hotel-muted);
  font-weight: 700;
}

.share-icons {
  display: flex;
  gap: 8px;
}

.share-icons a {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hotel-line);
  border-radius: 50%;
  background: #fff;
  color: var(--nav-primary);
  text-decoration: none;
  transition:
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.share-icons a:hover {
  border-color: var(--nav-gold);
  color: var(--nav-gold);
  transform: translateY(-1px);
}

@media (max-width: 991px) {
  .room-detail {
    padding: 28px 0 50px;
  }

  .room-detail-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .room-detail-media {
    min-height: 380px;
  }
}

@media (max-width: 575px) {
  .room-detail {
    padding: 14px 0 30px;
  }

  .room-breadcrumb {
    display: none;
  }

  .room-detail-media {
    aspect-ratio: 16 / 9;
    max-height: 220px;
    min-height: 0;
    border-radius: 6px;
  }

  .room-detail-media img {
    min-height: 0;
  }

  .room-lead {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.55;
  }

  .room-detail-content h1 {
    font-size: 30px;
  }

  .room-eyebrow {
    margin-bottom: 8px;
    font-size: 11px;
    letter-spacing: 1.2px;
  }

  .room-highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 18px 0;
  }

  .room-highlights div {
    min-height: 64px;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    text-align: center;
  }

  .room-highlights i {
    font-size: 18px;
  }

  .room-highlights span {
    font-size: 12px;
  }

  .room-facilities h2 {
    margin-bottom: 10px;
    font-size: 19px;
  }

  .room-facilities ul {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .room-facilities li {
    gap: 8px;
    font-size: 13px;
    line-height: 1.42;
  }

  .room-actions {
    gap: 12px;
    margin-top: 22px;
  }

  .room-book-btn,
  .share-section {
    width: 100%;
  }

  .room-book-btn {
    min-height: 42px;
    padding: 9px 14px;
    font-size: 14px;
  }

  .share-section {
    justify-content: space-between;
    font-size: 13px;
  }

  .share-icons a {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 380px) {
  .room-highlights {
    grid-template-columns: 1fr;
  }

  .room-highlights div {
    min-height: 46px;
    flex-direction: row;
    justify-content: flex-start;
    padding: 9px 12px;
    text-align: left;
  }
}

/* ======================
   OFFER DETAIL PAGE
====================== */
.offer-detail {
  background:
    linear-gradient(180deg, #ffffff 0%, var(--hotel-soft) 100%);
  padding: 34px 0 58px;
}

.offer-detail .container {
  max-width: 1140px;
}

.offer-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--hotel-muted);
  font-size: 14px;
}

.offer-breadcrumb a {
  color: var(--nav-primary);
  font-weight: 700;
  text-decoration: none;
}

.offer-breadcrumb a:hover {
  color: var(--nav-gold);
}

.offer-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(340px, 4fr);
  gap: 34px;
  align-items: start;
}

.offer-detail-media {
  position: relative;
  aspect-ratio: 9 / 16;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #21191d;
  box-shadow: 0 18px 52px rgba(43, 34, 38, 0.16);
}

.offer-detail-media::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 6px;
  pointer-events: none;
}

.offer-detail-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.offer-detail-content {
  position: sticky;
  top: 24px;
  padding: 4px 0;
}

.offer-detail-content h1 {
  margin: 0;
  color: var(--nav-primary);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.08;
}

.offer-lead {
  margin: 16px 0 0;
  color: var(--hotel-muted);
  font-size: 16px;
  line-height: 1.65;
}

.offer-detail-price {
  display: inline-flex;
  margin-top: 22px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--nav-primary);
  color: #ffffff;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.offer-detail-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.offer-detail-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--hotel-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--hotel-muted);
  line-height: 1.5;
}

.offer-detail-list i {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--nav-gold);
}

.offer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.offer-action-btn,
.offer-back-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.offer-action-btn {
  border: 1px solid var(--nav-primary);
  background: var(--nav-primary);
  color: #ffffff;
}

.offer-action-btn:hover {
  border-color: var(--nav-gold);
  background: #7d063b;
  color: #ffffff;
  transform: translateY(-1px);
}

.offer-back-btn {
  border: 1px solid var(--hotel-line);
  background: #ffffff;
  color: var(--nav-primary);
}

.offer-back-btn:hover {
  border-color: var(--nav-gold);
  color: var(--nav-gold);
  transform: translateY(-1px);
}

@media (max-width: 991px) {
  .offer-detail-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .offer-detail-content {
    position: static;
  }
}

@media (max-width: 575px) {
  .offer-detail {
    padding: 14px 0 34px;
  }

  .offer-breadcrumb {
    display: none;
  }

  .offer-detail-content h1 {
    font-size: 30px;
  }

  .offer-lead {
    font-size: 15px;
    line-height: 1.55;
  }

  .offer-detail-price {
    font-size: 19px;
  }

  .offer-actions,
  .offer-action-btn,
  .offer-back-btn {
    width: 100%;
  }
}
