.hotel-ai-summary { position: relative; display: inline-block; margin: .5rem 0; font-size: 14px; text-align: left; }
.hotel-ai-summary > summary { color: #225c86; background: #eef6fc; border: 1px solid #bdd7eb; border-radius: 6px; padding: 7px 10px; cursor: pointer; list-style: none; font-weight: 600; }
.hotel-ai-summary > summary::-webkit-details-marker { display: none; }
.hotel-ai-summary > summary:focus-visible { outline: 3px solid #225c86; outline-offset: 3px; }
.hotel-ai-summary__panel { box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain; overflow-anchor: none; width: min(390px, calc(100vw - 40px)); padding: 16px; background: #fff; color: #263440; border: 1px solid #cbd8e2; border-radius: 8px; box-shadow: 0 8px 30px #0002; line-height: 1.6; }
.hotel-ai-summary__panel p { font-size: 14px; line-height: 1.6; margin: 0 0 10px; }
.hotel-ai-summary__panel ul { padding-left: 20px; margin: 6px 0 12px; }
.hotel-ai-summary__panel small { color: #52616c; }
.hotel-ai-summary__feedback { margin-top: 14px; }
.hotel-ai-summary__feedback--pros { --feedback-color: #24713e; }
.hotel-ai-summary__feedback--cons { --feedback-color: #a34c00; }
.hotel-ai-summary__heading { display: block; color: var(--feedback-color); }
.hotel-ai-summary__feedback ul { list-style: none; padding: 0; margin: 6px 0 12px; }
.hotel-ai-summary__feedback li { display: flex; align-items: flex-start; gap: 9px; margin: 6px 0; }
.hotel-ai-summary__icon { flex: 0 0 18px; color: var(--feedback-color); font-size: 18px; font-weight: 700; line-height: 1.25; text-align: center; }
.hotel-ai-summary__feedback li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.hotel-card { position: relative; }
.hotel-card > .hotel-ai-summary { position: absolute; top: 15px; left: 115px; max-width: calc(100% - 130px); z-index: 3; margin: 0; }
.hotel-card > .hotel-ai-summary[open] { z-index: 20; }
.hotel-card > .hotel-ai-summary > .hotel-ai-summary__panel { left: -100px; max-width: calc(100vw - 40px); }
.hotel-ai-summary[open] > .hotel-ai-summary__panel { position: fixed; z-index: 10000; top: 16px; left: 16px; max-height: calc(100vh - 32px); }
@media (max-width: 600px) {
    .hotel-ai-summary[open] > .hotel-ai-summary__panel { position: fixed; top: auto; bottom: 16px; left: 16px; right: 16px; width: auto; max-height: 65vh; overflow-y: auto; z-index: 10000; }
}

.hotel-guest-rating { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px; }
.hotel-guest-rating .rating { margin-bottom: 0; }
.hotel-ai-summary--detail > summary { text-align: center; min-height: 40px; padding: 9px 14px; }
.hotel-ai-summary--detail > summary:hover, .hotel-ai-summary--detail[open] > summary { background: #dceefb; border-color: #8cb8d8; }
.hotel-ai-summary__title { display: block; margin-bottom: 8px; }
.hotel-ai-summary--detail[open] > .hotel-ai-summary__panel {
    position: absolute; z-index: 25; top: 100%; bottom: auto; left: 50%; right: auto; transform: translateX(-50%);
    width: min(390px, calc(100vw - 40px)); max-height: 60vh;
}
@media (max-width: 767px) {
    .hotel-guest-rating { align-items: center; flex-direction: column; }
    .hotel-ai-summary--detail { max-width: 100%; }
    .hotel-ai-summary--detail[open] > .hotel-ai-summary__panel { position: static; transform: none; width: min(390px, 100%); }
}
