/*
 * RoomSuite - Frontend styles
 */

.rs-app {
    --rs-cream: #F2EDE4;
    --rs-ink: #1A1714;
    --rs-accent: #C65D3F;
    --rs-muted: #5A5349;
    --rs-muted-2: #8B7F6B;
    --rs-line: #D4CBB8;
    --rs-ok: #4A6B3F;
    --rs-mono: 'SF Mono', Menlo, Consolas, monospace;
    --rs-serif: Georgia, 'Times New Roman', serif;
    --rs-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-family: var(--rs-sans);
    color: var(--rs-ink);
    max-width: 1280px;
    margin: 0 auto;
}

.rs-app *, .rs-app *::before, .rs-app *::after { box-sizing: border-box; }

/* HERO */
.rs-app .rs-hero {
    background: linear-gradient(135deg, #4A3D32 0%, #1A1714 100%);
    background-size: cover;
    background-position: center;
    color: white;
    padding: 70px 30px 100px;
    text-align: center;
    position: relative;
    border-radius: 4px;
    margin-bottom: 30px;
}
.rs-app .rs-hero-inner { max-width: 900px; margin: 0 auto; }
.rs-app .rs-hero-eyebrow {
    font-family: var(--rs-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: #E8D5C8;
    font-weight: 600;
    margin-bottom: 14px;
}
.rs-app .rs-hero-title {
    font-family: var(--rs-serif);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 400;
    margin: 0 0 14px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.rs-app .rs-hero-sub {
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
}

.rs-app .rs-search-form {
    background: white;
    border-radius: 4px;
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 10px;
    align-items: end;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    max-width: 900px;
    margin: 30px auto 0;
    text-align: left;
}
@media (max-width: 720px) {
    .rs-app .rs-search-form { grid-template-columns: 1fr 1fr; }
}
.rs-app .rs-search-field { display: flex; flex-direction: column; }
.rs-app .rs-search-field label {
    font-family: var(--rs-mono);
    font-size: 9px;
    letter-spacing: 0.15em;
    color: var(--rs-muted-2);
    font-weight: 600;
    margin-bottom: 4px;
}
.rs-app .rs-search-field input,
.rs-app .rs-search-field select {
    padding: 10px 12px;
    border: 1px solid var(--rs-line);
    border-radius: 3px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    color: var(--rs-ink);
    width: 100%;
}
.rs-app .rs-search-field input:focus,
.rs-app .rs-search-field select:focus {
    outline: none;
    border-color: var(--rs-accent);
    box-shadow: 0 0 0 2px rgba(198, 93, 63, 0.15);
}
.rs-app .rs-search-btn {
    padding: 11px 24px;
    background: var(--rs-accent);
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.01em;
    grid-column: span 1;
    transition: background 0.15s;
}
@media (max-width: 720px) {
    .rs-app .rs-search-btn { grid-column: span 2; }
}
.rs-app .rs-search-btn:hover { background: #B04F35; }

/* RESULTS */
.rs-app .rs-results { padding: 30px; }
.rs-app .rs-results-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 14px;
}
.rs-app .rs-eyebrow-fg {
    font-family: var(--rs-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--rs-accent);
    font-weight: 700;
    margin-bottom: 6px;
}
.rs-app .rs-results-title {
    font-family: var(--rs-serif);
    font-size: 28px;
    font-weight: 500;
    color: var(--rs-ink);
    margin: 0;
}
.rs-app .rs-link-change {
    background: none;
    border: none;
    color: var(--rs-muted-2);
    font-family: var(--rs-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    cursor: pointer;
    padding: 0;
}
.rs-app .rs-link-change:hover { color: var(--rs-accent); }

.rs-app .rs-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.rs-app .rs-room-result {
    background: white;
    border: 1px solid var(--rs-line);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
}
.rs-app .rs-room-result:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
    border-color: var(--rs-accent);
}
.rs-app .rs-rr-img {
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    background-color: var(--rs-cream);
    position: relative;
    cursor: pointer;
}
.rs-app .rs-rr-img-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--rs-accent);
    color: white;
    padding: 4px 10px;
    border-radius: 2px;
    font-family: var(--rs-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    font-weight: 700;
}
.rs-app .rs-rr-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
.rs-app .rs-rr-name {
    font-family: var(--rs-serif);
    font-size: 21px;
    font-weight: 500;
    margin: 0 0 6px;
    color: var(--rs-ink);
    line-height: 1.2;
}
.rs-app .rs-rr-short { font-size: 13px; color: var(--rs-muted); line-height: 1.5; margin: 0 0 12px; }
.rs-app .rs-rr-meta {
    font-family: var(--rs-mono);
    font-size: 11px;
    color: var(--rs-muted-2);
    margin-bottom: 10px;
    letter-spacing: 0.03em;
}
.rs-app .rs-rr-rating {
    color: #D4A343;
    font-size: 13px;
    margin-bottom: 10px;
}
.rs-app .rs-rr-rating .rs-rating-count { color: var(--rs-muted-2); font-size: 12px; margin-left: 6px; }
.rs-app .rs-rr-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.rs-app .rs-rr-amenity {
    font-family: var(--rs-mono);
    font-size: 10px;
    padding: 3px 8px;
    background: var(--rs-cream);
    border-radius: 2px;
    color: var(--rs-muted);
    letter-spacing: 0.02em;
}
.rs-app .rs-rr-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 12px 0;
    border-top: 1px solid var(--rs-line);
    margin-top: auto;
}
.rs-app .rs-rr-price {
    font-family: var(--rs-mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--rs-ink);
    line-height: 1;
}
.rs-app .rs-rr-price-sub { font-size: 11px; color: var(--rs-muted-2); margin-top: 4px; }
.rs-app .rs-rr-price-nightly {
    font-family: var(--rs-mono);
    font-size: 12px;
    color: var(--rs-muted-2);
    margin-top: 2px;
}
.rs-app .rs-rr-actions { display: flex; gap: 8px; }
.rs-app .rs-btn-details {
    flex: 0 0 auto;
    padding: 10px 14px;
    background: white;
    border: 1px solid var(--rs-line);
    border-radius: 3px;
    color: var(--rs-ink);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
}
.rs-app .rs-btn-details:hover { border-color: var(--rs-accent); color: var(--rs-accent); }
.rs-app .rs-btn-reserve {
    flex: 1;
    padding: 10px 14px;
    background: var(--rs-accent);
    color: white;
    border: none;
    border-radius: 3px;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    font-weight: 700;
}
.rs-app .rs-btn-reserve:hover { background: #B04F35; }

.rs-app .rs-results-empty {
    background: white;
    border: 1px dashed var(--rs-line);
    border-radius: 4px;
    padding: 50px 24px;
    text-align: center;
}
.rs-app .rs-empty-icon { font-size: 42px; color: var(--rs-line); margin-bottom: 14px; }
.rs-app .rs-results-empty h3 { font-family: var(--rs-serif); font-size: 22px; color: var(--rs-ink); margin: 0 0 8px; }

/* Location block */
.rs-app .rs-location-block {
    padding: 30px;
    background: var(--rs-cream);
    border-radius: 4px;
    margin-top: 30px;
}
.rs-app .rs-location-block h2 { font-family: var(--rs-serif); font-size: 28px; margin: 0 0 6px; font-weight: 500; }
.rs-app .rs-address { color: var(--rs-muted); margin: 0 0 20px; }
.rs-app .rs-map-embed { border-radius: 3px; overflow: hidden; border: 1px solid var(--rs-line); }

/* MODAL */
.rs-app .rs-modal {
    position: fixed;
    inset: 0;
    background: rgba(26, 23, 20, 0.75);
    z-index: 99990;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
}
.rs-app .rs-modal-inner {
    background: white;
    border-radius: 4px;
    max-width: 720px;
    width: 100%;
    padding: 32px;
    position: relative;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}
.rs-app .rs-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--rs-cream);
    border: none;
    font-size: 14px;
    cursor: pointer;
    color: var(--rs-muted);
}
.rs-app .rs-modal-close:hover { background: var(--rs-accent); color: white; }

