/* ===============================
   GLOBAL RESET
================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #f1f5f9;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #0f172a;
}

/* ===============================
   BUTTONS
================================ */
.hm-btn {
    padding: 10px 16px;
    background: #9B824E;
    border-radius: 10px;
    font-size: 16px;
    border: none;

    color: #fff;

    cursor: pointer;
    text-align: center;
}

.hm-btn:hover {
    background: #444444;
    color: #ffffff;
}

.hm-btn-outline {
    background: #fff;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.hm-btn-outline:hover {
    background: #afb0b1;
    border: 1px solid #444;
}

/* ===============================
   DASHBOARD LAYOUT
================================ */
.hm-dashboard {
    display: flex;
    min-height: 85vh;
}

/* Sidebar */
.hm-sidebar {
    width: 260px;
    background: #0f172a;
    padding: 20px;
    color: #e5e7eb;
}

.hm-sidebar a {
    display: block;
    padding: 12px 14px;
    border-radius: 8px;
    color: #cbd5e1;
    text-decoration: none;
    margin-bottom: 6px;
}

.hm-sidebar a:hover,
.hm-sidebar .hm-tab.active {
    background: #1e293b;
    color: #9B824E;
}

.hm-account-info{
    display: none;
}

/* Content */
.hm-content {
    flex: 1;
    padding: 25px;
    background: #f8fafc;
}

/* ===============================
   SECTIONS
================================ */
.hm-dashboard-section {
    max-width: 1100px;
}

.hm-section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
}

/* ===============================
   BOOKINGS GRID
================================ */
.hm-bookings-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

/* ===============================
   BOOKING CARD
================================ */
.hm-booking-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    transition: .25s;
}

.hm-booking-card:hover {
    transform: translateY(-4px);
}

/* Image */
.hm-booking-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* Info */
.hm-booking-info {
    padding: 18px;
    flex: 1;
}

.hm-booking-info h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.hm-room-type {
    font-size: 13px;
    color: #64748b;
}

.hm-booking-info p {
    font-size: 14px;
    margin: 4px 0;
    color: #334155;
}

/* Status */
.hm-booking-status {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.status-confirmed {
    background: #dcfce7;
    color: #166534;
    padding: 6px 10px;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

/* Price */
.hm-booking-price {
    margin-top: 12px;
    font-size: 18px;
    font-weight: 600;
}

/* Actions */
.hm-booking-actions {
    padding: 14px 18px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
}

/* ===============================
   EMPTY STATE
================================ */
.hm-empty-state {
    background: #fff;
    padding: 40px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

.hm-empty-state p {
    margin-bottom: 16px;
    font-size: 16px;
    color: #475569;
}

/* ===============================
   PROFILE
================================ */
.hm-profile-wrapper {
    background: #fff;
    padding: 32px;
    border-radius: 14px;
    max-width: 900px;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.hm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.hm-field label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: #475569;
}

.hm-field input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
}

/* ===============================
   DASHBOARD CARDS
================================ */
.hm-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.hm-card {
    background: #fff;
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.hm-card  h4, .hm-card h3, .hm-profile-wrapper h2{
        font-size: 22px;
    font-family: revert-layer;
    font-weight: 500;
}

.hm-profile-wrapper .hm-btn{
    margin-top: 20px;
}

.hm-big {
    font-size: 28px;
    font-weight: 700;
    color: #0ea5e9;
        font-family: system-ui;
}

.hm-card p{
    margin-bottom: 10px;
}

/* ===============================
   LOADER
================================ */
#hm-dashboard-loader {
    padding: 40px;
    font-size: 16px;
    color: #64748b;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 900px) {

    .hm-dashboard {
        flex-direction: column;
    }

    .hm-sidebar {
        width: 100%;
        display: flex;
        gap: 10px;
        overflow-x: auto;
    }

    .hm-sidebar a {
        white-space: nowrap;
    }

    .hm-content {
        padding: 20px;
    }
}


.hm-booking-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.hm-booking-filters .active {
    background: #0ea5e9;
    color: #fff;
    border-color: #0ea5e9;
}

/* Optional visual difference */
.booking-upcoming { border-left: 4px solid #0ea5e9; }
.booking-past { opacity: .8; }
.booking-cancelled { opacity: .5; }



#hm-booking-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.hm-modal-box {
    background: #fff;
    padding: 30px;
    border-radius: 14px;
    width: 100%;
    max-width: 500px;
}




/* =========================
   INVOICE MODAL (FIX)
========================= */

#hm-invoice-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    z-index: 99999;

    /* center modal */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hm-invoice-box {
    background: #fff;
    width: 100%;
    max-width: 720px;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: hmFadeIn 0.25s ease;
}

/* Modal animation */
@keyframes hmFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Invoice layout */
.hm-invoice {
    font-size: 15px;
}

.hm-invoice h2 {
    text-align: center;
    margin-bottom: 15px;
}

.hm-invoice table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.hm-invoice th,
.hm-invoice td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.hm-invoice-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* Print only invoice */
@media print {
    body * {
        visibility: hidden;
    }
    .hm-invoice, .hm-invoice * {
        visibility: visible;
    }
    .hm-invoice {
        position: absolute;
        inset: 0;
        width: 100%;
    }
}
/* Invoice status badge */
.hm-invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hm-invoice-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hm-invoice-status.status-confirmed {
    background: #e6f9f0;
    color: #0f766e;
    border: 1px solid #5eead4;
}

.hm-invoice-status.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}












/* =========================
   BOOKING VIEW (PREMIUM)
========================= */

.hm-booking-view {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
}

.hm-booking-view-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
}

