/* Fichas compartidas por la web y la vista previa del panel. */
.booking-results-section { background: #f3efe6; padding: 1.5rem 0; }
.booking-results-section:has(.booking-results:empty) { display: none; }
.booking-results { max-width: 960px; width: 100%; margin: 0 auto; padding: 0; text-align: left; scroll-margin-top: 85px; }
.room-results-header, .booking-message { background: #fffdf5; color: #30251e; border-radius: 8px; padding: .8rem 1rem; }
.room-results-header { margin-bottom: 1rem; }
.room-results-header h2 { margin: 0 0 .35rem; font: 600 1.2rem Georgia, serif; color: #432a22; }
.room-results-header p { margin: 0; font-size: .8rem; }
.room-card { display: grid; grid-template-columns: 210px minmax(0, 1fr) 190px; gap: 1rem; padding: .75rem; margin-bottom: .65rem; border: 1px solid #e2d8c8; border-radius: 10px; background: #fffdf7; color: #33291f; box-shadow: 0 2px 8px #25181008; text-align: left; font-family: Arial, sans-serif; font-size: 13px; line-height: 1.5; }
.room-card * { box-sizing: border-box; }
.room-gallery { position: relative; min-width: 0; min-height: 155px; overflow: hidden; border-radius: 10px; background: #e9e2d5; color: #5e5244; touch-action: pan-y; }
.room-photo-open { display: block; padding: 0; border: 0; width: 100%; height: 100%; min-height: 155px; background: transparent; cursor: zoom-in; }
.room-photo-open img { width: 100%; height: 100%; min-height: 155px; aspect-ratio: 4/3; display: block; object-fit: cover; }
.room-photo-open img[hidden] { display: none; }
.room-photo-empty { display: grid; place-items: center; height: 100%; min-height: 155px; background: linear-gradient(135deg, #efe9dc, #ddd1bb); font-size: .9rem; }
.room-photo-count { position: absolute; bottom: 10px; right: 10px; padding: 3px 10px; border-radius: 20px; background: #21170ecc; color: white; font-size: 12px; pointer-events: none; }
.room-photo-arrow { position: absolute; top: 50%; transform: translateY(-50%); border: 1px solid #ffffff99; border-radius: 50%; width: 32px; height: 32px; padding: 0; background: #fffdf5ee; color: #48261e; font-size: 23px; line-height: 1; cursor: pointer; }
.room-photo-arrow.is-prev { left: 8px; } .room-photo-arrow.is-next { right: 8px; }
.room-card-info { padding: .5rem 0; min-width: 0; overflow-wrap: anywhere; }
.room-eyebrow { color: #7a5a39; font-size: 10px; letter-spacing: .12em; margin: 0 0 .45rem; }
.room-card h3 { font: 600 1.3rem Georgia, serif; margin: 0 0 .5rem; color: #672c25; }
.room-capacity, .room-beds { margin: .35rem 0; }
.room-amenities { display: flex; flex-wrap: wrap; list-style: none; gap: .4rem; padding: 0; margin: .9rem 0; }
.room-amenities li { border: 1px solid #dce1d0; background: #f0f3e9; color: #3d5034; border-radius: 6px; padding: 3px 8px; font-size: 12px; }
.room-details summary { color: #6d3329; cursor: pointer; font-weight: 600; padding: .4rem 0; }
.room-details p { white-space: pre-line; }
.room-card-actions { border-left: 1px solid #e8dfd1; padding: .5rem 0 .5rem 1.15rem; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: .4rem; overflow-wrap: anywhere; }
.room-stay, .room-rate { color: #695b4d; font-size: 12px; }
.room-total { font-size: 22px; color: #572820; }
.room-consult-price { font-size: 15px; color: #572820; }
.room-reserve { display: inline-block; margin-top: .35rem; padding: .5rem .85rem; border-radius: 6px; background: #672c25; color: #fffaf0; text-decoration: none; font-size: 12px; font-weight: 600; }
.room-reserve:hover { background: #49201b; color: white; }
.room-lightbox { border: 0; border-radius: 10px; background: #fffdf7; color: #33291f; padding: 1rem; width: min(960px, 94vw); max-height: 95dvh; }
.room-lightbox::backdrop { background: #150e0be8; }
.room-lightbox h2 { font: 1.4rem Georgia, serif; padding-right: 100px; }
.room-lightbox .room-gallery { height: min(70dvh, 650px); }
.room-lightbox .room-photo-open { cursor: default; }
.room-lightbox img { object-fit: contain; aspect-ratio: auto; }
.room-lightbox-close { float: right; border: 1px solid #cdbca9; background: transparent; border-radius: 6px; padding: .65rem; cursor: pointer; color: #432a22; }
.room-card button:focus-visible, .room-card a:focus-visible, .room-card summary:focus-visible, .room-lightbox button:focus-visible { outline: 3px solid #b87527; outline-offset: 3px; }
.room-admin-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1rem; margin: .8rem 0; border: 1px solid var(--border, #555); border-radius: 12px; }
.room-admin-row h3, .room-admin-row p { margin: .3rem 0; }
.room-editor fieldset { border: 0; padding: 0; min-width: 0; }
.room-editor legend { font-size: 1.4rem; font-weight: bold; margin-bottom: 1rem; }
.room-editor-field { display: grid; gap: .5rem; margin: 1rem 0; }
.room-editor input:not([type=checkbox]), .room-editor textarea { width: 100%; padding: .75rem; border: 1px solid #746858; border-radius: 8px; background: #fffdf5; color: #30251e; font: inherit; }
.room-editor textarea { min-height: 100px; resize: vertical; }
.room-editor-toggle { display: flex; gap: .7rem; align-items: center; }
.room-editor-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; margin: 1rem 0; }
.room-editor-photo { display: grid; gap: .6rem; padding: .7rem; border: 1px solid #746858; border-radius: 10px; }
.room-editor-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
.room-editor-photo-actions, .room-editor-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.room-editor-status { min-height: 1.5em; margin: 1rem 0; }
.room-editor-preview { margin-top: 1.5rem; }
.room-editor-preview .room-card { grid-template-columns: minmax(160px, 28%) minmax(0, 1fr); }
.room-editor-preview .room-card-actions { grid-column: 1/-1; border-left: 0; border-top: 1px solid #e8dfd1; }
@media (max-width: 850px) {
  .room-card { grid-template-columns: minmax(170px, 36%) minmax(0, 1fr); }
  .room-card-actions { grid-column: 1/-1; flex-direction: column; align-items: center; justify-content: center; border-left: 0; border-top: 1px solid #e8dfd1; padding: 1rem 0 0; text-align: center; }

}
@media (max-width: 560px) {
  .room-card, .room-editor-preview .room-card { grid-template-columns: minmax(0, 1fr); gap: .75rem; padding: .75rem; }
  .room-gallery, .room-photo-open, .room-photo-open img { min-height: 180px; }
  .room-card .room-photo-open img { height: 180px; }
  .room-card-info { padding: .25rem; }
  .room-reserve { width: auto; min-height: 36px; text-align: center; }
  .room-admin-row { align-items: start; flex-direction: column; }
  .room-results-header h2 { font-size: 1.25rem; }
}

.room-card > .room-gallery { align-self: start; height: 155px; }
.room-card .room-photo-open img { height: 155px; aspect-ratio: auto; }
.room-card-actions > * { max-width: 100%; }
@media (max-width: 560px) {
  .room-card > .room-gallery, .room-card .room-photo-open img { height: 180px; }
}

.room-conditions { margin-top: 1.25rem; padding: 1rem .5rem .25rem; border-top: 1px solid #ddd4c5; color: #695b4d; }
.room-conditions h3 { margin: 0 0 .9rem; font: 600 12px Arial, sans-serif; text-align: center; }
.room-conditions-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.room-conditions-list li { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; font: 11px/1.5 Arial, sans-serif; }
.room-conditions-list img { display: block; width: 36px; height: 36px; object-fit: contain; }
.room-conditions-list span { max-width: 135px; }
@media (max-width: 700px) { .room-conditions-list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.25rem; } }
@media (max-width: 380px) { .room-conditions-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
