/* ==========================================================================
   Rueban Stay Core — Shortcode Styles
   Loaded by the plugin so shortcodes render correctly with any active theme.
   ========================================================================== */

/* Brand variables (safe to re-declare — same values as the child theme) */
:root {
    --rs-primary:        #44027C;
    --rs-primary-dark:   #2e0157;
    --rs-primary-light:  #6b2fa0;
    --rs-secondary:      #0566B7;
    --rs-secondary-dark: #044d8a;
    --rs-text:           #1a1a1a;
    --rs-text-light:     #555555;
    --rs-bg-light:       #f8f5fc;
    --rs-bg-white:       #ffffff;
    --rs-border:         #e0d6eb;
    --rs-radius:         8px;
    --rs-radius-lg:      16px;
    --rs-shadow:         0 2px 12px rgba(68, 2, 124, 0.10);
    --rs-shadow-hover:   0 6px 24px rgba(68, 2, 124, 0.18);
    --rs-transition:     all 0.25s ease;
}

/* ==========================================================================
   Book Now Button
   ========================================================================== */

.btn-book-now {
    display: inline-block;
    background: linear-gradient(135deg, var(--rs-primary), var(--rs-secondary)) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 0.75rem 2rem !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    text-decoration: none;
    transition: var(--rs-transition) !important;
    box-shadow: 0 4px 15px rgba(68, 2, 124, 0.25);
}

.btn-book-now:hover {
    box-shadow: 0 8px 25px rgba(68, 2, 124, 0.4) !important;
    transform: translateY(-3px) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Booking Form Buttons — Apply / Back / Proceed to Payment
   Brown palette matched to header (#5c2d1e)
   ========================================================================== */

#rs-apply-coupon-btn.button-secondary {
    background: #5c2d1e !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background 0.2s ease !important;
    box-shadow: none !important;
}

#rs-apply-coupon-btn.button-secondary:hover {
    background: #7a3d29 !important;
    color: #ffffff !important;
}

#rs-back-btn.button-secondary {
    background: transparent !important;
    color: #5c2d1e !important;
    border: 2px solid #5c2d1e !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

#rs-back-btn.button-secondary:hover {
    background: #5c2d1e !important;
    color: #ffffff !important;
}

#rs-proceed-payment-btn.btn-book-now {
    background: linear-gradient(135deg, #5c2d1e, #8b4513) !important;
    box-shadow: 0 4px 15px rgba(92, 45, 30, 0.35) !important;
}

#rs-proceed-payment-btn.btn-book-now:hover {
    background: linear-gradient(135deg, #7a3d29, #a0522d) !important;
    box-shadow: 0 8px 25px rgba(92, 45, 30, 0.5) !important;
}

/* ==========================================================================
   Amenity Badge
   ========================================================================== */

.rs-amenity-badge {
    background: var(--rs-bg-light);
    color: var(--rs-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    border: 1px solid var(--rs-border);
    display: inline-block;
}

/* ==========================================================================
   Properties Listing Page — Header Banner
   ========================================================================== */

.rs-listing-header {
    background: linear-gradient(135deg, var(--rs-primary) 0%, var(--rs-secondary) 100%);
    color: #fff;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    box-sizing: border-box;
    padding: 3.5rem 1.5rem 3rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

.rs-listing-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.rs-listing-header__inner {
    max-width: 64rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    opacity:0;
}

.rs-listing-header__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #fff !important;
    margin: 0 0 0.6rem;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.rs-listing-header__subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.88);
    max-width: 560px;
    line-height: 1.65;
    margin: 0 0 1.25rem;
}

.rs-listing-header__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.rs-listing-header__count {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    padding: 0.3rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.01em;
}

/* ==========================================================================
   Properties / Rooms Grid
   ========================================================================== */

.rs-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* ==========================================================================
   Room Card  (used for both properties list and room detail cards)
   ========================================================================== */

.rs-room-card {
    background: var(--rs-bg-white);
    border-radius: var(--rs-radius-lg);
    overflow: hidden;
    box-shadow: var(--rs-shadow);
    transition: var(--rs-transition);
    border: 1px solid var(--rs-border);
    display: flex;
    flex-direction: column;
}

.rs-room-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rs-shadow-hover);
}

.rs-room-card__image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.rs-room-card__image.rs-property-card__image--placeholder {
    background: linear-gradient(135deg, var(--rs-primary) 0%, var(--rs-secondary) 100%);
}

.rs-room-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rs-room-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--rs-primary);
    margin-bottom: 0.5rem;
}

.rs-room-card__title a {
    color: inherit;
    text-decoration: none;
    transition: var(--rs-transition);
}

