/* Nash-Yug — mobile layout overflow fix (2026-12-04)
   Root cause: wide 16-column pricing tables inflate CSS Grid columns under
   `.detail-main { display: contents }`, and carousel slides overflow containers. */

html, body { overflow-x: clip; }
@supports not (overflow-x: clip) { html, body { overflow-x: hidden; } }

.container, .detail-container, .page-content {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.detail-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
}

.card-box {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.pricing-table-wrap {
    overflow-x: auto !important;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

details.pricing-details {
    min-width: 0;
    width: 100%;
}

.pricing-table {
    min-width: 600px;
}

@media (max-width: 900px) {
    .detail .detail-grid { grid-template-columns: minmax(0, 1fr) !important; }
    .detail .detail-grid > * { min-width: 0; max-width: 100%; }
}

@media (max-width: 768px) {
    .hotel-gallery { width: 100%; min-width: 0; overflow: hidden; }
    .gallery-carousel { max-width: 100%; margin: 0; }
}