/* ================================================
   HOMESTAY STYLES
   ================================================ */

/* Hero Section - Single Page */
.hm-homestay-hero {
    position: relative;
    height: 550px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hm-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.hm-hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 0 30px;
}

/* Centered hero content */
.hm-hero-centered {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hm-breadcrumb {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hm-breadcrumb a {
    color: white;
    text-decoration: none;
}

.hm-breadcrumb a:hover {
    text-decoration: underline;
}

.hm-breadcrumb span {
    margin: 0 8px;
}

.hm-hero-title {
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 20px 0;
    color: #ffffff;
    /* Explicit whitish color */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
}

.hm-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.hm-type-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hm-rating {
    color: #fbbf24;
    font-size: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hm-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
}

.hm-hero-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.hm-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 18px;
    border-radius: 25px;
    backdrop-filter: blur(5px);
}

.hm-stat .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.hm-hero-price {
    position: absolute;
    top: 30px;
    right: 30px;
    background: white;
    color: #1f2937;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hm-price-amount {
    font-size: 32px;
    font-weight: 700;
    color: #3b82f6;
}

.hm-price-label {
    font-size: 14px;
    color: #6b7280;
}

/* Archive Hero */
.hm-archive-hero {
    position: relative;
    height: 350px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Archive Hero Overlay - Customizable */
.hm-archive-hero-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--hm-homestay-overlay-rgba, rgba(30, 64, 175, 0.5));
    z-index: 1;
    pointer-events: none;
}

.hm-archive-hero .hm-container {
    position: relative;
    z-index: 2;
}

.hm-archive-title {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hm-archive-subtitle {
    font-size: 18px;
    color: white;
    opacity: 0.95;
}

/* Filter Bar */
.hm-filter-bar {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 25px 0;
}

.hm-filter-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.hm-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 150px;
}

.hm-filter-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.hm-filter-group select,
.hm-filter-group input[type="number"] {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.hm-price-range {
    flex: 1.5;
}

.hm-price-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.hm-price-inputs input {
    flex: 1;
}

.hm-filter-submit {
    padding: 10px 24px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.hm-filter-submit:hover {
    background: #2563eb;
}

.hm-filter-reset {
    padding: 10px 20px;
    color: #6b7280;
    text-decoration: none;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: all 0.3s;
}

.hm-filter-reset:hover {
    background: #f3f4f6;
}

/* Main Layout */
.hm-homestay-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;
    margin: 40px 0;
}

/* Right Sidebar Modifier */
.hm-homestay-layout.sidebar-right {
    grid-template-columns: 1fr 380px;
}

.hm-homestay-layout.sidebar-right .hm-archive-sidebar {
    order: 2;
}

.hm-homestay-layout.sidebar-right .hm-archive-content {
    order: 1;
}

.hm-homestay-main {
    min-width: 0;
    padding: 0 15px;
}

.hm-homestay-sidebar {
    position: relative;
}

.hm-sticky {
    position: sticky;
    top: 100px;
}

/* Gallery Grid - Professional Lightbox Style */
.hm-gallery-section {
    margin-bottom: 40px;
}

.hm-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.hm-gallery-item {
    position: relative;
    display: block;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hm-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hm-gallery-item:hover img {
    transform: scale(1.1);
}

.hm-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hm-gallery-item:hover .hm-gallery-overlay {
    opacity: 1;
}

.hm-gallery-overlay .dashicons {
    color: white;
    font-size: 48px;
    width: 48px;
    height: 48px;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.hm-gallery-item:hover .hm-gallery-overlay .dashicons {
    transform: scale(1);
}

/* Responsive Gallery Grid */
@media (max-width: 992px) {
    .hm-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hm-gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ========================================
   Custom Professional Lightbox
   ======================================== */

/* Lightbox Overlay - Blur Effect */
.hm-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hm-lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* Backdrop with blur */
.hm-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Image Container - 60% of viewport */
.hm-lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 60vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hm-lightbox.active .hm-lightbox-content {
    transform: scale(1) translateY(0);
}

/* Image styling */
.hm-lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    background: #1a1a1a;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Caption */
.hm-lightbox-caption {
    margin-top: 16px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    max-width: 80%;
    line-height: 1.5;
}

/* Counter */
.hm-lightbox-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 10;
}

/* Close Button */
.hm-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.hm-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.hm-lightbox-close svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
    stroke-width: 2;
}

/* Navigation Arrows */
.hm-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.hm-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.hm-lightbox-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.hm-lightbox-nav svg {
    width: 28px;
    height: 28px;
    stroke: #ffffff;
    stroke-width: 2.5;
}

.hm-lightbox-prev {
    left: 30px;
}

.hm-lightbox-next {
    right: 30px;
}

/* Loading state */
.hm-lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: hm-spin 0.8s linear infinite;
}

@keyframes hm-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Keyboard hint */
.hm-lightbox-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hm-lightbox.active .hm-lightbox-hint {
    opacity: 1;
    animation: hm-fadeOut 3s ease forwards 2s;
}

@keyframes hm-fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.hm-lightbox-hint kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-family: inherit;
    font-size: 11px;
}

/* Responsive Lightbox */
@media (max-width: 1200px) {
    .hm-lightbox-content {
        max-width: 75vw;
    }
}

@media (max-width: 768px) {
    .hm-lightbox-content {
        max-width: 92vw;
        max-height: 85vh;
    }

    .hm-lightbox-image {
        max-height: 65vh;
        border-radius: 8px;
    }

    .hm-lightbox-nav {
        width: 44px;
        height: 44px;
    }

    .hm-lightbox-prev {
        left: 10px;
    }

    .hm-lightbox-next {
        right: 10px;
    }

    .hm-lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .hm-lightbox-counter {
        top: 10px;
        padding: 6px 14px;
        font-size: 12px;
    }

    .hm-lightbox-caption {
        font-size: 13px;
        padding: 10px 16px;
    }

    .hm-lightbox-hint {
        display: none;
    }
}

/* Sections */
.hm-section {
    margin-bottom: 40px;
    padding: 20px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 8px;
}

.hm-section:last-child {
    border-bottom: none;
}

.hm-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #1f2937;
}

.hm-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 30px 0 15px 0;
    color: #374151;
}