.rs-room-card__title a:hover {
    color: var(--rs-primary-light);
}

.rs-room-card__price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--rs-secondary);
    margin-bottom: 1rem;
}

.rs-room-card__price span {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--rs-text-light);
}

.rs-room-card__amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Notice
   ========================================================================== */

.rs-notice {
    color: var(--rs-text-light);
    font-style: italic;
    padding: 1rem 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 600px) {
    .rs-properties-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Property Detail Page — Rich Template
   ========================================================================== */

/* --- Hero --- */
.single-rs_property {
    background-color: transparent !important;
    padding-top: 0px !important;
}
.single-rs_property .content-area {
    margin: 0px !important;
}
.rs-prop-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 55vh;
    background-size: cover;
    background-position: center;
    background-color: #222;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    margin-top: 0;
    margin-bottom: 0 !important;
}

.rs-prop-hero--no-img {
    background: linear-gradient(135deg, var(--rs-primary) 0%, var(--rs-secondary) 100%);
}

.rs-prop-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.18) 55%, transparent 100%);
}

.rs-prop-hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 64rem;
    margin: 0 auto;
    padding: 2.5rem 0rem 2.5rem;
    color: #fff;
    text-align: left !important;
}

.rs-prop-hero__type {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 0.6rem;
    opacity: 0.9;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 3px;
    padding: 2px 8px;
    color: #fff;
}

.rs-prop-hero__title {
    font-size: clamp(1.7rem, 4.5vw, 2.6rem);
    font-weight: 800;
    margin: 0 0 0.4rem;
    line-height: 1.15;
    color: #fff;
}

.rs-prop-hero__tagline {
    font-size: 1rem;
    opacity: 0.88;
    margin: 0 0 1rem;
    max-width: 560px;
    color: #fff;
}

.rs-prop-hero__chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.6rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.92);
}

.rs-prop-hero__chips span {
    display: inline-flex;
    align-items: center;
}

/* --- Quick Facts Bar --- */
.rs-prop-facts-bar {
    /* Full-width breakout — background spans the viewport */
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    background: #fff;
    border-bottom: 1px solid var(--rs-border);
    box-sizing: border-box;
    margin-top: 0;
    margin-bottom: 0;
}

.rs-prop-facts-bar__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    max-width: 64rem;
    margin: 0 auto;
    padding: 0.85rem 0rem;
    font-size: 0.875rem;
    color: var(--rs-text-light);
}

.rs-prop-facts-bar__item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.rs-prop-facts-bar__icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    opacity: 0.65;
}

/* --- Shared Body Wrapper --- */
.rs-prop-body {
    max-width: 64rem;
    margin: 0 auto;
}

/* --- Section Wrapper --- */
.rs-prop-section {
    padding: 3rem 0;
    border-bottom: 1px solid var(--rs-border);
}

.rs-prop-section:last-of-type {
    border-bottom: none;
}

.rs-prop-section__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--rs-primary);
    margin-bottom: 1.5rem;
}

/* --- Description --- */
.rs-prop-description {
    color: var(--rs-text);
    line-height: 1.8;
}

.rs-prop-description p + p {
    margin-top: 1rem;
}

/* --- Highlights --- */
.rs-prop-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.rs-prop-highlight-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--rs-bg-light);
    border-radius: var(--rs-radius);
    border: 1px solid var(--rs-border);
    font-size: 0.9rem;
    color: var(--rs-text);
}

.rs-prop-check-icon {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    color: #16a34a;
    margin-top: 0.1rem;
}

.rs-prop-check-icon--muted {
    color: var(--rs-text-light);
}

/* --- Gallery --- */
.rs-prop-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.rs-prop-gallery-link {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--rs-radius);
}

.rs-prop-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.rs-prop-gallery-link:hover .rs-prop-gallery-img {
    transform: scale(1.04);
}

/* --- Amenities --- */
.rs-prop-amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.85rem 1.5rem;
}

.rs-prop-amenity-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--rs-text);
}

/* --- Sleeping Arrangements --- */
.rs-prop-sleep-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.rs-prop-sleep-card {
    background: var(--rs-bg-light);
    border-radius: var(--rs-radius);
    padding: 1.5rem;
    text-align: center;
}

.rs-prop-sleep-icon {
    width: 2rem;
    height: 2rem;
    color: #9ca3af;
    margin: 0 auto 0.75rem;
    display: block;
}

.rs-prop-sleep-card__name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--rs-text);
    margin: 0 0 0.25rem;
}

.rs-prop-sleep-card__meta {
    font-size: 0.85rem;
    color: var(--rs-text-light);
    margin: 0 !important;
}

.rs-prop-sleep-summary {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--rs-text-light);
}