/* Detail modal */
.rs-app .rs-detail-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 6px;
    margin-bottom: 20px;
    max-height: 400px;
}
.rs-app .rs-detail-gallery .rs-detail-main,
.rs-app .rs-detail-gallery .rs-detail-thumb {
    aspect-ratio: auto;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    border-radius: 3px;
    min-height: 200px;
}
.rs-app .rs-detail-thumbs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.rs-app .rs-detail-name {
    font-family: var(--rs-serif);
    font-size: 28px;
    margin: 0 0 6px;
    font-weight: 500;
    color: var(--rs-ink);
}
.rs-app .rs-detail-meta {
    font-family: var(--rs-mono);
    font-size: 12px;
    color: var(--rs-muted-2);
    margin-bottom: 14px;
}
.rs-app .rs-detail-body {
    font-size: 14px;
    color: var(--rs-muted);
    line-height: 1.6;
    margin: 0 0 20px;
}
.rs-app .rs-detail-amenities-title {
    font-family: var(--rs-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--rs-accent);
    margin-bottom: 10px;
}
.rs-app .rs-detail-amenities {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 6px;
    margin-bottom: 20px;
}
.rs-app .rs-detail-amenity {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--rs-muted);
}
.rs-app .rs-detail-policy {
    background: var(--rs-cream);
    padding: 14px 16px;
    border-radius: 3px;
    font-size: 13px;
    color: var(--rs-muted);
    line-height: 1.5;
    margin: 0 0 20px;
}
.rs-app .rs-detail-policy strong { color: var(--rs-ink); }

