/* Hotel Cards Grid — rendered from SSE metadata.hotel_search */

/* When a bubble contains hotel cards, expand it to fill the chat width */
.bubble:has(.hotel-cards-wrapper) {
    max-width: 100% !important;
    width: 100%;
}

.hotel-cards-wrapper {
    margin: 14px 0 4px;
    font-family: inherit;
}

.hotel-cards-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 4px;
}

.hotel-cards-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #e2e8f0;
}

.hotel-cards-meta {
    font-size: 0.78rem;
    color: #94a3b8;
}

.hotel-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
}

.hotel-card {
    background: #1e293b;
    border: 1px solid #2d3748;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.hotel-card:hover {
    border-color: #4a5568;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.hotel-card-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    background: #0f172a;
}

.hotel-card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: #0f172a;
    color: #4a5568;
}

.hotel-card-body {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 5px;
}

.hotel-card-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: #e2e8f0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hotel-card-meta-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hotel-card-stars {
    font-size: 0.72rem;
    color: #94a3b8;
}

.hotel-card-rating {
    font-size: 0.78rem;
    color: #a0aec0;
}

.hotel-card-reviews {
    color: #718096;
    font-size: 0.72rem;
}

.hotel-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 6px;
    border-top: 1px solid #2d3748;
}

.hotel-card-price {
    font-weight: 700;
    font-size: 0.9rem;
    color: #68d391;
}

.hotel-card-price-label {
    font-weight: 400;
    font-size: 0.72rem;
    color: #94a3b8;
    margin-left: 2px;
}

.hotel-card-book {
    font-size: 0.78rem;
    color: #63b3ed;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.15s;
}

.hotel-card-book:hover {
    color: #90cdf4;
    text-decoration: underline;
}

/* Responsive: 2 columns on narrow containers */
@media (max-width: 520px) {
    .hotel-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hotel-card-img {
        height: 90px;
    }
}

/* OTA booking rows (inside expand drawer) */
.hotel-ota-drawer {
    border-top: 1px solid #2d3748;
    margin-top: 6px;
    padding-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hotel-ota-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 6px;
    border-radius: 6px;
    font-size: 0.75rem;
    text-decoration: none;
    color: #e2e8f0;
    background: #0f172a;
    border: 1px solid #2d3748;
    transition: border-color 0.12s, background 0.12s;
    gap: 6px;
}

a.hotel-ota-row:hover {
    border-color: #63b3ed;
    background: #1a2744;
}

.hotel-ota-row--nolink {
    opacity: 0.7;
    cursor: default;
}

.hotel-ota-row-source {
    font-weight: 600;
    color: #cbd5e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
    flex-shrink: 0;
}

.hotel-ota-row-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.hotel-ota-row-rate {
    font-weight: 700;
    color: #68d391;
    white-space: nowrap;
}

.hotel-ota-total {
    font-size: 0.68rem;
    color: #718096;
    white-space: nowrap;
}

.hotel-ota-cancel {
    font-size: 0.68rem;
    color: #48bb78;
    white-space: nowrap;
}

.hotel-ota-row-arrow {
    color: #63b3ed;
    font-size: 0.8rem;
}

.hotel-ota-empty {
    font-size: 0.75rem;
    color: #718096;
    padding: 4px 0;
    text-align: center;
}

/* Compare prices button */
.hotel-compare-btn {
    margin-top: 6px;
    width: 100%;
    background: transparent;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #63b3ed;
    font-size: 0.74rem;
    font-weight: 500;
    padding: 5px 0;
    cursor: pointer;
    transition: border-color 0.12s, color 0.12s, background 0.12s;
    text-align: center;
}

.hotel-compare-btn:hover:not(:disabled) {
    border-color: #63b3ed;
    background: #1a2744;
}

.hotel-compare-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

/* Amenity pills */
.hotel-amenity-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}

.hotel-amenity-pill {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.66rem;
    color: #94a3b8;
    white-space: nowrap;
}

.hotel-amenity-more {
    font-size: 0.66rem;
    color: #4a5568;
    align-self: center;
    white-space: nowrap;
}

/* Quick link icons (🔍 🗺) */
.hotel-quick-links {
    display: flex;
    gap: 6px;
    align-items: center;
}

.hotel-quick-link {
    font-size: 0.74rem;
    text-decoration: none;
    color: #63b3ed;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.12s;
    line-height: 1;
}

.hotel-quick-link:hover {
    color: #90cdf4;
    text-decoration: underline;
}
