:root {
    --gold: #c9961a;
    --gold-dark: #8c6610;
    --gold-soft: #fff7df;
    --teal: #0f766e;
    --blue: #1d4ed8;
    --ink: #1f2933;
    --muted: #687385;
    --line: #e7dfcf;
    --surface: #ffffff;
    --surface-soft: #fffaf0;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 46%, #fffaf0 100%);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: var(--gold-dark);
}

.site-navbar {
    box-shadow: 0 10px 30px rgba(46, 36, 15, 0.06);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--ink);
}

.brand-emblem {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--gold);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0;
}

.navbar .nav-link {
    color: #2f3540;
    font-weight: 500;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--gold-dark);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 10px;
}

.logout-form {
  margin: 0;
}

.nav-user-name {
  max-width: 180px;
  overflow: hidden;
  color: var(--ink);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 6px 10px;
  font-weight: 800;
}

.nav-user-trigger:hover,
.nav-user-trigger:focus {
  border-color: var(--gold);
}

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  flex: 0 0 auto;
}

.user-dropdown {
  min-width: 220px;
  border-color: var(--line);
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 16px 38px rgba(31, 41, 51, 0.14);
}

.user-dropdown .dropdown-item {
  border-radius: 6px;
  padding: 9px 10px;
  font-weight: 700;
}

.logout-item {
  color: #b42318;
}

.history-link {
    white-space: nowrap;
}

.admin-links {
    border-left: 1px solid var(--line);
    padding-left: 10px;
}

.btn {
    border-radius: 8px;
    font-weight: 700;
}

.btn-gold {
    background: var(--gold);
    border-color: var(--gold);
    color: #ffffff;
}

.btn-gold:hover,
.btn-gold:focus {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: #ffffff;
}

.btn-outline-gold {
    border-color: var(--gold);
    color: var(--gold-dark);
    background: #ffffff;
}

.btn-outline-gold:hover,
.btn-outline-gold:focus {
    background: var(--gold-soft);
    border-color: var(--gold-dark);
    color: var(--gold-dark);
}

.hero-section,
.needs-section,
.listing-section,
.detail-hero,
.gallery-section,
.rooms-section,
.contact-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    align-items: center;
    gap: 36px;
    min-height: calc(100vh - 180px);
    padding: 54px 0 36px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--gold-dark);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.detail-hero h1 {
    margin: 0;
    max-width: 720px;
    font-size: clamp(2.1rem, 4.2vw, 3.6rem);
    line-height: 1.15;
    font-weight: 800;
}

.hero-subtitle,
.detail-description {
    max-width: 620px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-panel {
    min-height: 420px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(66, 42, 8, 0.28)), linear-gradient(135deg, #f3bc35 0%, #f6d97a 42%, #ffffff 43%, #ffffff 48%, #d79f24 49%, #a8750e 100%);
    box-shadow: 0 28px 70px rgba(83, 59, 14, 0.22);
    overflow: hidden;
    position: relative;
}

.hero-panel::before,
.hero-panel::after {
    content: "";
    position: absolute;
    left: 14%;
    right: 14%;
    height: 46px;
    background: rgba(255, 255, 255, 0.86);
    border: 2px solid rgba(123, 87, 17, 0.22);
    border-radius: 6px;
}

.hero-panel::before {
    top: 22%;
    box-shadow: 0 86px 0 rgba(255, 255, 255, 0.86), 0 172px 0 rgba(255, 255, 255, 0.86);
}

.hero-panel::after {
    bottom: 22px;
    height: 74px;
    background: rgba(31, 41, 51, 0.9);
    border-color: rgba(31, 41, 51, 0.1);
}

.hero-panel-inner {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #7d0c13;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-panel-inner strong {
    color: #ffffff;
    background: #7d0c13;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.82rem;
}

.hero-photo {
    width: 100%;
    max-width: 580px;
    justify-self: end;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(83, 59, 14, 0.22);
    background: #fff7df;
}

.hero-photo img {
    width: 100%;
    height: 550px;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.7rem, 4vw, 2.55rem);
    font-weight: 800;
}

.need-grid,
.property-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.need-card,
.property-card,
.room-card,
.empty-state,
.booking-box,
.gallery-placeholder {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 48px rgba(82, 60, 18, 0.08);
}