.hm-content {
    color: #4b5563;
    line-height: 1.8;
}

/* Amenities List */
.hm-amenities-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.hm-amenities-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #f9fafb;
    border-radius: 10px;
    font-size: 15px;
    color: #374151;
    font-weight: 500;
    transition: all 0.2s ease;
}

.hm-amenities-list li:hover {
    background: #f3f4f6;
    transform: translateX(5px);
}

.hm-amenity-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.hm-amenity-icon svg {
    width: 100%;
    height: 100%;
    fill: #3b82f6;
    /* Blue color */
}

/* Fallback for Font Awesome icons if used */
.hm-amenity-icon i {
    font-size: 18px;
    color: #3b82f6;
}

/* Details Grid */
.hm-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.hm-detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hm-detail-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.hm-detail-value {
    font-size: 16px;
    color: #1f2937;
    font-weight: 600;
}

/* Location */
.hm-address {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 20px;
}

.hm-attractions {
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
    line-height: 1.8;
}

.hm-map-embed {
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
}

.hm-map-embed iframe {
    width: 100%;
    min-height: 400px;
    border: none;
}

/* Booking Card */
.hm-booking-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.hm-price-display {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

.hm-price {
    font-size: 32px;
    font-weight: 700;
    color: #3b82f6;
}

.hm-per-night {
    font-size: 14px;
    color: #6b7280;
    margin-left: 5px;
}

.hm-booking-card h3,
.hm-booking-card h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
}

.hm-host-contact {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
}

.hm-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.hm-contact-item a {
    color: #3b82f6;
    text-decoration: none;
}

.hm-contact-item a:hover {
    text-decoration: underline;
}

/* Booking Form Styles */
.hm-booking-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.hm-booking-form input[type="text"],
.hm-booking-form input[type="email"],
.hm-booking-form input[type="tel"],
.hm-booking-form input[type="number"],
.hm-booking-form input[type="date"],
.hm-booking-form textarea,
.hm-booking-form select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    color: #374151;
    background: #f9fafb;
    transition: all 0.2s ease;
    margin-bottom: 15px;
}

.hm-booking-form input:focus,
.hm-booking-form textarea:focus,
.hm-booking-form select:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.hm-booking-form input::placeholder,
.hm-booking-form textarea::placeholder {
    color: #9ca3af;
}

.hm-booking-form .hm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hm-booking-form textarea {
    min-height: 100px;
    resize: vertical;
}

.hm-booking-form button[type="submit"],
.hm-booking-form .hm-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.hm-booking-form button[type="submit"]:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

/* Archive Grid */
.hm-results-header {
    margin: 30px 0 20px;
}

.hm-results-count {
    color: #6b7280;
    font-size: 14px;
}

.hm-homestay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* ================================================
   HOMESTAY CARD - AIRBNB STYLE (Default)
   ================================================ */

.hm-homestay-card {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.hm-homestay-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* Wishlist Heart Button */
.hm-wishlist-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #374151;
}

.hm-wishlist-btn:hover {
    background: #ffffff;
    transform: scale(1.1);
}

.hm-wishlist-btn.active {
    color: #ef4444;
}

.hm-wishlist-btn.active svg {
    fill: #ef4444;
}

.hm-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Card Image */
.hm-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #f3f4f6;
    overflow: hidden;
}

.hm-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hm-homestay-card:hover .hm-card-image img {
    transform: scale(1.05);
}

/* Badge - Superhost Style */
.hm-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #1f2937;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 3;
    transition: all 0.3s ease;
}

.hm-card-badge svg {
    color: #e11d48;
    flex-shrink: 0;
}

/* ========================================
   PROFESSIONAL OVERLAY SYSTEM
   ======================================== */

/* Card Image Overlay - Customizable */
.hm-card-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(var(--hm-card-overlay-rgb), var(--hm-card-overlay-opacity));
    pointer-events: none;
    z-index: 1;
    transition: background 0.3s ease;
}

.hm-homestay-card:hover .hm-card-image-overlay {
    background: rgba(var(--hm-card-overlay-rgb), calc(var(--hm-card-overlay-opacity) + 0.1));
}

/* Adaptive Colors - White Overlay */
.hm-card-image.hm-overlay-white .hm-card-badge {
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hm-card-image.hm-overlay-white .hm-card-dots .hm-dot {
    background: rgba(30, 41, 59, 0.4);
}

.hm-card-image.hm-overlay-white .hm-card-dots .hm-dot.active {
    background: #1e293b;
}

.hm-card-image.hm-overlay-white .hm-carousel-nav button {
    background: rgba(255, 255, 255, 0.9);
    color: #1f2937;
}

.hm-card-image.hm-overlay-white .hm-carousel-nav button:hover {
    background: #ffffff;
}

/* Adaptive Colors - Black/Dark Overlay (default) */
.hm-card-image.hm-overlay-black .hm-card-badge {
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
}

.hm-card-image.hm-overlay-black .hm-card-dots .hm-dot {
    background: rgba(255, 255, 255, 0.5);
}

.hm-card-image.hm-overlay-black .hm-card-dots .hm-dot.active {
    background: #ffffff;
}

.hm-card-image.hm-overlay-black .hm-carousel-nav button {
    background: rgba(255, 255, 255, 0.85);
    color: #1f2937;
}

.hm-card-image.hm-overlay-black .hm-carousel-nav button:hover {
    background: #ffffff;
}

/* ========================================
   SLEEK HOVER CAROUSEL
   ======================================== */

/* Carousel Navigation */
.hm-carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 4;
    pointer-events: none;
}

.hm-homestay-card:hover .hm-carousel-nav {
    opacity: 1;
}

.hm-carousel-nav button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    pointer-events: all;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hm-carousel-nav button:active {
    transform: scale(0.95);
}

.hm-carousel-nav button svg {
    width: 16px;
    height: 16px;
}

/* Carousel Dots */
.hm-card-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.hm-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

.hm-dot.active {
    background: #ffffff;
    width: 8px;
    height: 8px;
}

/* Card Content */
.hm-card-content {
    padding: 16px 18px 18px;
}

/* Card Header - Title + Rating */
.hm-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 4px;
}

.hm-card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #1f2937;
    line-height: 1.3;
    flex: 1;
}