.hm-booking-view-info h2 {
    margin-bottom: 6px;
}

.hm-booking-desc {
    color: #475569;
    margin: 10px 0;
}

.hm-booking-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin: 15px 0;
    font-size: 14px;
}

.hm-booking-amenities ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 6px;
    margin-top: 8px;
}

.hm-booking-total {
    margin-top: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #0ea5e9;
}

.hm-room-booked-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.hm-room-slider {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.hm-room-slider img {
    width: 200px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
}

.hm-room-booked-info h3 {
    margin-top: 15px;
}

.hm-room-amenities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 6px;
    margin: 10px 0;
}

.hm-cancellation-policy {
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

.hm-booking-total {
    font-size: 20px;
    font-weight: bold;
    color: #0ea5e9;
    margin-top: 20px;
}

.hm-room-detail {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
}

.hm-room-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
    gap: 10px;
}

.hm-room-gallery img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
}

.hm-room-detail-info h1 {
    margin-bottom: 5px;
}

.hm-room-price {
    font-size: 20px;
    font-weight: bold;
    color: #0ea5e9;
}






/* ===============================
   ROOM DETAILS PAGE
================================ */

.hm-room-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    color: #1e293b;
}

/* ===============================
   IMAGE SLIDER
================================ */

.hm-room-slider {
    width: 100%;
    height: 420px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
}

.hm-room-slider img {
    width: 100%;
    height: 420px!important;
    object-fit: contain!important;
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background: #0ea5e9;
    opacity: 1;
}

/* ===============================
   HEADER
================================ */

.hm-room-header {
    margin-bottom: 30px;
}

.hm-room-header h1 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hm-room-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hm-badge {
    background: #e0f2fe;
    color: #0369a1;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
}

/* ===============================
   LAYOUT
================================ */

.hm-room-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 900px) {
    .hm-room-layout {
        grid-template-columns: 1fr;
    }
}

/* ===============================
   SECTIONS
================================ */

.hm-room-section {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.hm-room-section h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* ===============================
   TEXT
================================ */

.hm-room-short {
    font-weight: 500;
    margin-bottom: 10px;
}

.hm-room-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hm-room-details li {
    padding: 6px 0;
    font-size: 15px;
}

/* ===============================
   AMENITIES
================================ */

.hm-amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
    gap: 12px;
}

.hm-amenity {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
}

.hm-amenity-icon {
    font-size: 18px;
}

/* ===============================
   GUEST TYPES
================================ */

.hm-guest-types {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hm-guest-badge {
    background: #f1f5f9;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
}

/* ===============================
   HIGHLIGHTS
================================ */

.hm-room-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hm-room-highlights li {
    padding: 8px 0;
    font-size: 15px;
}

/* ===============================
   HOUSE RULES
================================ */

.hm-house-rules {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hm-house-rules li {
    padding: 8px 0;
    font-size: 14px;
}

/* ===============================
   AVAILABILITY CALENDAR
================================ */

#hm-availability-calendar {
    margin-top: 10px;
}

.hm-cal-grid {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    gap: 6px;
}

.hm-cal-day {
    padding: 8px;
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
}

.hm-cal-day.available {
    background: #dcfce7;
    color: #166534;
}

.hm-cal-day.blocked {
    background: #fee2e2;
    color: #991b1b;
}

/* ===============================
   RIGHT COLUMN
================================ */

.hm-room-right {
    position: sticky;
    top: 100px;
}

.hm-room-price-box {
    background: #fff;
    border-radius: 16px;
    padding: 26px;
    box-shadow: 0 12px 40px rgba(0,0,0,.1);
}

.hm-room-price {
    font-size: 32px;
    font-weight: 700;
    color: #0ea5e9;
}

.hm-room-price span {
    font-size: 15px;
    color: #64748b;
}

.hm-room-note {
    margin: 8px 0 15px;
    font-size: 14px;
    color: #475569;
}

.hm-room-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.hm-room-features li {
    padding: 6px 0;
    font-size: 14px;
}

/* ===============================
   BUTTONS
================================ */

.hm-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.hm-btn-primary {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #fff;
}

.hm-btn-primary:hover {
    opacity: .9;
}

.hm-btn-outline {
    border: 1px solid #0ea5e9;
    color: #0ea5e9;
    background: transparent;
}

/* ===============================
   SAFETY
================================ */

.hm-room-safety {
    margin-top: 20px;
}

.hm-room-safety h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.hm-room-safety ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hm-room-safety li {
    padding: 6px 0;
    font-size: 14px;
}

/* ===============================
   SIMILAR ROOMS
================================ */

.hm-similar-rooms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
    gap: 20px;
}

.hm-similar-room-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    text-align: center;
    width: 35%;
}

.hm-similar-room-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.hm-similar-room-card h4 {
    font-size: 18px;
    margin-bottom: 6px;
}

.hm-similar-room-card p {
    margin-bottom: 12px;
    color: #475569;
}


.hm-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 15px;
}

.hm-cal-day {
    padding: 10px 5px;
    text-align: center;
    font-size: 13px;
    border-radius: 6px;
    background: #f1f5f9;
}

.hm-cal-day.available {
    background: #dcfce7;
    color: #166534;
}

.hm-cal-day.blocked {
    background: #fee2e2;
    color: #991b1b;
}