.need-card {
    display: block;
    min-height: 178px;
    padding: 22px;
    text-decoration: none;
    color: var(--ink);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.need-card:hover,
.need-card.active {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 22px 56px rgba(150, 106, 24, 0.16);
}

.need-card span,
.property-meta,
.price-label {
    color: var(--gold-dark);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.need-card h3 {
    margin: 14px 0 8px;
    font-size: 1.2rem;
    font-weight: 800;
}

.need-card p,
.property-description,
.property-address,
.room-content p {
    color: var(--muted);
    line-height: 1.65;
}

.listing-section,
.rooms-section,
.contact-section {
  padding: 56px 0 80px;
}

.listing-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
}

.clear-filter {
    font-weight: 800;
    text-decoration: none;
}

.property-card {
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(82, 60, 18, 0.14);
}

.property-media {
    position: relative;
    display: block;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}

.property-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 32, 0) 45%, rgba(15, 23, 32, 0.44) 100%);
    pointer-events: none;
}

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

.property-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    padding: 7px 11px;
    font-size: 0.78rem;
    font-weight: 900;
    box-shadow: 0 8px 22px rgba(15, 23, 32, 0.12);
}

.property-image,
.room-image {
    width: 100%;
    object-fit: cover;
    background: var(--gold-soft);
}

.property-image {
    height: 230px;
    display: block;
    transition: transform 260ms ease;
}

.image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-dark);
    font-weight: 800;
    background: linear-gradient(135deg, rgba(201, 150, 26, 0.18), rgba(255, 255, 255, 0.86)), var(--gold-soft);
}

.property-body {
    padding: 18px;
}

.property-body h3 a {
    color: var(--ink);
    text-decoration: none;
}

.property-body h3 a:hover,
.property-body h3 a:focus {
    color: var(--gold-dark);
}

.property-address,
.property-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

.property-address {
    -webkit-line-clamp: 2;
}

.property-description {
    min-height: 3.2em;
    -webkit-line-clamp: 2;
}

.property-meta,
.property-footer,
.room-footer,
.room-title-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.property-body h3,
.room-content h3 {
    margin: 10px 0 8px;
    font-size: 1.25rem;
    font-weight: 800;
}

.property-footer {
    margin-top: 18px;
}

.property-footer strong,
.room-footer strong {
    display: block;
    color: var(--ink);
    font-size: 1.15rem;
}

.property-footer small,
.room-price small {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.empty-state {
    padding: 36px;
    text-align: center;
}

.empty-state h3 {
    font-weight: 800;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(380px, 0.95fr) minmax(0, 1.05fr);
    gap: 38px;
    padding: 46px 0 28px;
    align-items: center;
}

.detail-hero-media {
    min-height: 500px;
    border-radius: 8px;
    overflow: hidden;
    background: #e9edef;
    box-shadow: 0 24px 60px rgba(15, 23, 32, 0.16);
}

.detail-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
}

.detail-hero-placeholder {
    display: grid;
    place-items: center;
    min-height: 500px;
    color: var(--muted);
    padding: 24px;
    text-align: center;
}

.detail-hero h1 {
    max-width: 820px;
    font-size: clamp(2.25rem, 4.4vw, 4.05rem);
}

.detail-hero h1 span {
    color: var(--gold-dark);
}

.back-link {
    display: inline-block;
    margin-bottom: 18px;
    font-weight: 800;
    text-decoration: none;
}

.detail-address {
    margin: 14px 0 0;
    color: var(--teal);
    font-weight: 700;
}

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

.detail-quick-facts span {
    display: grid;
    gap: 3px;
    min-height: 74px;
    border: 1px solid #dce7e4;
    border-radius: 8px;
    background: #f8fbfa;
    color: var(--muted);
    padding: 12px;
    font-size: 0.84rem;
    font-weight: 800;
}

.detail-quick-facts strong {
    color: var(--ink);
    font-size: 1.15rem;
}

.booking-box {
    padding: 22px;
}

.booking-box span {
    display: block;
    color: var(--muted);
}

.booking-box strong {
    display: block;
    margin: 6px 0 18px;
    font-size: 1.4rem;
}

.compact-heading {
    margin-bottom: 14px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-auto-rows: 180px;
    gap: 12px;
}

.gallery-grid a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #e9edef;
}