/* Rating */
.hm-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    flex-shrink: 0;
}

.hm-card-rating svg {
    color: #1f2937;
    fill: #1f2937;
}

/* Subtitle - Location + Ratings */
.hm-card-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 14px 0;
}

/* Features List */
.hm-card-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.hm-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #4b5563;
}

.hm-feature-item svg {
    color: #6b7280;
    flex-shrink: 0;
}

/* Card Footer - Price + Book Button */
.hm-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
}

.hm-card-price-inline {
    font-size: 14px;
    color: #1f2937;
}

.hm-card-price-inline strong {
    font-size: 16px;
    font-weight: 700;
}

.hm-card-price-inline span {
    color: #6b7280;
    font-weight: 400;
}

/* Book Now Button */
.hm-book-btn {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #e11d48, #be123c);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hm-homestay-card:hover .hm-book-btn {
    background: linear-gradient(135deg, #be123c, #9f1239);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

/* Legacy Elements (for backwards compatibility) */
.hm-card-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 10px;
}

.hm-card-price {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(59, 130, 246, 0.95);
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 18px;
}

.hm-card-price span {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.9;
}

.hm-card-meta {
    display: flex;
    gap: 15px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    color: #6b7280;
}

.hm-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.hm-card-meta .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* No Results */
.hm-no-results {
    text-align: center;
    padding: 80px 20px;
}

.hm-no-results .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #d1d5db;
    margin-bottom: 20px;
}

.hm-no-results h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.hm-no-results p {
    color: #6b7280;
    margin-bottom: 25px;
}

.hm-no-results .button {
    display: inline-block;
    padding: 12px 30px;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}

/* Pagination */
.hm-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 50px 0;
}

.hm-pagination a,
.hm-pagination span {
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s;
}

.hm-pagination a:hover {
    background: #f3f4f6;
}

