/* ============================================================
   HOTELS CATEGORY PAGE CSS
   ============================================================ */
:root {
    --htl-primary: var(--c-primary, #cc5500);
    --htl-bg: #fcf9f6;
    --htl-dark: #1f2937;
    --htl-gray: #6b7280;
    --htl-border: #e5e7eb;
}

body {
    background-color: var(--htl-bg);
    color: var(--htl-dark);
}

.htl-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= Hero & Search ================= */
.htl-hero {
    position: relative;
    background: url('../../img/hotels-hero.jpg') no-repeat center center/cover;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding-bottom: 40px; /* Space for overlapping search bar */
}
.htl-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
}
.htl-hero-content {
    position: relative;
    z-index: 2;
}
.htl-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin: 0 0 10px 0;
    font-weight: 800;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.85), 0 1px 3px rgba(0,0,0,0.9) !important;
}
.htl-breadcrumbs {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.htl-breadcrumbs a {
    color: #ffffff !important;
    text-decoration: none;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.htl-breadcrumbs span.active {
    color: var(--c-primary, #86b817) !important;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* Search Bar */
.htl-search-wrapper {
    position: relative;
    z-index: 10;
    max-width: 1000px;
    margin: -35px auto 40px auto;
    padding: 0 20px;
}
.htl-search-bar {
    background: #fff;
    border-radius: 12px;
    padding: 8px 10px 8px 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid var(--htl-border, #e5e7eb);
}
.htl-search-input-box {
    display: flex;
    align-items: center;
    flex-grow: 1;
    gap: 14px;
}
.htl-search-icon {
    color: #64748b;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.htl-search-input {
    width: 100%;
    border: none !important;
    outline: none !important;
    font-size: 1rem;
    padding: 10px 0 !important;
    background: transparent !important;
    color: #0f172a;
}
.htl-search-btn {
    background: var(--c-primary, #86b817);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}
.htl-search-btn:hover {
    filter: brightness(0.9);
}

/* ================= Main Layout ================= */
.htl-main-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

/* ================= Sidebar Filters ================= */
.htl-sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    border: 1px solid var(--htl-border);
    height: fit-content;
}
.htl-sidebar h3 {
    font-size: 1.2rem;
    color: var(--htl-dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--htl-border);
}
.htl-filter-group {
    margin-bottom: 30px;
}
.htl-filter-title {
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1rem;
}
.htl-checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    cursor: pointer;
}
.htl-checkbox-group input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.htl-checkbox-group span {
    font-size: 0.95rem;
    color: var(--htl-gray);
}
.htl-stars {
    color: var(--htl-primary);
    font-size: 0.85rem;
    display: flex;
    gap: 2px;
    margin-left: 10px;
}
.htl-clear-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--htl-primary);
    color: var(--htl-primary);
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
}
.htl-clear-btn:hover {
    background: var(--htl-primary);
    color: #fff;
}

/* ================= Results Section ================= */
.htl-results-header {
    background: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    border: 1px solid var(--htl-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.htl-results-count {
    font-size: 1rem;
    font-weight: 600;
}
.htl-results-count span {
    color: var(--htl-primary);
}
.htl-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}
.htl-sort select {
    padding: 8px 15px;
    border: 1px solid var(--htl-border);
    border-radius: 4px;
    outline: none;
    font-family: inherit;
}

/* Hotel Cards */
.htl-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--htl-border);
    display: flex;
    margin-bottom: 24px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.htl-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}
.htl-card-img {
    width: 320px;
    min-width: 320px;
    position: relative;
}
.htl-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.htl-img-location {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: #0f172a;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.htl-card-body {
    flex-grow: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.htl-card-title-row {
    margin-bottom: 8px;
}
.htl-card-title-row h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin: 0;
    color: var(--htl-dark);
}
.htl-card-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.htl-card-rating .htl-stars {
    color: var(--c-primary, #86b817);
    font-size: 0.95rem;
}
.htl-rating-text {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
}
.htl-card-tags {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #64748b;
    margin-bottom: 15px;
}
.htl-card-desc {
    font-size: 0.95rem;
    color: var(--htl-gray);
    margin-bottom: 25px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.htl-card-amenities {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}
.htl-amenity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--htl-gray);
    text-align: center;
    font-weight: 500;
    max-width: 65px;
}
.htl-amenity i {
    color: #2d5a3c;
    font-size: 1.2rem;
    background: #eef2eb;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.htl-card-price-col {
    width: 250px;
    min-width: 250px;
    background: #f8faf8; /* Light greenish/grayish background */
    border-left: 1px solid var(--htl-border);
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.htl-price-top {
    margin-bottom: 20px;
}
.htl-price-label {
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 5px;
    font-weight: 600;
}
.htl-price-val {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--htl-dark);
}
.htl-price-val span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
}

.htl-price-bottom {}
.htl-book-btn {
    display: block;
    background: var(--htl-primary); /* Uses main theme color */
    color: #fff;
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    margin-bottom: 15px;
}
.htl-book-btn:hover {
    background: #a84600;
}
.htl-price-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.htl-pf-item {
    font-size: 0.8rem;
    color: #475569;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
.htl-pf-item i {
    color: #059669; /* distinct checkmark green */
    margin-top: 2px;
}

/* ================= Responsive ================= */
@media (max-width: 1024px) {
    .htl-main-grid {
        grid-template-columns: 240px 1fr;
    }
    .htl-card-img {
        width: 260px;
        min-width: 260px;
    }
    .htl-card-price-col {
        width: 220px;
        min-width: 220px;
        padding: 25px 20px;
    }
}
@media (max-width: 850px) {
    .htl-card {
        flex-direction: column;
    }
    .htl-card-img {
        width: 100%;
        height: 280px;
    }
    .htl-card-body {
        padding: 20px;
    }
    .htl-card-price-col {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--htl-border);
        flex-direction: column;
        align-items: stretch;
        background: #f8faf8;
        padding: 20px;
    }
    .htl-price-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 15px;
    }
    .htl-price-bottom {
        display: flex;
        align-items: center;
        gap: 15px;
        justify-content: space-between;
    }
    .htl-book-btn { margin-bottom: 0; padding: 14px 30px; flex-shrink: 0; }
}
@media (max-width: 768px) {
    .htl-main-grid {
        grid-template-columns: 1fr;
    }
    .htl-search-wrapper {
        margin-top: 20px;
        padding: 0 15px;
    }
    .htl-search-bar {
        flex-direction: column;
        gap: 12px;
        background: transparent;
        box-shadow: none;
        padding: 0;
        border: none;
    }
    .htl-search-input-box {
        width: 100%;
        background: #ffffff;
        border: 1.5px solid #cbd5e1;
        border-radius: 8px;
        padding: 4px 16px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        transition: all 0.25s ease;
    }
    .htl-search-input-box:focus-within {
        border-color: var(--c-primary, #86b817);
        box-shadow: 0 0 0 3px rgba(134, 184, 23, 0.18);
    }
    .htl-search-icon {
        font-size: 1.1rem;
        color: #64748b;
        margin-right: 0;
    }
    .htl-search-input {
        padding: 12px 0 !important;
        font-size: 0.95rem;
    }
    .htl-search-btn {
        width: 100%;
        padding: 14px;
        font-size: 1rem;
        border-radius: 8px;
    }
    .htl-results-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}
@media (max-width: 480px) {
    .htl-card-img {
        height: 220px;
    }
    .htl-price-top, .htl-price-bottom {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .htl-price-bottom {
        gap: 20px;
    }
    .htl-pf-item {
        justify-content: center;
    }
    .htl-book-btn {
        width: 100%;
    }
}

/* ================= Mobile Filter & Pagination ================= */
.mobile-filter-toggle-btn {
    display: none;
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--htl-border, #e5e7eb);
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--htl-dark, #0f172a);
    cursor: pointer;
    margin-bottom: 20px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.25s ease;
}
.mobile-filter-toggle-btn:hover, .mobile-filter-toggle-btn.active {
    border-color: var(--c-primary, #86b817);
    color: var(--c-primary, #86b817);
}
.mobile-filter-badge {
    background: var(--c-primary, #86b817);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
}
.htl-sidebar-mobile-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 700;
    font-size: 1.1rem;
    color: #0f172a;
}
.htl-sidebar-close-btn {
    background: #f1f5f9;
    border: none;
    font-size: 1.4rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
}
.htl-apply-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--c-primary, #86b817);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background 0.3s;
}
.htl-apply-btn:hover {
    filter: brightness(0.9);
}

@media (max-width: 768px) {
    .mobile-filter-toggle-btn {
        display: flex !important;
    }
    .htl-sidebar-mobile-header {
        display: flex !important;
    }
    .htl-sidebar {
        display: none;
        background: #ffffff;
        border-radius: 10px;
        padding: 20px;
        margin-bottom: 20px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        animation: slideDownHtl 0.3s ease;
    }
    .htl-sidebar.mobile-open {
        display: block !important;
    }
}

@keyframes slideDownHtl {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.htl-pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 40px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}
.htl-pagination-info {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}
.htl-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.htl-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
}
.htl-page-link:hover {
    border-color: var(--c-primary, #86b817);
    color: var(--c-primary, #86b817);
    background: #f8fafc;
}
.htl-page-link.active {
    background: var(--c-primary, #86b817) !important;
    border-color: var(--c-primary, #86b817) !important;
    color: #ffffff !important;
    font-weight: 700;
}
.htl-page-link.prev, .htl-page-link.next {
    gap: 6px;
    padding: 0 16px;
}