.gallery-grid a::after {
    content: "Xem ảnh";
    position: absolute;
    right: 10px;
    bottom: 10px;
    border-radius: 999px;
    background: rgba(15, 23, 32, 0.72);
    color: #ffffff;
    padding: 5px 9px;
    font-size: 0.75rem;
    font-weight: 800;
    opacity: 0;
    transition: opacity 180ms ease;
}

.gallery-grid a:hover::after,
.gallery-grid a:focus::after {
    opacity: 1;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.gallery-grid a:hover img,
.gallery-grid a:focus img {
    transform: scale(1.035);
}

.gallery-grid a:first-child {
    grid-row: span 2;
}

.gallery-placeholder {
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--gold-dark);
    font-weight: 800;
    background: var(--gold-soft);
}

.room-list {
    display: grid;
    gap: 18px;
}

.room-card {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    overflow: hidden;
}

.room-media {
    min-height: 100%;
    background: #edf2f4;
}

.room-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 360px;
    overflow: hidden;
    background: #edf2f4;
}

.room-slider-track,
.room-slide {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
}

.room-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}

.room-slide.active {
    opacity: 1;
    pointer-events: auto;
}

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

.room-slider-button {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 999px;
    background: rgba(15, 23, 32, 0.62);
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    transform: translateY(-50%);
}

.room-slider-button:hover,
.room-slider-button:focus {
    background: rgba(15, 23, 32, 0.82);
}

.room-slider-button.prev {
    left: 12px;
}

.room-slider-button.next {
    right: 12px;
}

.room-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 14px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    max-width: calc(100% - 92px);
    transform: translateX(-50%);
}

.room-slider-dots button {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    padding: 0;
}

.room-slider-dots button.active {
    width: 22px;
    background: #ffffff;
}

.room-slider-count {
    position: absolute;
    right: 12px;
    bottom: 10px;
    z-index: 2;
    border-radius: 999px;
    background: rgba(15, 23, 32, 0.66);
    color: #ffffff;
    padding: 5px 9px;
    font-size: 0.75rem;
    font-weight: 800;
}

.room-image {
    height: 100%;
    min-height: 260px;
}

.room-thumbs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    border-top: 6px solid #ffffff;
    padding: 6px;
    background: #ffffff;
    max-height: 220px;
    overflow-y: auto;
}

.room-thumbs a {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    background: #edf2f4;
}

.room-thumbs img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 180ms ease;
}

.room-thumbs a:hover img,
.room-thumbs a:focus img {
    transform: scale(1.05);
}

.room-content {
    display: grid;
    align-content: start;
    padding: 24px;
}

.status-badge {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 7px 12px;
    color: #ffffff;
    background: #73808f;
    font-size: 0.82rem;
    font-weight: 800;
}

.room-kicker {
    display: inline-block;
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.status-1 {
    background: #2f9e44;
}

.status-2 {
    background: #c9961a;
}

.status-3 {
    background: #c2410c;
}

.room-facts,
.amenity-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.room-facts span,
.amenity-list span {
    border-radius: 999px;
    padding: 7px 11px;
    background: #f8fbfa;
    border: 1px solid #dce7e4;
    color: #4d5663;
    font-size: 0.9rem;
    font-weight: 700;
}

.room-footer {
  align-self: end;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.room-price span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 22px;
  align-items: stretch;
}

.contact-card,
.map-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(82, 60, 18, 0.08);
  overflow: hidden;
}

.contact-card {
  padding: 28px;
}

.contact-card h3 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  font-weight: 800;
}

.contact-card p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.65;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.contact-list div {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.contact-list dt {
  color: var(--gold-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 700;
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}

.site-footer {
  margin-top: 48px;
  padding: 44px 0 28px;
  background: #f7f7f7;
  border-top: 1px solid #e6e6e6;
  color: #0f1720;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.footer-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e1e1e1;
}

.footer-contact-info h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 800;
}

.footer-contact-info p {
  margin: 0 0 18px;
  color: #4b5563;
  line-height: 1.65;
}

.footer-contact-info dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.footer-contact-info dl div {
  border-top: 1px solid #e1e1e1;
  padding-top: 12px;
}

.footer-contact-info dt {
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-contact-info dd {
  margin: 4px 0 0;
  color: #0f1720;
  font-weight: 700;
}

.footer-contact-info dd a {
  color: var(--gold-dark);
  font-weight: 800;
}

.footer-map {
  overflow: hidden;
  min-height: 320px;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  background: #ffffff;
}

.footer-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 34px;
}

.footer-columns h3 {
  margin: 0 0 18px;
  color: #0f1720;
  font-size: 1.02rem;
  font-weight: 800;
}

.footer-columns a {
  display: block;
  margin: 0 0 13px;
  color: #0f1720;
  line-height: 1.45;
  text-decoration: none;
}

.footer-columns a:hover,
.footer-columns a:focus {
  color: var(--gold-dark);
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  color: #4b5563;
  text-align: center;
}

.footer-bottom p {
  margin: 0 0 6px;
  line-height: 1.55;
}

.account-section {
  width: min(100% - 32px, 540px);
  margin: 56px auto 80px;
}

.account-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(82, 60, 18, 0.08);
  padding: 30px;
}