.hm-pagination .current {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Responsive */
@media (max-width: 991px) {
    .hm-homestay-layout {
        grid-template-columns: 1fr;
    }

    .hm-homestay-sidebar {
        order: -1;
    }

    .hm-sticky {
        position: static;
    }

    .hm-homestay-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .hm-archive-layout {
        grid-template-columns: 1fr;
    }

    .hm-archive-sidebar {
        order: 2;
    }
}

@media (max-width: 767px) {

    .hm-homestay-hero,
    .hm-archive-hero {
        height: auto;
        min-height: 400px;
        padding: 40px 0;
    }

    .hm-hero-title {
        font-size: 32px;
    }

    .hm-archive-title {
        font-size: 28px;
    }

    .hm-archive-subtitle {
        font-size: 16px;
    }

    .hm-hero-price {
        position: static;
        margin-top: 20px;
        display: inline-block;
    }

    .hm-hero-stats {
        flex-wrap: wrap;
        gap: 15px;
    }

    .hm-filter-form {
        flex-direction: column;
    }

    .hm-filter-group {
        min-width: 100%;
    }

    .hm-homestay-grid {
        grid-template-columns: 1fr;
    }

    .hm-gallery-nav button {
        width: 35px;
        height: 35px;
    }

    .hm-amenities-list {
        grid-template-columns: 1fr;
    }

    .hm-hero-search {
        flex-direction: column;
    }

    .hm-search-field {
        width: 100%;
    }

    /* Card Mobile Adjustments */
    .hm-homestay-card {
        border-radius: 12px;
    }

    .hm-card-content {
        padding: 14px 16px 16px;
    }

    .hm-card-title {
        font-size: 16px;
    }

    .hm-card-features {
        gap: 6px;
        margin-bottom: 14px;
    }

    .hm-feature-item {
        font-size: 13px;
    }

    .hm-book-btn {
        padding: 8px 18px;
        font-size: 13px;
    }

    .hm-wishlist-btn {
        width: 32px;
        height: 32px;
    }

    .hm-wishlist-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* ================================================
   MOBILE FILTER TOGGLE & PANEL
   ================================================ */

/* Mobile Filter Bar - Hidden on Desktop */
.hm-mobile-filter-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.hm-filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hm-filter-toggle-btn:hover {
    border-color: var(--hm-homestay-primary, #3b82f6);
    color: var(--hm-homestay-primary, #3b82f6);
}

.hm-filter-toggle-btn svg {
    color: #6b7280;
}

.hm-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: var(--hm-homestay-primary, #3b82f6);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 11px;
}

.hm-mobile-sort {
    flex-shrink: 0;
}

.hm-mobile-sort-select {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    background: #ffffff;
    cursor: pointer;
}

/* Mobile Filter Panel */
.hm-mobile-filter-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    z-index: 1000;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.hm-mobile-filter-panel.active {
    display: block;
    transform: translateY(0);
}

.hm-mobile-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 10;
}

.hm-mobile-filter-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.hm-close-filters {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
}

.hm-close-filters:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.hm-mobile-filters-form {
    padding: 20px;
    padding-bottom: 120px;
}

.hm-mobile-filter-section {
    margin-bottom: 28px;
}

.hm-mobile-filter-section h4 {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    margin: 0 0 14px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filter Chips */
.hm-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hm-chip {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hm-chip input {
    display: none;
}

.hm-chip:hover {
    background: #e5e7eb;
}

.hm-chip.active {
    background: var(--hm-homestay-primary, #3b82f6);
    border-color: var(--hm-homestay-primary, #3b82f6);
    color: #ffffff;
}

/* Mobile Filter Actions */
.hm-mobile-filter-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 12px;
    padding: 20px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.hm-mobile-filter-actions .hm-btn-outline {
    flex: 1;
    padding: 14px 20px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hm-mobile-filter-actions .hm-btn-outline:hover {
    background: #f3f4f6;
    color: #374151;
}

.hm-mobile-filter-actions .hm-btn-primary {
    flex: 2;
}

/* Filter Overlay */
.hm-filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hm-filter-overlay.active {
    display: block;
    opacity: 1;
}

/* Responsive - Show Mobile Filter Bar */
@media (max-width: 991px) {
    .hm-mobile-filter-bar {
        display: flex;
    }

    /* Hide desktop sidebar on mobile/tablet */
    .hm-archive-sidebar {
        display: none;
    }

    .hm-archive-layout {
        grid-template-columns: 1fr !important;
    }
}

/* ================================================
   ARCHIVE PAGE - SIDEBAR LAYOUT
   ================================================ */

/* Hero Section Enhanced */
.hm-archive-hero {
    min-height: 450px;
    padding: 60px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hm-hero-inner {
    text-align: center;
    max-width: 900px;
}

.hm-archive-title {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hm-archive-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 40px 0;
}

/* Hero Search Bar */
.hm-hero-search {
    display: flex;
    gap: 10px;
    background: #ffffff;
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    flex-wrap: wrap;
    justify-content: center;
}

.hm-search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f3f4f6;
    border-radius: 25px;
    min-width: 180px;
}

.hm-search-field .dashicons {
    color: #6b7280;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.hm-search-field select {
    border: none;
    background: transparent;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    outline: none;
    min-width: 120px;
}

.hm-search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hm-search-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: scale(0.98);
}

/* Archive Layout */
.hm-archive-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding: 40px 0;
}

/* Sidebar */
.hm-archive-sidebar {
    position: relative;
}

.hm-filter-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    position: sticky;
    top: 100px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.hm-filter-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #3b82f6;
}

.hm-sidebar-filters {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.hm-filter-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Price Inputs */
.hm-filter-section .hm-price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hm-filter-section .hm-price-inputs input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
}

.hm-filter-section .hm-price-inputs input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Checkbox List */
.hm-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 180px;
    overflow-y: auto;
}

.hm-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #f9fafb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hm-checkbox:hover {
    background: #f3f4f6;
}

.hm-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
}

.hm-checkbox span {
    flex: 1;
    font-size: 14px;
    color: #374151;
}

.hm-checkbox .hm-count {
    color: #9ca3af;
    font-size: 12px;
}

/* Bedroom Buttons */
.hm-bedroom-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hm-bed-btn {
    padding: 8px 14px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hm-bed-btn:hover,
.hm-bed-btn.active {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

.hm-bed-btn input {
    display: none;
}

/* Select Full Width */
.hm-select-full {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

/* Filter Actions */
.hm-filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.hm-btn-primary {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hm-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
}

.hm-btn-secondary {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: #f3f4f6;
    color: #6b7280;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hm-btn-secondary:hover {
    background: #e5e7eb;
    color: #374151;
}

/* Archive Content */
.hm-archive-content {
    min-width: 0;
}

/* Results Header */
.hm-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 15px;
}

.hm-results-count {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

.hm-results-count strong {
    color: #1f2937;
}

.hm-active-filters {
    display: inline-flex;
    gap: 8px;
    margin-left: 10px;
}

.hm-filter-tag {
    padding: 4px 12px;
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.hm-sort-options {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hm-sort-options label {
    font-size: 14px;
    color: #6b7280;
}

.hm-sort-options select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

/* Grid for Archive */
.hm-archive-content .hm-homestay-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* No Results */
.hm-no-results {
    text-align: center;
    padding: 80px 30px;
    background: #f9fafb;
    border-radius: 12px;
}

.hm-no-results .dashicons {
    font-size: 72px;
    width: 72px;
    height: 72px;
    color: #d1d5db;
    margin-bottom: 20px;
}

.hm-no-results h2 {
    font-size: 28px;
    color: #374151;
    margin: 0 0 10px 0;
}

.hm-no-results p {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 30px 0;
}

/* Pagination Enhanced */
.hm-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.hm-pagination a,
.hm-pagination span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 12px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.hm-pagination a:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.hm-pagination .current {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    border-color: #3b82f6;
}

.hm-pagination .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* ================================================
   SINGLE HOMESTAY - CLASSIC LAYOUT
   ================================================ */

/* Hero Section */
.hm-single-hero {
    position: relative;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hm-single-hero .hm-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.hm-single-hero .hm-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hm-single-hero .hm-hero-content {
    color: #ffffff;
    text-align: center;
    padding: 60px 20px;
}

/* Breadcrumb in Hero */
.hm-single-hero .hm-breadcrumb {
    margin-bottom: 25px;
    font-size: 14px;
}

.hm-single-hero .hm-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s;
}

.hm-single-hero .hm-breadcrumb a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.hm-single-hero .hm-breadcrumb .hm-sep {
    margin: 0 10px;
    opacity: 0.6;
}

.hm-single-hero .hm-breadcrumb .hm-current {
    opacity: 0.9;
}

/* Hero Title */
.hm-single-hero-title {
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Hero Meta */
.hm-single-hero .hm-hero-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.hm-single-hero .hm-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
}

.hm-single-hero .hm-meta-item .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.hm-single-hero .hm-rating-stars .star {
    color: rgba(255, 255, 255, 0.4);
    font-size: 18px;
}

.hm-single-hero .hm-rating-stars .star.filled {
    color: #fbbf24;
}

.hm-single-hero .hm-rating-stars .rating-text {
    margin-left: 5px;
    opacity: 0.9;
}

.hm-single-hero .hm-type-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Hero Stats */
.hm-single-hero .hm-hero-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.hm-single-hero .hm-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
}

.hm-single-hero .hm-stat-item .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Main Content Layout */
.hm-single-homestay {
    padding: 50px 0 80px;
    background: #f9fafb;
}

.hm-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.hm-content-wrapper.sidebar-left {
    grid-template-columns: 380px 1fr;
}

.hm-content-wrapper.sidebar-left .hm-main-content {
    order: 2;
}

.hm-content-wrapper.sidebar-left .hm-sidebar {
    order: 1;
}

/* Main Content Sections */
.hm-main-content .hm-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.hm-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f3f4f6;
}

.hm-section-title .dashicons {
    color: #3b82f6;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.hm-section-content {
    color: #4b5563;
    line-height: 1.8;
    font-size: 15px;
}

.hm-section-content p {
    margin-bottom: 15px;
}

.hm-section-content p:last-child {
    margin-bottom: 0;
}

/* Address Block - Simplified */
.hm-address-block {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 20px;
    font-size: 15px;
}

.hm-address-block strong {
    color: #374151;
    display: block;
    margin-bottom: 5px;
    border-bottom: none;
}

.hm-address-block p {
    margin: 0;
    color: #4b5563;
}

/* Map Container */
.hm-map-container {
    border-radius: 12px;
    overflow: hidden;
    margin-top: 20px;
}

.hm-map-container iframe {
    width: 100%;
    height: 350px;
    border: none;
    display: block;
}

/* Attractions List */
.hm-attractions-list {
    color: #4b5563;
    line-height: 2;
}

/* Unstyled List for Attractions */
.hm-list-unstyled {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.hm-list-unstyled li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 0;
}

.hm-list-unstyled li:last-child {
    margin-bottom: 0;
}

/* Sidebar */
.hm-sidebar {
    position: sticky;
    top: 30px;
}

.hm-sidebar-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.hm-sidebar-card:last-child {
    margin-bottom: 0;
}

/* Price Card */
.hm-price-card {
    background: linear-gradient(135deg, #10b981, #059669);
    /* Green */
    text-align: center;
    border-radius: 0 !important;
    /* Force Square */
}

/* Card Links - Global Fix for Hover Underline */
.hm-homestay-card a,
.hm-related-card a,
.hm-card-link {
    text-decoration: none !important;
}

.hm-homestay-card:hover .hm-card-title,
.hm-related-card:hover .hm-card-title {
    color: #3b82f6 !important;
}

.hm-price-display {
    color: #ffffff;
}

.hm-price-display .hm-currency {
    font-size: 24px;
    font-weight: 600;
    vertical-align: top;
}

.hm-price-display .hm-amount {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

.hm-price-display .hm-per-night {
    font-size: 16px;
    opacity: 1;
    color: #ffffff;
    text-transform: capitalize;
    /* Make it Camel Case */
    font-weight: 500;
}

/* Card Title */
.hm-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f3f4f6;
}

.hm-card-title .dashicons {
    color: #3b82f6;
    font-size: 22px;
    width: 22px;
    height: 22px;
}

/* Host Card */
.hm-host-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.hm-host-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hm-host-avatar .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #4f46e5;
}

.hm-host-name {
    display: block;
    font-size: 17px;
    color: #1f2937;
}

.hm-host-label {
    font-size: 13px;
    color: #6b7280;
}

/* Contact List - Scoped to avoid Footer Conflict */
.hm-sidebar-card .hm-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hm-sidebar-card .hm-contact-list .hm-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #f9fafb !important;
    /* Force light background */
    border-radius: 10px;
    color: #374151 !important;
    /* Force dark text */
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
}

.hm-sidebar-card .hm-contact-list .hm-contact-item:hover {
    background: #f3f4f6 !important;
    transform: translateX(5px);
}

.hm-sidebar-card .hm-contact-list .hm-contact-item .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.hm-sidebar-card .hm-contact-list .hm-contact-item.hm-whatsapp .dashicons {
    color: #25d366;
}

.hm-sidebar-card .hm-contact-list .hm-contact-item.hm-email .dashicons {
    color: #3b82f6;
}

.hm-sidebar-card .hm-contact-list .hm-contact-item.hm-phone .dashicons {
    color: #10b981;
}

/* Details List */
.hm-details-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hm-details-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.hm-details-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hm-detail-label {
    color: #6b7280;
    font-size: 14px;
}

.hm-detail-value {
    color: #1f2937;
    font-weight: 600;
    font-size: 14px;
}

/* Enquiry Form */
.hm-enquiry-form .hm-form-group {
    margin-bottom: 18px;
}

.hm-enquiry-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.hm-enquiry-form input,
.hm-enquiry-form select,
.hm-enquiry-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #374151;
    transition: border-color 0.2s;
    background: #ffffff;
}

.hm-enquiry-form input:focus,
.hm-enquiry-form select:focus,
.hm-enquiry-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.hm-enquiry-form .hm-form-row {
    display: flex;
    gap: 15px;
}

.hm-enquiry-form .hm-half {
    flex: 1;
}

.hm-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 25px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.hm-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.hm-btn-full {
    width: 100%;
}

/* Related Section */
.hm-related-section {
    margin-top: 60px;
    padding-top: 50px;
    border-top: 1px solid #e5e7eb;
}

.hm-related-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 35px 0;
    text-align: center;
}

.hm-related-title .dashicons {
    color: #3b82f6;
    font-size: 28px;
    width: 28px;
    height: 28px;
}

/* Related Cards Row */
.hm-related-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.hm-related-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
}

.hm-related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.hm-related-card .hm-card-link {
    display: block;
    text-decoration: none !important;
    /* Force remove underline */
    color: inherit;
}

.hm-related-card:hover .hm-card-title {
    color: #3b82f6;
    /* Change title color on hover */
}

.hm-related-card .hm-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.hm-related-card .hm-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.hm-related-card:hover .hm-card-image img {
    transform: scale(1.05);
}

.hm-related-card .hm-placeholder {
    width: 100%;
    height: 100%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hm-related-card .hm-placeholder .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #d1d5db;
}

.hm-related-card .hm-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #3b82f6;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.hm-related-card .hm-card-price-tag {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 8px;
}