/* Book modal */
.rs-app .rs-book-form .rs-field { margin-bottom: 14px; }
.rs-app .rs-book-form label {
    display: block;
    font-family: var(--rs-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--rs-muted-2);
    margin-bottom: 6px;
    font-weight: 600;
}
.rs-app .rs-book-form input,
.rs-app .rs-book-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--rs-line);
    border-radius: 3px;
    font-size: 14px;
    font-family: inherit;
    background: white;
}
.rs-app .rs-book-form input:focus,
.rs-app .rs-book-form textarea:focus {
    outline: none;
    border-color: var(--rs-accent);
    box-shadow: 0 0 0 2px rgba(198, 93, 63, 0.1);
}

.rs-app .rs-book-summary {
    background: var(--rs-cream);
    padding: 14px 16px;
    border-radius: 3px;
    margin: 14px 0 18px;
    font-family: var(--rs-mono);
    font-size: 13px;
    color: var(--rs-muted);
}

.rs-app .rs-book-totals {
    background: white;
    border: 2px solid var(--rs-ink);
    padding: 16px;
    border-radius: 3px;
    margin: 20px 0;
}
.rs-app .rs-book-totals-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--rs-mono);
    font-size: 13px;
    color: var(--rs-muted);
    padding: 4px 0;
}
.rs-app .rs-book-totals-total {
    border-top: 1px solid var(--rs-line);
    padding-top: 10px;
    margin-top: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--rs-ink);
}
.rs-app .rs-book-totals-deposit {
    font-size: 11px;
    color: var(--rs-accent);
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed var(--rs-line);
}

.rs-app .rs-book-submit {
    width: 100%;
    padding: 14px;
    background: var(--rs-accent);
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.01em;
}
.rs-app .rs-book-submit:hover { background: #B04F35; }
.rs-app .rs-book-submit:disabled { opacity: 0.6; cursor: wait; }
.rs-app .rs-book-note {
    font-size: 12px;
    color: var(--rs-muted-2);
    text-align: center;
    margin: 10px 0 0;
    line-height: 1.5;
}

.rs-app .rs-book-success { text-align: center; padding: 20px 0; }
.rs-app .rs-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--rs-ok);
    color: white;
    font-size: 32px;
    margin-bottom: 18px;
}
.rs-app .rs-booking-number {
    margin-bottom: 6px;
    font-family: var(--rs-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--rs-accent);
    font-weight: 700;
}
.rs-app .rs-book-success h2 {
    font-family: var(--rs-serif);
    font-size: 28px;
    color: var(--rs-ink);
    margin: 0 0 10px;
    font-weight: 500;
}
.rs-app .rs-book-success p { color: var(--rs-muted); max-width: 420px; margin: 0 auto; line-height: 1.5; }