.account-card h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.9rem, 4vw, 2.55rem);
  font-weight: 800;
}

.account-subtitle {
  margin: 10px 0 22px;
  color: var(--muted);
  line-height: 1.65;
}

.account-form .form-control {
  min-height: 46px;
  border-color: var(--line);
  border-radius: 8px;
}

.account-form .form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(201, 150, 26, 0.18);
}

.account-switch {
  margin: 18px 0 0;
  text-align: center;
}

.account-switch a {
  font-weight: 800;
}

.support-bell {
  position: relative;
}

.support-bell-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
}

.support-bell-button:hover,
.support-bell-button:focus {
  color: var(--ink);
  border-color: var(--gold);
}

.support-bell-button svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.support-bell-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  padding: 0 4px;
}

.support-notification-panel {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 1060;
  width: min(340px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
  overflow: hidden;
}

.support-bell:hover .support-notification-panel,
.support-bell:focus-within .support-notification-panel,
.support-bell.is-open .support-notification-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.support-notification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
}

.support-notification-head a {
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.support-notification-empty {
  margin: 0;
  color: var(--muted);
  padding: 14px;
}

.support-notification-list {
  display: grid;
}

.support-notification-list article {
  display: grid;
  gap: 5px;
  border-bottom: 1px solid #edf0f2;
  padding: 12px 14px;
}

.support-notification-list article:last-child {
  border-bottom: 0;
}

.support-notification-list small {
  color: var(--muted);
  font-size: 0.76rem;
}

.support-notification-list p,
.support-notification-list span {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.support-notification-list p {
  color: var(--ink);
  font-weight: 800;
  -webkit-line-clamp: 2;
}

.support-notification-list span {
  color: var(--muted);
  font-size: 0.84rem;
  -webkit-line-clamp: 1;
}

.otp-input {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
}

.resend-form {
  margin-top: 12px;
}

.profile-section,
.booking-section {
  width: min(100% - 32px, 620px);
}

.profile-secondary-action {
  margin-top: 12px;
}

.booking-date-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.payment-method-grid {
  display: grid;
  gap: 10px;
}

.payment-method-option {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
}

.payment-method-option input {
  margin-top: 4px;
}

.payment-method-option strong,
.payment-method-option small {
  display: block;
}

.payment-method-option small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.45;
}

.booking-result-section {
  width: min(100% - 32px, 720px);
}

.booking-result-card {
  display: grid;
  gap: 18px;
}

.payment-qr-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fffdf8;
}

.payment-qr-image {
  width: min(100%, 320px);
  aspect-ratio: 1;
  object-fit: contain;
}

.payment-qr-note {
  display: grid;
  gap: 4px;
  text-align: center;
  color: var(--ink);
}

.payment-qr-note strong {
  font-size: 1.2rem;
}

.payment-waiting-status {
  border-radius: 999px;
  background: rgba(201, 150, 26, 0.12);
  color: #7a4b00;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 8px 14px;
}

.payment-config-warning {
  width: 100%;
  border: 1px solid #f0c36a;
  border-radius: 8px;
  background: #fff8e5;
  color: #7a4b00;
  padding: 12px;
  line-height: 1.5;
}

.payment-confirm-form {
  display: grid;
  gap: 8px;
}

.booking-summary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 0;
}

.booking-summary-list div {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.booking-summary-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.booking-summary-list dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.support-chat-page {
  width: min(100% - 32px, 820px);
  margin: 48px auto 86px;
}

.support-chat-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(82, 60, 18, 0.08);
  overflow: hidden;
}