.hm-related-card .hm-card-price-tag .amount {
    font-size: 16px;
    font-weight: 700;
}

.hm-related-card .hm-card-price-tag .per-night {
    font-size: 12px;
    opacity: 0.9;
}

.hm-related-card .hm-card-body {
    padding: 20px;
}

.hm-related-card .hm-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.hm-related-card .hm-card-description {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 12px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hm-related-card .hm-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 12px 0;
}

.hm-related-card .hm-card-location .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
    vertical-align: middle;
}

.hm-related-card .hm-card-features {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 15px;
    font-size: 13px;
    color: #6b7280;
    align-items: center;
    justify-content: flex-start;
}

.hm-related-card .hm-card-features span {
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
}

.hm-related-card .hm-card-features .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
    vertical-align: middle;
}

.hm-related-card .hm-card-features .rating {
    color: #f59e0b;
}

.hm-related-card .hm-card-features .rating .star {
    color: #fbbf24;
}

/* Single Homestay Responsive */
@media (max-width: 1200px) {
    .hm-related-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .hm-single-hero {
        min-height: 400px;
    }

    .hm-single-hero-title {
        font-size: 36px;
    }

    .hm-content-wrapper,
    .hm-content-wrapper.sidebar-left {
        grid-template-columns: 1fr;
    }

    .hm-content-wrapper.sidebar-left .hm-main-content,
    .hm-content-wrapper.sidebar-left .hm-sidebar {
        order: unset;
    }

    .hm-sidebar {
        position: static;
    }

    .hm-related-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .hm-single-hero {
        min-height: 350px;
    }

    .hm-single-hero .hm-hero-content {
        padding: 40px 15px;
    }

    .hm-single-hero-title {
        font-size: 28px;
    }

    .hm-single-hero .hm-hero-meta {
        gap: 12px;
    }

    .hm-single-hero .hm-hero-stats {
        gap: 10px;
    }

    .hm-single-hero .hm-stat-item {
        padding: 8px 15px;
        font-size: 13px;
    }

    .hm-single-homestay {
        padding: 30px 0 50px;
    }

    .hm-main-content .hm-section,
    .hm-sidebar-card {
        padding: 20px;
        border-radius: 12px;
    }

    .hm-section-title {
        font-size: 18px;
    }

    .hm-enquiry-form .hm-form-row {
        flex-direction: column;
        gap: 0;
    }

    .hm-related-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hm-related-title {
        font-size: 22px;
    }

    .hm-price-display .hm-amount {
        font-size: 32px;
    }
}

