/* Simple /oteller list page. No JS layout fixes, no viewport hacks. */
.hotels-page {
    background: #f5f6f8;
    padding: 56px 0 64px;
    overflow-x: hidden;
}

.hotels-container {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
}

.hotels-sidebar {
    align-self: start;
    min-width: 0;
    padding: 20px;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 8px;
    background: #fff;
}

.hotels-sidebar-title {
    margin: 0 0 14px;
    color: #172033;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
}

.hotels-category-nav {
    display: grid;
    gap: 2px;
}

.hotels-category-nav a {
    display: block;
    padding: 9px 0;
    border-bottom: 1px solid rgba(17, 24, 39, .06);
    color: #475467;
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
}

.hotels-category-nav a:hover,
.hotels-category-nav a.active {
    color: #b5852b;
    font-weight: 800;
}

.hotels-content {
    min-width: 0;
}

.hotels-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 100%;
}

.hotel-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 8px;
    background: #fff;
}

.hotel-card-image {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #e5e7eb;
}

.hotel-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hotel-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 16px;
}

.hotel-card-title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
}

.hotel-card-title a {
    display: -webkit-box;
    min-height: 46px;
    overflow: hidden;
    color: #172033;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hotel-card-location {
    display: -webkit-box;
    min-height: 20px;
    margin-bottom: 10px;
    overflow: hidden;
    color: #667085;
    font-size: 13px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.hotel-card-desc {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 16px;
    overflow: hidden;
    color: #667085;
    font-size: 14px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hotel-card-desc * {
    display: inline;
    margin: 0;
    padding: 0;
}

.hotel-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.hotel-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 6px;
    background: #b5852b;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.hotel-card-btn:hover {
    color: #fff;
    background: #946b20;
}

.hotel-card-stars {
    display: inline-flex;
    gap: 1px;
    color: #f2b705;
    font-size: 13px;
    line-height: 1;
}

.hotels-pagination {
    margin-top: 32px;
}

@media (max-width: 1199.98px) {
    .hotels-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .hotels-container {
        grid-template-columns: 1fr;
    }

    .hotels-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .hotels-page {
        padding: 36px 0 48px;
    }

    .hotels-container {
        width: min(100% - 28px, 1320px);
    }

    .hotels-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile: compact 2-column chip layout for hotel categories */
@media (max-width: 767.98px) {
    .hotels-sidebar {
        padding: 12px !important;
        border-radius: 12px !important;
        margin: 8px 12px !important;
    }

    .hotels-sidebar-title {
        font-size: 18px !important;
        line-height: 1.2 !important;
        margin-bottom: 10px !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
    }

    .hotels-category-nav {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        align-items: stretch !important;
    }

    .hotels-category-nav a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 8px 10px !important;
        min-height: 40px !important;
        border: 1px solid rgba(181, 137, 59, 0.18) !important;
        border-radius: 10px !important;
        background: #fff !important;
        color: #263140 !important;
        font-size: clamp(12px, 3.2vw, 14px) !important;
        font-weight: 600 !important;
        line-height: 1.15 !important;
        text-align: center !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
        text-decoration: none !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        -webkit-line-clamp: 2 !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
    }

    .hotels-category-nav a:hover,
    .hotels-category-nav a.active {
        background: linear-gradient(135deg, #f6df9a, #c49a32) !important;
        color: #101820 !important;
        border-color: #c49a32 !important;
        font-weight: 700 !important;
    }

    /* remove long bottom borders used in desktop list style */
    .hotels-category-nav a { border-bottom: 0 !important; }
}

.hotel-detail-header .hotel-detail-spot {
    max-width: 820px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, .86);
    font-size: 16px;
    line-height: 1.55;
}

.hotel-detail-page {
    background: #f5f6f8;
    overflow-x: hidden;
}

.hotel-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.hotel-detail-main,
.hotel-detail-side {
    min-width: 0;
}

.hotel-detail-hero {
    width: 100%;
    height: 420px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(17, 24, 39, .08);
    background: #e5e7eb;
}

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

.hotel-detail-titlebar {
    margin: 24px 0;
}

.hotel-detail-titlebar h1 {
    margin: 0 0 8px;
    color: #172033;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0;
}

.hotel-detail-titlebar p {
    max-width: 860px;
    margin: 0;
    color: #667085;
    font-size: 16px;
    line-height: 1.65;
}

.hotel-detail-sections {
    display: grid;
    gap: 18px;
}

.hotel-detail-section {
    padding: 22px;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 8px;
    background: #fff;
}

.hotel-detail-section h2 {
    margin: 0 0 12px;
    color: #172033;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: 0;
}

.hotel-detail-section .page-content {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.75;
}

.hotel-detail-section .page-content p:last-child {
    margin-bottom: 0;
}

.hotel-detail-side {
    position: sticky;
    top: 112px;
}

.hotel-info-card {
    padding: 20px;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 8px;
    background: #fff;
}

.hotel-info-card-title {
    margin-bottom: 14px;
    color: #172033;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 800;
}

.hotel-info-row {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid rgba(17, 24, 39, .07);
    color: #667085;
    font-size: 14px;
    line-height: 1.45;
}

.hotel-info-row strong {
    min-width: 0;
    color: #172033;
    font-weight: 800;
}

.hotel-info-address {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(17, 24, 39, .07);
    color: #667085;
    font-size: 14px;
    line-height: 1.55;
}

.hotel-info-link {
    display: inline-flex;
    margin-top: 10px;
    color: #b5852b;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.hotel-info-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.hotel-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.hotel-gallery-item {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 8px;
    background: #e5e7eb;
    cursor: pointer;
}

.hotel-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 991.98px) {
    .hotel-detail-layout {
        grid-template-columns: 1fr;
    }

    .hotel-detail-side {
        position: static;
    }

    .hotel-detail-hero {
        height: 360px;
    }
}

@media (max-width: 575.98px) {
    .hotel-detail-hero {
        height: 300px;
    }

    .hotel-detail-titlebar h1 {
        font-size: 24px;
    }

    .hotel-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
