/* ==========================================================================
   KRS PUBLIC HOTEL CATALOG STYLES — Estilo Despegar (Multi-Hotel & Ficha)
   Soft UI + Touch UI Standard (AGENTS.md) — Strictly No Glassmorphism
   ========================================================================== */

/* Top Catalog Search Container */
.krs-catalog-wrap { width: 100%; margin-bottom: 24px; box-sizing: border-box; }
.krs-catalog-search-bar {
    display: flex; flex-wrap: wrap; gap: 12px;
    background: #ffffff; padding: 18px 20px;
    border-radius: 18px; border: 1px solid #e2e8f0;
    align-items: flex-end; box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    box-sizing: border-box;
}
.krs-catalog-field { flex: 1 1 170px; min-width: 140px; box-sizing: border-box; }
.krs-catalog-field.krs-field-location { flex: 1.5 1 200px; }
.krs-catalog-field label {
    font-size: 13px; font-weight: 700; color: #2D1A68;
    margin-bottom: 6px; display: flex; align-items: center; gap: 6px;
}
.krs-catalog-field label .dashicons { font-size: 16px; width: 16px; height: 16px; color: #1BA59D; }
.krs-catalog-field select,
.krs-catalog-field input[type="text"] {
    width: 100%; height: 48px; min-height: 48px;
    border: 1px solid #cbd5e1; border-radius: 12px;
    padding: 10px 14px; font-size: 14px; background: #ffffff; color: #1e293b;
    box-sizing: border-box; cursor: pointer;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.krs-catalog-field select:focus,
.krs-catalog-field input[type="text"]:focus {
    border-color: #2D1A68; box-shadow: 0 0 0 3px rgba(45, 26, 104, 0.1); outline: none;
}

/* Catalog Guests Stepper */
.krs-catalog-stepper {
    display: flex; align-items: center; height: 48px; min-height: 48px;
    background: #ffffff; border: 1px solid #cbd5e1; border-radius: 12px;
    overflow: hidden; box-sizing: border-box;
}
.krs-catalog-stepper button {
    width: 48px; height: 48px; min-width: 48px; min-height: 48px;
    background: #f8fafc; border: none; font-size: 20px; font-weight: 700;
    cursor: pointer; color: #2D1A68; display: flex; align-items: center;
    justify-content: center; transition: background 0.15s ease, color 0.15s ease;
    padding: 0; user-select: none;
}
.krs-catalog-stepper button:hover { background: #2D1A68; color: #ffffff; }
.krs-catalog-guests-count {
    flex: 1; text-align: center; font-size: 14px; font-weight: 700;
    color: #2D1A68; padding: 0 4px; white-space: nowrap;
}
.krs-catalog-action { flex: 1 1 150px; min-width: 140px; box-sizing: border-box; }
.krs-catalog-btn-search {
    width: 100%; height: 48px; min-height: 48px; border-radius: 12px;
    font-size: 15px; font-weight: 700; display: flex; align-items: center;
    justify-content: center; gap: 8px; cursor: pointer;
}

/* Filter Tabs */
.krs-catalog-tabs {
    display: flex; gap: 8px; margin-top: 16px;
    border-bottom: 1px solid #e2e8f0; padding-bottom: 8px;
}
.krs-catalog-tab-btn {
    height: 42px; min-height: 42px; padding: 0 18px; border-radius: 24px;
    background: #f1f5f9; border: 1px solid transparent; color: #64748b;
    font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.2s ease;
}
.krs-catalog-tab-btn:hover { background: #e2e8f0; color: #2D1A68; }
.krs-catalog-tab-btn.active {
    background: #2D1A68; color: #ffffff; box-shadow: 0 2px 8px rgba(45, 26, 104, 0.25);
}

/* ==========================================================================
   HOTEL CARDS GRID (Captura 1)
   ========================================================================== */
.krs-catalog-hotels-grid { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
.krs-hotel-card {
    display: flex; background: #ffffff; border: 1px solid #e2e8f0;
    border-radius: 18px; overflow: hidden; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box;
}
.krs-hotel-card:hover {
    transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}
.krs-hotel-card-media {
    position: relative; width: 320px; min-width: 320px;
    background: #f1f5f9; overflow: hidden;
}
.krs-hotel-card-img {
    width: 100%; height: 100%; min-height: 220px; object-fit: cover;
    display: block; transition: transform 0.3s ease;
}
.krs-hotel-card:hover .krs-hotel-card-img { transform: scale(1.03); }
.krs-hotel-card-placeholder {
    width: 100%; height: 100%; min-height: 220px; display: flex;
    align-items: center; justify-content: center; background: #f8fafc; color: #94a3b8;
}
.krs-hotel-card-placeholder .dashicons { font-size: 52px; width: 52px; height: 52px; }
.krs-hotel-top-badge {
    position: absolute; top: 12px; left: 12px; background: #2D1A68;
    color: #ffffff; font-size: 11px; font-weight: 700; padding: 4px 10px;
    border-radius: 8px; text-transform: uppercase; letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.krs-hotel-gallery-badge {
    position: absolute; bottom: 12px; left: 12px;
    background: rgba(15, 23, 42, 0.85); color: #ffffff; font-size: 12px;
    font-weight: 600; padding: 4px 10px; border-radius: 8px;
    display: flex; align-items: center; gap: 6px; border: none; cursor: pointer;
}
.krs-hotel-card-info {
    flex: 1; padding: 20px 22px; display: flex; flex-direction: column;
    justify-content: space-between; box-sizing: border-box;
}
.krs-hotel-card-header { margin-bottom: 8px; }
.krs-hotel-stars { color: #f59e0b; font-size: 15px; letter-spacing: 2px; margin-bottom: 4px; display: block; }
.krs-hotel-card-title {
    margin: 0 0 6px 0; font-size: 20px; font-weight: 800;
    color: #2D1A68; line-height: 1.3;
}
.krs-hotel-rating-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.krs-hotel-score-pill {
    background: #1BA59D; color: #ffffff; font-weight: 800;
    font-size: 14px; padding: 3px 8px; border-radius: 8px; line-height: 1;
}
.krs-hotel-score-label { font-weight: 700; font-size: 14px; color: #2D1A68; }
.krs-hotel-reviews-count { color: #64748b; font-size: 13px; }
.krs-hotel-location-text {
    font-size: 13px; color: #64748b; margin-bottom: 12px;
    display: flex; align-items: center; gap: 4px;
}
.krs-hotel-location-text .dashicons { font-size: 16px; width: 16px; height: 16px; color: #1BA59D; }
.krs-hotel-tags-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.krs-tag-deal {
    background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0;
    font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px;
}
.krs-tag-mobile {
    background: #f3e8ff; color: #7e22ce; border: 1px solid #e9d5ff;
    font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px;
}
.krs-tag-badge {
    background: #f1f5f9; color: #475569; font-size: 11px;
    font-weight: 600; padding: 3px 8px; border-radius: 6px;
}
.krs-hotel-amenities-strip {
    display: flex; flex-wrap: wrap; gap: 12px;
    font-size: 12px; font-weight: 600; color: #475569;
}

/* Hotel Pricing Column */
.krs-hotel-card-pricing {
    width: 240px; min-width: 240px; padding: 20px 22px;
    background: #f8fafc; border-left: 1px solid #e2e8f0;
    display: flex; flex-direction: column; justify-content: space-between;
    align-items: flex-end; text-align: right; box-sizing: border-box;
}
.krs-hotel-stay-desc { font-size: 12px; font-weight: 600; color: #64748b; margin-bottom: 4px; }
.krs-hotel-strikethrough-price {
    font-size: 13px; color: #94a3b8; text-decoration: line-through; margin-bottom: 2px;
}
.krs-hotel-price-block { display: flex; flex-direction: column; align-items: flex-end; }
.krs-hotel-from-label { font-size: 12px; color: #64748b; font-weight: 600; text-transform: uppercase; }
.krs-hotel-final-price { font-size: 26px; font-weight: 800; color: #2D1A68; line-height: 1.1; }
.krs-hotel-tax-note {
    font-size: 11px; color: #10b981; font-weight: 600;
    margin-top: 2px; margin-bottom: 12px;
}
.krs-btn-view-rooms {
    width: 100%; height: 48px; min-height: 48px; border-radius: 12px;
    font-size: 14px; font-weight: 700; cursor: pointer; display: flex;
    align-items: center; justify-content: center; gap: 6px;
}

/* ==========================================================================
   HOTEL DETAIL VIEW & GRANULAR ROOMS (Captura 2)
   ========================================================================== */
.krs-hotel-detail-view { width: 100%; box-sizing: border-box; }
.krs-btn-back-to-catalog {
    display: inline-flex; align-items: center; gap: 8px; height: 44px; min-height: 44px;
    padding: 0 16px; background: #f1f5f9; border: 1px solid #cbd5e1;
    border-radius: 12px; color: #2D1A68; font-size: 13px; font-weight: 700;
    cursor: pointer; margin-bottom: 18px; transition: all 0.2s ease;
}
.krs-btn-back-to-catalog:hover { background: #2D1A68; color: #ffffff; }
.krs-hotel-detail-header {
    background: #ffffff; border: 1px solid #e2e8f0; border-radius: 18px;
    padding: 24px; margin-bottom: 24px; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.krs-hotel-detail-title-wrap {
    display: flex; justify-content: space-between; align-items: flex-start;
    flex-wrap: wrap; gap: 16px; margin-bottom: 16px;
}
.krs-hotel-gallery-strip {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px; margin-top: 16px;
}
.krs-gallery-thumb-wrap {
    position: relative; height: 100px; border-radius: 12px;
    overflow: hidden; cursor: pointer;
}
.krs-gallery-thumb-wrap img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s ease;
}
.krs-gallery-thumb-wrap:hover img { transform: scale(1.05); }
.krs-gallery-more-overlay {
    position: absolute; inset: 0; background: rgba(45, 26, 104, 0.85);
    color: #ffffff; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 15px;
}
.krs-hotel-reviews-callout {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px;
    padding: 16px 20px; margin-top: 16px; font-size: 14px; color: #475569;
    font-style: italic;
}

/* Granular Room Card */
.krs-room-granular-card {
    display: flex; background: #ffffff; border: 1px solid #e2e8f0;
    border-radius: 18px; overflow: hidden; margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04); box-sizing: border-box;
}
.krs-room-granular-media {
    width: 280px; min-width: 280px; position: relative; background: #f1f5f9;
}
.krs-room-granular-media img {
    width: 100%; height: 100%; min-height: 200px; object-fit: cover; display: block;
}
.krs-room-granular-info {
    flex: 1; padding: 20px 22px; display: flex; flex-direction: column;
    justify-content: space-between; box-sizing: border-box;
}
.krs-room-granular-title { margin: 0 0 4px 0; font-size: 18px; font-weight: 800; color: #2D1A68; }
.krs-room-granular-capacity {
    font-size: 13px; font-weight: 600; color: #64748b; margin-bottom: 12px;
}

/* Granular Amenities Checklist (Checks & Crosses) */
.krs-granular-amenities-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px 12px; margin-bottom: 12px;
}
.krs-granular-amenity-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600;
}
.krs-granular-amenity-item.included { color: #1e293b; }
.krs-granular-amenity-item.not-included { color: #94a3b8; text-decoration: line-through; }
.krs-amenity-status-icon { font-size: 14px; line-height: 1; }

.krs-room-granular-pricing {
    width: 230px; min-width: 230px; padding: 20px 22px; background: #f8fafc;
    border-left: 1px solid #e2e8f0; display: flex; flex-direction: column;
    justify-content: space-between; align-items: flex-end; text-align: right;
    box-sizing: border-box;
}
.krs-btn-book-room {
    width: 100%; height: 48px; min-height: 48px; border-radius: 12px;
    font-size: 15px; font-weight: 700; cursor: pointer; display: flex;
    align-items: center; justify-content: center;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .krs-catalog-search-bar { flex-direction: column; align-items: stretch; }
    .krs-catalog-field, .krs-catalog-action { width: 100%; flex: 1 1 100%; }
    .krs-hotel-card, .krs-room-granular-card { flex-direction: column; }
    .krs-hotel-card-media, .krs-room-granular-media { width: 100%; min-width: 100%; height: 220px; }
    .krs-hotel-card-pricing, .krs-room-granular-pricing {
        width: 100%; min-width: 100%; border-left: none;
        border-top: 1px solid #e2e8f0; align-items: stretch; text-align: center;
    }
    .krs-hotel-price-block { align-items: center; margin-bottom: 12px; }
    .krs-granular-amenities-grid { grid-template-columns: 1fr; }
}