/* ================================================
   HOMESTAY ARCHIVE LAYOUT VARIATIONS
   ================================================ */

/* Sidebar Right Layout */
.hm-archive-layout.sidebar-right {
    grid-template-columns: 1fr 280px;
}

.hm-archive-layout.sidebar-right .hm-archive-sidebar {
    order: 2;
}

.hm-archive-layout.sidebar-right .hm-archive-content {
    order: 1;
}

/* No Sidebar Layout */
.hm-archive-layout.no-sidebar {
    grid-template-columns: 1fr;
}

/* Grid Column Variations */
.hm-homestay-grid {
    grid-template-columns: repeat(var(--hm-columns, 3), 1fr);
}

/* Card Style Variations */
.hm-card-style-overlay .hm-homestay-card .hm-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: #ffffff;
}

.hm-card-style-overlay .hm-homestay-card .hm-card-title {
    color: #ffffff;
}

.hm-card-style-overlay .hm-homestay-card .hm-card-location {
    color: rgba(255, 255, 255, 0.9);
}

.hm-card-style-minimal .hm-homestay-card {
    box-shadow: none;
    border: 1px solid #e5e7eb;
}

.hm-card-style-minimal .hm-homestay-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Hero Style Variations */
.hm-archive-hero.minimal {
    min-height: 200px;
    background: var(--color-bg-light, #f9fafb);
    height: auto;
    padding: 60px 20px;
}

.hm-archive-hero.minimal .hm-archive-title {
    color: #1f2937;
    text-shadow: none;
}

.hm-archive-hero.minimal .hm-archive-subtitle {
    color: #6b7280;
}

.hm-archive-hero.minimal .hm-hero-search {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ================================================
   SINGLE HOMESTAY LAYOUT VARIATIONS
   ================================================ */

/* Breadcrumb Bar for non-hero layouts */
.hm-breadcrumb-bar {
    padding: 15px 0;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}

.hm-breadcrumb-bar a {
    color: #3b82f6;
    text-decoration: none;
}

.hm-breadcrumb-bar a:hover {
    text-decoration: underline;
}

.hm-breadcrumb-bar span {
    margin: 0 8px;
}

/* Header for non-hero layouts */
.hm-homestay-header {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
}

.hm-homestay-title {
    font-size: 36px;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 15px 0;
}

.hm-homestay-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Layout with sidebar */
.hm-homestay-layout.has-sidebar {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

/* Gallery Top Layout */
.hm-layout-gallery-top .hm-gallery-section {
    margin-bottom: 30px;
}

/* ================================================
   RELATED HOMESTAYS
   ================================================ */

.hm-related-homestays {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e5e7eb;
}

.hm-related-homestays h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 30px;
}

.hm-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.hm-related-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.hm-related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.hm-related-card .hm-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.hm-related-card .hm-card-image {
    position: relative;
    height: 200px;
}

.hm-related-card .hm-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hm-related-card .hm-card-price {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 700;
    color: var(--hm-homestay-primary, #3b82f6);
}

.hm-related-card .hm-card-price span {
    font-weight: 400;
    font-size: 12px;
    color: #6b7280;
}

.hm-related-card .hm-card-content {
    padding: 20px;
}

.hm-related-card .hm-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.hm-related-card .hm-card-location {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hm-related-card .hm-card-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #6b7280;
}

.hm-related-card .hm-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Responsive - Archive Layout */
@media (max-width: 991px) {

    .hm-archive-layout.sidebar-right,
    .hm-archive-layout {
        grid-template-columns: 1fr;
    }

    .hm-archive-layout.sidebar-right .hm-archive-sidebar {
        order: 2;
    }

    .hm-homestay-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hm-homestay-layout.has-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .hm-homestay-grid {
        grid-template-columns: 1fr;
    }

    .hm-related-grid {
        grid-template-columns: 1fr;
    }

    .hm-homestay-title {
        font-size: 28px;
    }

    .hm-archive-hero.minimal {
        padding: 40px 15px;
    }
}

/* ================================================
   ADDITIONAL CARD LAYOUTS
   ================================================ */

/* Horizontal Card Layout */
.hm-card-style-horizontal .hm-homestay-card {
    display: flex;
    flex-direction: row;
}

.hm-card-style-horizontal .hm-homestay-card .hm-card-link {
    display: flex;
    width: 100%;
}

.hm-card-style-horizontal .hm-homestay-card .hm-card-image {
    width: 280px;
    min-width: 280px;
    aspect-ratio: auto;
    height: 200px;
}

.hm-card-style-horizontal .hm-homestay-card .hm-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 25px;
}

.hm-card-style-horizontal .hm-homestay-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Compact Card Layout */
.hm-card-style-compact .hm-homestay-card .hm-card-image {
    aspect-ratio: 4/3;
}

.hm-card-style-compact .hm-homestay-card .hm-card-content {
    padding: 15px;
}

.hm-card-style-compact .hm-homestay-card .hm-card-title {
    font-size: 16px;
    margin-bottom: 8px;
}

.hm-card-style-compact .hm-homestay-card .hm-card-meta {
    padding-top: 8px;
    font-size: 12px;
    gap: 10px;
}

.hm-card-style-compact .hm-homestay-card .hm-card-location {
    font-size: 12px;
    margin-bottom: 6px;
}

.hm-card-style-compact .hm-homestay-card .hm-card-price {
    font-size: 14px;
    padding: 6px 12px;
}

/* Elegant Card Layout */
.hm-card-style-elegant .hm-homestay-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.hm-card-style-elegant .hm-homestay-card .hm-card-image {
    aspect-ratio: 3/2;
}

.hm-card-style-elegant .hm-homestay-card .hm-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    pointer-events: none;
}

.hm-card-style-elegant .hm-homestay-card .hm-card-badge {
    background: var(--hm-homestay-primary, #3b82f6);
    color: #ffffff;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hm-card-style-elegant .hm-homestay-card .hm-card-content {
    padding: 25px 20px;
    background: #ffffff;
}

.hm-card-style-elegant .hm-homestay-card .hm-card-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.3;
}

.hm-card-style-elegant .hm-homestay-card .hm-card-location {
    font-size: 15px;
    color: #6b7280;
}

.hm-card-style-elegant .hm-homestay-card .hm-card-rating {
    font-size: 14px;
}

.hm-card-style-elegant .hm-homestay-card .hm-card-price {
    background: linear-gradient(135deg, var(--hm-homestay-primary, #3b82f6), var(--hm-homestay-accent, #2563eb));
    border-radius: 12px;
    font-size: 16px;
    padding: 10px 18px;
}

/* ================================================
   CARD HOVER ANIMATIONS
   ================================================ */

/* No Animation */
.hm-card-hover-none .hm-homestay-card {
    transition: none;
}

.hm-card-hover-none .hm-homestay-card:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Lift Up Animation */
.hm-card-hover-lift .hm-homestay-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hm-card-hover-lift .hm-homestay-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Zoom Image Animation */
.hm-card-hover-zoom .hm-homestay-card {
    overflow: hidden;
}

.hm-card-hover-zoom .hm-homestay-card .hm-card-image img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hm-card-hover-zoom .hm-homestay-card:hover .hm-card-image img {
    transform: scale(1.15);
}

.hm-card-hover-zoom .hm-homestay-card:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Glow Shadow Animation */
.hm-card-hover-glow .hm-homestay-card {
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.hm-card-hover-glow .hm-homestay-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4), 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Border Highlight Animation */
.hm-card-hover-border .hm-homestay-card {
    border: 2px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.hm-card-hover-border .hm-homestay-card:hover {
    border-color: var(--hm-homestay-primary, #3b82f6);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

/* Subtle Tilt Animation */
.hm-card-hover-tilt .hm-homestay-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
}

.hm-card-hover-tilt .hm-homestay-card:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(-5px);
    box-shadow: 10px 15px 30px rgba(0, 0, 0, 0.15);
}

/* Content Slide Animation */
.hm-card-hover-slide .hm-homestay-card {
    overflow: hidden;
}

.hm-card-hover-slide .hm-homestay-card .hm-card-content {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hm-card-hover-slide .hm-homestay-card:hover .hm-card-content {
    transform: translateY(-10px);
}

.hm-card-hover-slide .hm-homestay-card .hm-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--hm-homestay-primary, #3b82f6), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hm-card-hover-slide .hm-homestay-card:hover .hm-card-image::after {
    opacity: 0.3;
}

.hm-card-hover-slide .hm-homestay-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* ================================================
   RESPONSIVE FOR NEW LAYOUTS
   ================================================ */

@media (max-width: 991px) {
    .hm-card-style-horizontal .hm-homestay-card .hm-card-image {
        width: 220px;
        min-width: 220px;
        height: 180px;
    }
}

@media (max-width: 767px) {

    .hm-card-style-horizontal .hm-homestay-card,
    .hm-card-style-horizontal .hm-homestay-card .hm-card-link {
        flex-direction: column;
    }

    .hm-card-style-horizontal .hm-homestay-card .hm-card-image {
        width: 100%;
        min-width: 100%;
        height: auto;
        aspect-ratio: 16/10;
    }

    .hm-card-hover-tilt .hm-homestay-card:hover {
        transform: translateY(-5px);
    }
}

/* ================================================
   TAXONOMY ARCHIVE STYLES
   (City & Type Archives)
   ================================================ */

/* Taxonomy Hero - Base */
.hm-archive-hero.hm-city-hero,
.hm-archive-hero.hm-type-hero {
    position: relative;
    min-height: 380px;
    height: auto;
    padding: 60px 0;
}

/* Breadcrumb Light Theme */
.hm-breadcrumb-light {
    margin-bottom: 20px;
}

.hm-breadcrumb-light a,
.hm-breadcrumb-light .hm-sep {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.hm-breadcrumb-light a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.hm-breadcrumb-light .hm-current {
    color: #ffffff;
    font-weight: 600;
}

.hm-breadcrumb .separator {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.6);
}

/* City/Type Icon in Title */
.hm-city-icon,
.hm-type-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 12px;
    vertical-align: middle;
}

.hm-city-icon svg,
.hm-type-icon svg {
    stroke: currentColor;
}

/* City/Type Stats */
.hm-city-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.hm-city-stats .hm-stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hm-stat-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.hm-stat-number svg {
    fill: #fbbf24;
}

.hm-stat-label {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
}

/* City Search in Hero */
.hm-city-search {
    margin-top: 30px;
}

/* City/Type Hero Color Variants */
.hm-archive-hero.hm-city-hero {
    --hero-primary: var(--hm-city-hero-primary, #3b82f6);
    --hero-secondary: var(--hm-city-hero-secondary, #2563eb);
}

.hm-archive-hero.hm-type-hero {
    --hero-primary: var(--hm-type-hero-primary, #10b981);
    --hero-secondary: var(--hm-type-hero-secondary, #059669);
}

/* Sidebar - Other Cities/Types Links */
.hm-city-links,
.hm-other-types {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hm-city-link,
.hm-type-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    transition: all 0.3s ease;
}

.hm-city-link:hover,
.hm-type-link:hover {
    background: var(--hm-homestay-primary, #3b82f6);
    color: #ffffff;
}

.hm-city-link .hm-count,
.hm-type-link .hm-count {
    color: #9ca3af;
    font-size: 13px;
}

.hm-city-link:hover .hm-count,
.hm-type-link:hover .hm-count {
    color: rgba(255, 255, 255, 0.8);
}

/* Current Filter Badge */
.hm-current-filter-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(135deg, var(--hm-homestay-primary, #3b82f6), var(--hm-homestay-accent, #2563eb));
    border-radius: 8px;
    margin-bottom: 15px;
}

.hm-badge-active {
    flex: 1;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
}

.hm-badge-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.hm-badge-clear:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hm-filter-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filter Chips (Mobile) */
.hm-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hm-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hm-chip input {
    display: none;
}

.hm-chip:hover {
    background: #e5e7eb;
}

.hm-chip.active {
    background: var(--hm-homestay-primary, #3b82f6);
    color: #ffffff;
    border-color: var(--hm-homestay-primary, #3b82f6);
}

/* Responsive Taxonomy Styles */
@media (max-width: 992px) {

    .hm-archive-hero.hm-city-hero,
    .hm-archive-hero.hm-type-hero {
        min-height: 320px;
        padding: 40px 0;
    }

    .hm-city-stats {
        gap: 20px;
    }

    .hm-city-stats .hm-stat {
        padding: 12px 18px;
    }

    .hm-stat-number {
        font-size: 1.25rem;
    }

    .hm-stat-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {

    .hm-archive-hero.hm-city-hero,
    .hm-archive-hero.hm-type-hero {
        min-height: auto;
        padding: 30px 0;
    }

    .hm-archive-hero .hm-archive-title {
        font-size: 28px;
    }

    .hm-city-icon,
    .hm-type-icon {
        display: none;
    }

    .hm-city-stats {
        gap: 12px;
    }

    .hm-city-stats .hm-stat {
        padding: 10px 15px;
        flex: 1 1 calc(50% - 6px);
        min-width: 100px;
    }

    .hm-breadcrumb-light {
        font-size: 12px;
    }

    .hm-current-filter-badge {
        padding: 8px 12px;
    }
}

/* Hero Search - Taxonomy Archives */
.hm-archive-hero .hm-hero-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    padding: 8px;
    max-width: 700px;
    margin: 30px auto 0;
}

.hm-archive-hero .hm-search-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    position: relative;
}

.hm-archive-hero .hm-search-field::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.3);
}

.hm-archive-hero .hm-search-field:last-of-type::after {
    display: none;
}

.hm-archive-hero .hm-search-field .dashicons {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.hm-archive-hero .hm-search-field select {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.hm-archive-hero .hm-search-field select option {
    color: #374151;
    background: #ffffff;
}

.hm-archive-hero .hm-search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #ffffff;
    color: var(--hm-homestay-primary, #3b82f6);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hm-archive-hero .hm-search-btn:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
}

.hm-archive-hero .hm-search-btn .dashicons {
    color: var(--hm-homestay-primary, #3b82f6);
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Mobile Search */
@media (max-width: 768px) {
    .hm-archive-hero .hm-hero-search {
        flex-direction: column;
        border-radius: 16px;
        padding: 15px;
        gap: 12px;
    }

    .hm-archive-hero .hm-search-field {
        width: 100%;
        padding: 10px 15px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
    }

    .hm-archive-hero .hm-search-field::after {
        display: none;
    }

    .hm-archive-hero .hm-search-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
}

/* ================================================
   SINGLE HOMESTAY FIXES
   ================================================ */

/* Similar Properties Grid Fix */
.hm-related-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Ensure images cover the card properly */
.hm-related-card .hm-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* Hero Amenities Hover Effect */
.hm-hero-stats .hm-stat-item {
    transition: transform 0.3s ease, background 0.3s ease;
    cursor: default;
    padding: 10px 15px;
    border-radius: 8px;
}

.hm-hero-stats .hm-stat-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

/* Hero Pointer Events Fix */
.hm-single-hero {
    pointer-events: none;
    /* Prevention of background click */
}

.hm-single-hero .hm-container,
.hm-single-hero .hm-hero-overlay,
.hm-single-hero .hm-hero-content {
    pointer-events: auto;
    /* Re-enable for content */
}

/* Archive Description Styles */
.hm-archive-description {
    line-height: 1.6;
    color: #4b5563;
    font-size: 1.05rem;
}

.hm-desc-top {
    margin-bottom: 30px;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #f3f4f6;
}

.hm-desc-bottom {
    margin-top: 50px;
    border-top: 1px solid #e5e7eb;
    padding-top: 40px;
}

/* Location Map Section Styling */
.hm-map-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #f3f4f6;
}

.hm-map-container iframe {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* ================================================
   SIDEBAR VISIBILITY & FILTER STYLING
   ================================================ */

/* Desktop: Hide Toggle, Show Filters, Show Desktop Only Elements */
@media (min-width: 992px) {
    .hm-filter-toggle {
        display: none !important;
    }

    .hm-sidebar-filters {
        display: block !important;
    }
}

/* Mobile: Show Toggle, Hide Desktop Only */
@media (max-width: 991px) {
    .hm-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px;
        background: #f3f4f6;
        border-radius: 8px;
        margin-bottom: 20px;
        cursor: pointer;
        font-weight: 600;
        color: #1f2937;
    }

    .hm-filter-toggle .dashicons {
        font-size: 20px;
        width: 20px;
        height: 20px;
    }

    /* Ensure Sidebar Filters are visible below toggle */
    .hm-sidebar-filters {
        display: block;
    }
}

/* Missing Filter Section Styles */
.hm-filter-section {
    margin-bottom: 25px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 20px;
}

.hm-filter-section:last-child {
    border-bottom: none;
}

.hm-filter-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1f2937;
}

.hm-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hm-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #4b5563;
}

.hm-checkbox input[type="radio"],
.hm-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary, #3b82f6);
}

.hm-price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hm-price-inputs input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
}

.hm-filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.hm-filter-actions .hm-btn-primary,
.hm-filter-actions .hm-btn-secondary {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    text-align: center;
    border-radius: 6px;
}