/* Guarantee card block (booking modal) */
.rs-app .rs-guarantee-block {
    margin: 20px 0;
    padding: 20px;
    background: #FAF6ED;
    border: 1px solid var(--rs-line);
    border-left: 3px solid var(--rs-accent);
    border-radius: 3px;
}
.rs-app .rs-guarantee-head { margin-bottom: 16px; }
.rs-app .rs-guarantee-title {
    font-family: var(--rs-serif);
    font-size: 18px;
    margin: 4px 0 6px;
    color: var(--rs-ink);
    font-weight: 500;
}
.rs-app .rs-guarantee-sub {
    font-size: 13px;
    color: var(--rs-muted);
    line-height: 1.55;
    margin: 0;
}
.rs-app .rs-stripe-card-wrap {
    background: white;
    padding: 14px 16px;
    border: 1px solid var(--rs-line);
    border-radius: 3px;
    margin: 14px 0 10px;
}
.rs-app .rs-stripe-mount { min-height: 28px; }
.rs-app .rs-stripe-errors,
.rs-app .rs-card-error {
    color: var(--rs-accent);
    font-size: 13px;
    padding: 8px 10px;
    margin: 8px 0;
    background: #FFF4EF;
    border-radius: 3px;
    border-left: 3px solid var(--rs-accent);
}
.rs-app .rs-terms-check {
    margin: 14px 0 0;
    padding: 10px 12px;
    background: white;
    border: 1px solid var(--rs-line);
    border-radius: 3px;
}
.rs-app .rs-terms-check label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    color: var(--rs-muted);
    letter-spacing: 0;
    text-transform: none;
    font-weight: 400;
    margin: 0;
    line-height: 1.5;
}
.rs-app .rs-terms-check input[type="checkbox"] {
    width: auto;
    margin: 3px 0 0;
    flex-shrink: 0;
}
.rs-app .rs-terms-check a {
    color: var(--rs-accent);
    text-decoration: underline;
    font-weight: 600;
}

/* Lightbox */
.rs-app .rs-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.rs-app .rs-lb-close,
.rs-app .rs-lb-prev,
.rs-app .rs-lb-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rs-app .rs-lb-close:hover,
.rs-app .rs-lb-prev:hover,
.rs-app .rs-lb-next:hover { background: rgba(255, 255, 255, 0.25); }
.rs-app .rs-lb-close { top: 20px; right: 20px; }
.rs-app .rs-lb-prev { left: 20px; top: 50%; transform: translateY(-50%); font-size: 32px; }
.rs-app .rs-lb-next { right: 20px; top: 50%; transform: translateY(-50%); font-size: 32px; }
.rs-app #rs-lb-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 3px;
}

/* Reviews widget */
.rs-reviews-widget {
    padding: 30px;
    font-family: var(--rs-sans, -apple-system, sans-serif);
    max-width: 1280px;
    margin: 0 auto;
}
.rs-reviews-widget-head { text-align: center; margin-bottom: 24px; }
.rs-reviews-widget-head .rs-eyebrow-fg {
    font-family: 'SF Mono', Menlo, monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: #C65D3F;
    font-weight: 700;
    margin-bottom: 6px;
}
.rs-reviews-widget-head h2 {
    font-family: Georgia, serif;
    font-size: 32px;
    color: #1A1714;
    margin: 0;
    font-weight: 500;
}
.rs-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}
.rs-review-item {
    background: white;
    border: 1px solid #D4CBB8;
    border-top: 3px solid #C65D3F;
    border-radius: 3px;
    padding: 20px 22px;
}
.rs-review-item .rs-review-stars {
    color: #D4A343;
    font-size: 16px;
    margin-bottom: 10px;
}
.rs-review-title {
    font-family: Georgia, serif;
    font-size: 16px;
    color: #1A1714;
    margin: 0 0 8px;
    font-weight: 500;
}
.rs-review-body {
    font-size: 14px;
    color: #5A5349;
    line-height: 1.6;
    margin: 0 0 14px;
    font-style: italic;
}
.rs-review-author {
    font-family: 'SF Mono', Menlo, monospace;
    font-size: 11px;
    color: #8B7F6B;
    letter-spacing: 0.03em;
}
.rs-review-author strong { color: #1A1714; }
.rs-review-country { margin-left: 6px; }
