


body.tpl-modern .rgf-cd {
    padding: 0 0 1rem;
    background: var(--m-bg);
}
body.tpl-modern .rgf-cd-hero {
    position: relative;
    width: 100%;
    min-height: clamp(320px, 44vw, 480px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    background:
        radial-gradient(90% 70% at 70% 30%, color-mix(in srgb, var(--color-primary) 22%, transparent), transparent 60%),
        linear-gradient(165deg,
            color-mix(in srgb, var(--color-text) 88%, #000) 0%,
            color-mix(in srgb, var(--color-primary) 40%, #0a1628) 55%,
            #030d1a 100%);
    color: #fff;
}
body.tpl-modern .rgf-cd-back {
    position: absolute;
    top: .85rem;
    left: max(1rem, calc((100% - 1200px) / 2 + 1rem));
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin: 0;
    padding: .4rem .7rem;
    font-size: .8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    line-height: 1.2;
    background: color-mix(in srgb, #000 42%, transparent);
    border: 1px solid color-mix(in srgb, #fff 28%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 999px;
}
body.tpl-modern .rgf-cd-back:hover {
    color: #fff;
    background: color-mix(in srgb, #000 58%, transparent);
    border-color: color-mix(in srgb, #fff 45%, transparent);
}
body.tpl-modern .rgf-cd-back i { font-size: .72rem; }

body.tpl-modern .rgf-cd-hero-visual {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}
body.tpl-modern .rgf-cd-hero-visual img {
    width: auto;
    height: auto;
    max-width: min(92%, 820px);
    max-height: min(72%, 340px);
    object-fit: contain;
    object-position: center;
    padding: 2.25rem 1rem 6.5rem;
    box-sizing: border-box;
    filter: drop-shadow(0 24px 40px rgba(0,0,0,.45));
}
body.tpl-modern .rgf-cd-hero-empty {
    font-size: 4rem;
    opacity: .35;
    color: #fff;
}
body.tpl-modern .rgf-cd-hero-meta {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    
    padding: 0 0 4.75rem;
}
body.tpl-modern .rgf-cd-cat {
    margin: 0 0 .25rem;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: color-mix(in srgb, #fff 72%, var(--color-primary));
}
body.tpl-modern .rgf-cd-title {
    margin: 0;
    font-size: clamp(1.55rem, 3.2vw, 2.35rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.03em;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0,0,0,.35);
}


body.tpl-modern .rgf-cd-body {
    position: relative;
    padding-top: 0;
    margin-top: -3.25rem;
    z-index: 4;
}


body.tpl-modern .rgf-cd-float {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.15rem 1.5rem;
    padding: 1.15rem 1.2rem 1.25rem;
    margin: 0 0 1.75rem;
    background: var(--m-card);
    border: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
    border-radius: var(--m-radius-xl);
    box-shadow: var(--m-shadow-lg);
}
@media (min-width: 900px) {
    body.tpl-modern .rgf-cd-float {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr) minmax(220px, .85fr);
        /* center: when period/deposit/extra CTAs are off, short price/CTA cols
           no longer sink under a 2-row form (was align-items:end → void above) */
        align-items: center;
        padding: 1.25rem 1.4rem 1.35rem;
    }
}

body.tpl-modern .rgf-cd-float-price {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}
body.tpl-modern .rgf-cd-float-price .rgf-period-seg {
    margin-bottom: .75rem;
    background: color-mix(in srgb, var(--color-text) 5%, var(--m-bg));
}
body.tpl-modern .rgf-cd-float-price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: .75rem 1rem;
    flex-wrap: wrap;
}
/* Compact float (no period seg / deposit): keep price+CTA snug with form height */
body.tpl-modern .rgf-cd-float--compact {
    gap: 1rem 1.35rem;
}
@media (min-width: 900px) {
    body.tpl-modern .rgf-cd-float--compact {
        padding: 1.05rem 1.3rem 1.1rem;
    }
}
body.tpl-modern .rgf-cd-float-amount { min-width: 0; }
body.tpl-modern .rgf-cd-float .rgf-price-kicker {
    margin-bottom: .15rem;
    color: var(--m-muted);
}
body.tpl-modern .rgf-cd-float .rgf-price-now {
    font-size: clamp(1.55rem, 2.5vw, 2rem);
    color: var(--m-fg, #0a0a0a);
}
body.tpl-modern .rgf-cd-deposit {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .12rem;
    text-align: right;
}
body.tpl-modern .rgf-cd-deposit-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--m-muted);
}
body.tpl-modern .rgf-cd-deposit-value {
    font-size: .95rem;
    font-weight: 700;
    color: var(--m-fg);
}
body.tpl-modern .rgf-cd-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem .65rem;
    margin-top: .4rem;
}
body.tpl-modern .rgf-cd-pills .rgf-avail { margin-top: 0; }

body.tpl-modern .rgf-cd-float-form { min-width: 0; }
body.tpl-modern .rgf-cd-field { margin-bottom: .7rem; }
body.tpl-modern .rgf-cd-field:last-child { margin-bottom: 0; }
body.tpl-modern .rgf-cd-field label {
    display: block;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--m-muted);
    margin-bottom: .28rem;
}
body.tpl-modern .rgf-cd-field select,
body.tpl-modern .rgf-cd-field input {
    width: 100%;
    box-sizing: border-box;
    padding: .65rem .8rem;
    border-radius: 10px;
    border: 1px solid var(--m-border);
    background: var(--m-bg);
    color: var(--m-fg);
    font: inherit;
    font-size: .875rem;
}
body.tpl-modern .rgf-cd-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    padding-right: 2rem;
}
body.tpl-modern .rgf-cd .rgf-date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
    margin-bottom: 0;
}
body.tpl-modern .rgf-cd .rgf-date-row .rgf-cd-field { margin-bottom: 0; }


body.tpl-modern .rgf-cd-ctas {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .55rem;
    min-width: 0;
}
body.tpl-modern .rgf-cd-cta,
body.tpl-modern a[class*="rgf-cd-cta"] {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    padding: .85rem 1rem !important;
    font-size: .95rem !important;
    font-weight: 700;
    border-radius: 12px !important;
    border: 0 !important;
    color: #fff !important;
}
body.tpl-modern .rgf-cd-cta.rgf-btn-primary,
body.tpl-modern a#reservationBtn[class*="rgf-cd-cta"] {
    background: var(--color-primary) !important;
    box-shadow: 0 10px 22px rgba(var(--color-primary-rgb), .28) !important;
}
body.tpl-modern .rgf-cd-cta.rgf-btn-wa {
    background: linear-gradient(135deg, var(--color-whatsapp), var(--color-whatsapp-dark)) !important;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--color-whatsapp) 32%, transparent) !important;
}