.support-chat-heading {
  border-bottom: 1px solid var(--line);
  padding: 24px;
}

.support-chat-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
}

.support-chat-heading p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
}

.support-chat-thread {
  display: grid;
  gap: 14px;
  max-height: 560px;
  overflow-y: auto;
  padding: 22px;
  background: #f8fafb;
}

.support-message {
  width: min(86%, 560px);
  border-radius: 8px;
  padding: 13px 15px;
}

.support-message div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.support-message small {
  color: inherit;
  opacity: 0.72;
}

.support-message p {
  margin: 0;
  line-height: 1.55;
}

.customer-message {
  justify-self: end;
  background: var(--gold);
  color: #ffffff;
}

.admin-message {
  justify-self: start;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.pending-message {
  justify-self: start;
  background: #fff8e5;
  color: #7a4b00;
}

.support-chat-empty {
  color: var(--muted);
  text-align: center;
  padding: 28px 0;
}

.support-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 16px;
}

.support-chat-form textarea {
  min-height: 54px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.history-section {
  width: min(100% - 32px, 980px);
  margin: 48px auto 80px;
}

.booking-history-list {
  display: grid;
  gap: 14px;
}

.booking-history-item {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr);
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 20px;
}

.booking-history-item h2 {
  margin: 10px 0 4px;
  font-size: 1.15rem;
}

.booking-history-item p {
  margin: 0;
  color: var(--muted);
}

.booking-history-item dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 0;
}

.booking-history-item dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.booking-history-item dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.reveal {
  animation: revealUp 420ms ease both;
}

.zalo-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1040;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  background: #0068ff;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(0, 104, 255, 0.32);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  animation: zaloPulse 2.4s ease-in-out infinite;
}

.zalo-float,
.zalo-float:visited,
.zalo-float:hover,
.zalo-float:focus,
.zalo-float:active {
  color: #ffffff !important;
}

.zalo-float::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 2px solid rgba(0, 104, 255, 0.22);
  border-radius: inherit;
  animation: zaloRipple 2.4s ease-out infinite;
}

.zalo-float:hover,
.zalo-float:focus {
  background: #0055d6;
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(0, 104, 255, 0.42);
}

.zalo-float span {
  position: relative;
  z-index: 1;
  color: #ffffff !important;
}

.phone-float {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 1040;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  background: #22c55e;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(34, 197, 94, 0.3);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.phone-float svg {
  width: 30px;
  height: 30px;
  fill: #ffffff;
}

.phone-float::after {
  content: "Liên hệ: 0949883448 hoặc 02913979888";
  position: absolute;
  right: 76px;
  bottom: 50%;
  width: 260px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: 0 16px 38px rgba(31, 41, 51, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(50%) translateX(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.phone-float::before {
  content: "";
  position: absolute;
  right: 66px;
  bottom: 50%;
  width: 16px;
  height: 16px;
  background: #ffffff;
  box-shadow: 6px -6px 18px rgba(31, 41, 51, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(50%) rotate(45deg);
  transition: opacity 180ms ease;
}

.phone-float:hover,
.phone-float:focus {
  background: #16a34a;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(34, 197, 94, 0.4);
}

.phone-float:hover::after,
.phone-float:focus::after,
.phone-float:hover::before,
.phone-float:focus::before {
  opacity: 1;
}

.phone-float:hover::after,
.phone-float:focus::after {
  transform: translateY(50%) translateX(0);
}

.quick-chat {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 1045;
}

.quick-chat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.2);
  font-weight: 800;
  padding: 10px 16px 10px 10px;
}

.quick-chat-toggle span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--gold);
  color: #ffffff;
  font-size: 1.1rem;
}

.quick-chat-panel {
  position: absolute;
  left: 0;
  bottom: 58px;
  width: min(340px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.2);
  overflow: hidden;
}

.quick-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: var(--ink);
  color: #ffffff;
  padding: 14px 16px;
}

.quick-chat-head strong,
.quick-chat-head span {
  display: block;
}

.quick-chat-head span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  margin-top: 2px;
}

.quick-chat-close {
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1;
  padding: 0;
}

.quick-chat-form,
.quick-chat-login {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.quick-chat-form label {
  color: var(--ink);
  font-weight: 800;
}

.quick-chat-form textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.quick-chat-form textarea:focus {
  border-color: var(--gold);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(201, 150, 26, 0.18);
}

.quick-chat-login p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

@keyframes zaloPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }
}