/* --- House Rules --- */
.rs-prop-rules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.rs-prop-rule-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--rs-text);
}

.rs-prop-info-icon {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    color: var(--rs-text-light);
    margin-top: 0.1rem;
}

/* --- Location --- */
.rs-prop-location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.rs-prop-location-desc {
    color: var(--rs-text);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.rs-prop-location-subtitle {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--rs-text);
}

.rs-prop-nearby-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rs-prop-nearby-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--rs-text-light);
}

.rs-prop-map-wrap {
    border-radius: var(--rs-radius);
    overflow: hidden;
    min-height: 16rem;
    background: var(--rs-bg-light);
}

/* --- Availability --- */
.rs-prop-availability {
    background: var(--rs-bg-light);
    border-radius: var(--rs-radius-lg);
    padding: 2.5rem;
    text-align: center;
    border: 1px solid var(--rs-border);
}

.rs-prop-availability p {
    color: var(--rs-text-light);
    margin-bottom: 1rem;
}

.rs-prop-avail-btn {
    display: inline-block;
    background: #16a34a;
    color: #fff !important;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: var(--rs-radius);
    text-decoration: none;
    transition: background 0.2s;
}

.rs-prop-avail-btn:hover {
    background: #15803d;
    color: #fff !important;
}

.rs-prop-avail-note {
    font-size: 0.75rem;
    color: var(--rs-text-light);
    margin-top: 0.75rem !important;
    margin-bottom: 0 !important;
}

/* --- Reviews --- */
.rs-prop-reviews-breakdown {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--rs-text-light);
}

.rs-prop-reviews-breakdown__item {
    background: var(--rs-bg-light);
    border-radius: var(--rs-radius);
    padding: 0.75rem 0.5rem;
    border: 1px solid var(--rs-border);
}

.rs-prop-rating-score {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--rs-text);
    margin-bottom: 0.2rem;
}

.rs-prop-reviews-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.rs-prop-review-card {
    background: var(--rs-bg-light);
    border-radius: var(--rs-radius);
    border: 1px solid var(--rs-border);
    padding: 1.5rem;
    margin: 0;
}

.rs-prop-review-stars {
    display: flex;
    gap: 0.15rem;
    color: #f59e0b;
    margin-bottom: 0.75rem;
}

.rs-prop-star {
    width: 1rem;
    height: 1rem;
}

.rs-prop-review-text {
    color: var(--rs-text);
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.rs-prop-review-footer {
    font-size: 0.8rem;
    color: var(--rs-text-light);
}

.rs-prop-review-date {
    margin-left: 0.25rem;
}

.rs-prop-reviews-footer {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--rs-text-light);
    text-align: center;
}

.rs-prop-reviews-footer a {
    color: var(--rs-secondary);
    text-decoration: underline;
}

/* --- Booking CTA --- */
.rs-prop-booking-cta {
    background: #111827;
    color: #fff;
    text-align: center;
    padding: 4rem 1.5rem;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    box-sizing: border-box;
}

.rs-prop-booking-cta__heading {
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #fff;
}

.rs-prop-booking-cta__sub {
    color: #d1d5db;
    margin-bottom: 1.75rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.95rem;
}

.rs-prop-booking-cta__btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.rs-prop-cta-btn {
    display: inline-block;
    font-weight: 700;
    padding: 0.85rem 2rem;
    border-radius: var(--rs-radius);
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.rs-prop-cta-btn:hover {
    opacity: 0.88;
}

.rs-prop-cta-btn--light {
    background: #fff;
    color: #111827 !important;
}

.rs-prop-cta-btn--primary {
    background: linear-gradient(135deg, var(--rs-primary), var(--rs-secondary));
    color: #fff !important;
}

.rs-prop-booking-cta__price {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 1.25rem;
    margin-bottom: 0;
}

.rs-prop-booking-form-wrap {
    width: 100%;
    max-width: 480px;
}

/* ==========================================================================
   Property Detail — Responsive
   ========================================================================== */

@media (max-width: 900px) {
    .rs-prop-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .rs-prop-reviews-breakdown {
        grid-template-columns: repeat(3, 1fr);
    }
    .rs-prop-location-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .rs-prop-sleep-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .rs-prop-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .rs-prop-highlights-grid,
    .rs-prop-sleep-grid,
    .rs-prop-rules-grid {
        grid-template-columns: 1fr;
    }
    .rs-prop-reviews-grid {
        grid-template-columns: 1fr;
    }
    .rs-prop-reviews-breakdown {
        grid-template-columns: repeat(2, 1fr);
    }
    .rs-prop-amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .rs-prop-facts-bar__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

.single-rs_property .entry-header { display: none !important; }