body.tpl-modern .rgf-cd-specs,
body.tpl-modern .rgf-cd-about {
    margin: 0 0 1.25rem;
    padding: 1.2rem 1.25rem 1.3rem;
    background: var(--m-card);
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius-lg);
    box-shadow: var(--m-shadow-card);
    box-sizing: border-box;
}
body.tpl-modern .rgf-cd-specs .rgf-cd-block-title,
body.tpl-modern .rgf-cd-about .rgf-cd-block-title {
    margin: 0 0 .85rem;
}
body.tpl-modern .rgf-cd-spec-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}
body.tpl-modern .rgf-cd-spec {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
    padding: .8rem .9rem;
    font-size: .9rem;
    font-weight: 600;
    color: var(--m-fg);
    line-height: 1.35;
    background: color-mix(in srgb, var(--color-text) 4%, var(--m-bg));
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius);
    box-shadow: none;
}
body.tpl-modern .rgf-cd-spec i {
    flex-shrink: 0;
    color: var(--m-muted, #6b7280);
    width: 1.15rem;
    text-align: center;
    font-size: .95rem;
}
body.tpl-modern .rgf-cd-spec span {
    min-width: 0;
    overflow-wrap: anywhere;
}

body.tpl-modern .rgf-cd-block-title {
    margin: 0 0 .65rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--m-muted);
}
body.tpl-modern .rgf-cd-about-body {
    margin: 0;
    padding: 0;
    border: 0;
}
body.tpl-modern .rgf-cd-about p {
    margin: 0;
    font-size: .95rem;
    line-height: 1.75;
    color: color-mix(in srgb, var(--color-text) 88%, transparent);
    max-width: 48rem;
}

body.tpl-modern .rgf-cd-similar {
    margin-top: 1.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--m-border);
}
body.tpl-modern .rgf-cd-similar-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}
body.tpl-modern .rgf-cd-similar-head .rgf-cd-block-title { margin: 0; }
body.tpl-modern .rgf-cd-similar-all {
    font-size: .84rem;
    font-weight: 600;
    color: var(--m-fg, #0a0a0a);
    text-decoration: none;
    white-space: nowrap;
}
body.tpl-modern .rgf-cd-similar-all:hover { text-decoration: underline; }

@media (max-width: 899px) {
    body.tpl-modern .rgf-cd-hero { min-height: clamp(400px, 78vw, 520px); }
    body.tpl-modern .rgf-cd-hero-visual img {
        width: 88vw;
        max-width: 94%;
        height: auto;
        max-height: min(52vw, 300px);
        padding: 3rem .1rem 4.75rem;
        box-sizing: content-box;
        object-fit: contain;
        object-position: center;
    }
    body.tpl-modern .rgf-cd-hero-meta { padding-bottom: 5.25rem; }
    body.tpl-modern .rgf-cd-title { font-size: clamp(1.4rem, 7vw, 1.75rem); }
    body.tpl-modern .rgf-cd-body {
        margin-top: -3.5rem;
        padding-bottom: 0.5rem;
    }
    body.tpl-modern .rgf-cd-specs,
    body.tpl-modern .rgf-cd-about {
        padding: 1.05rem 1rem 1.15rem;
        margin-bottom: 1rem;
    }
    body.tpl-modern .rgf-cd-spec-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .6rem;
    }
    body.tpl-modern .rgf-cd-spec {
        padding: .72rem .8rem;
        font-size: .86rem;
    }
    body.tpl-modern .rgf-cd-float { gap: 1rem; }
    body.tpl-modern .rgf-cd-deposit { align-items: flex-start; text-align: left; }
}
@media (max-width: 480px) {
    body.tpl-modern .rgf-cd-float { padding: 1rem .95rem 1.1rem; }
    body.tpl-modern .rgf-cd-float-price-row { flex-direction: column; align-items: flex-start; }
}