@keyframes zaloRipple {
  0% {
    opacity: 0.72;
    transform: scale(0.95);
  }

  70% {
    opacity: 0;
    transform: scale(1.28);
  }

  100% {
    opacity: 0;
    transform: scale(1.28);
  }
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .navbar-actions,
    .admin-links {
        align-items: stretch;
        border-left: 0;
        margin: 10px 0 0;
        padding-left: 0;
    }
    .navbar-actions {
        flex-direction: column;
    }
  .hero-section,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-hero-media,
  .detail-hero-media img,
  .detail-hero-placeholder {
    min-height: 360px;
  }

  .detail-quick-facts {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-contact {
    grid-template-columns: 1fr;
  }
    .hero-section {
        min-height: auto;
    }
    .hero-panel {
        min-height: 330px;
    }
    .hero-photo {
        justify-self: stretch;
        max-width: none;
    }
    .hero-photo img {
        height: 420px;
    }
    .need-grid,
    .property-grid {
        grid-template-columns: 1fr 1fr;
    }
    .room-card {
        grid-template-columns: 1fr;
    }

    .room-media {
        grid-template-rows: auto auto;
    }
}

@media (max-width: 640px) {
  .hero-section,
  .needs-section,
  .listing-section,
  .detail-hero,
  .gallery-section,
  .rooms-section,
  .contact-section {
    width: min(100% - 20px, 1180px);
  }
    .need-grid,
    .property-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-auto-rows: 210px;
    }
    .gallery-grid a:first-child {
        grid-row: span 1;
    }
    .listing-heading,
    .property-footer,
    .room-footer,
    .room-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

  .hero-section {
    gap: 22px;
    padding-top: 28px;
  }

  .hero-copy h1,
  .detail-hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle,
  .detail-description {
    font-size: 1rem;
  }

  .hero-actions,
  .hero-actions .btn,
  .property-footer .btn,
  .room-footer .btn {
    width: 100%;
  }

  .hero-actions .btn,
  .property-footer .btn,
  .room-footer .btn {
    justify-content: center;
  }

  .property-image {
    height: 220px;
  }

  .property-description {
    min-height: 0;
  }

  .detail-hero {
    gap: 20px;
    padding-top: 28px;
  }

  .detail-quick-facts {
    grid-template-columns: 1fr;
  }

  .detail-quick-facts span {
    min-height: 0;
  }

  .gallery-section {
    padding-top: 10px;
  }

  .room-content {
    padding: 18px;
  }

  .room-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: none;
  }

  .room-footer {
    align-items: stretch;
  }

  .status-badge {
    align-self: flex-start;
  }
  .hero-panel {
    min-height: 280px;
  }

  .footer-inner {
    width: min(100% - 20px, 1180px);
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-contact {
    margin-bottom: 30px;
    padding-bottom: 28px;
  }

  .zalo-float {
    right: 14px;
    bottom: 14px;
    width: 56px;
    height: 56px;
    font-size: 0.86rem;
  }

  .phone-float {
    right: 14px;
    bottom: 84px;
    width: 56px;
    height: 56px;
  }

  .phone-float svg {
    width: 27px;
    height: 27px;
  }

  .phone-float::before,
  .phone-float::after {
    display: none;
  }

  .quick-chat {
    left: 14px;
    bottom: 14px;
  }

  .quick-chat-toggle strong {
    display: none;
  }

  .quick-chat-toggle {
    padding: 10px;
  }

  .footer-columns h3 {
    margin-bottom: 10px;
  }

  .footer-columns a {
    margin-bottom: 8px;
  }

  .hero-photo img {
    height: 320px;
  }

  .detail-hero-media,
  .detail-hero-media img,
  .detail-hero-placeholder {
    min-height: 260px;
  }

  .booking-date-grid,
  .booking-history-item,
  .booking-history-item dl,
  .booking-summary-list {
    grid-template-columns: 1fr;
  }

  .support-notification-panel {
    left: 0;
    right: auto;
  }

  .support-chat-page {
    width: min(100% - 20px, 820px);
    margin-top: 28px;
  }

  .support-message {
    width: 100%;
  }

  .support-chat-form {
    grid-template-columns: 1fr;
  }
}
