/* =============================================================
 * Redesign 2026 — Shortcodes Layer
 * Scope: platform/themes/resido/partials/shortcodes/*.blade.php
 * Loaded AFTER redesign-home.v1.css so it can build on .rd-section,
 * .rd-hero, .rd-cta-band etc. without duplicating tokens.
 * ============================================================= */

/* ── Generic section utilities ─────────────────────── */
.rd-section__cta-row {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

/* ── News card (latest-news shortcode) ──────────────── */
.rd-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.rd-news-card {
    background: #fff;
    border: 1px solid var(--color-rule, #e6e1d6);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}
.rd-news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(20, 30, 60, .08);
}
.rd-news-card__thumb {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-cream, #f6f1e6);
}
.rd-news-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.rd-news-card__body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.rd-news-card__eyebrow {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--color-warm, #a8845a);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}
.rd-news-card__title {
    font-family: var(--font-display, 'Cormorant Garamond', serif);
    font-size: 22px;
    line-height: 1.25;
    margin: 0;
    font-weight: 600;
}
.rd-news-card__title a { color: inherit; }
.rd-news-card__title a:hover { color: var(--color-accent, #1f2c58); }
.rd-news-card__lede {
    font-size: 14px;
    line-height: 1.55;
    color: var(--color-text-secondary-light, #5a5f6b);
    margin: 0;
    flex: 1;
}
.rd-news-card__cta {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-warm, #a8845a);
    margin-top: 6px;
}
.rd-news-card__cta:hover { color: var(--color-accent, #1f2c58); }

/* ── Package card (our-packages shortcode) ──────────── */
.rd-package-card {
    background: #fff;
    border: 1px solid var(--color-rule, #e6e1d6);
    border-radius: 10px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease;
}
.rd-package-card--featured {
    border-color: var(--color-accent, #1f2c58);
    box-shadow: 0 12px 32px rgba(20, 30, 60, .12);
}
.rd-package-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-warm, #a8845a);
    color: #fff;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
}
.rd-package-card__head { text-align: center; }
.rd-package-card__eyebrow {
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--color-warm, #a8845a);
    font-weight: 600;
}
.rd-package-card__price {
    font-family: var(--font-display, 'Cormorant Garamond', serif);
    font-size: 42px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--color-accent, #1f2c58);
    margin-top: 6px;
}
.rd-package-card__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
}
.rd-package-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--color-text-secondary-light, #5a5f6b);
}
.rd-package-card__features li .ti-check {
    color: var(--color-accent, #1f2c58);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Hero shortcodes (style-1/2/3/4/5/6/10) ─────────── */
.rd-hero--shortcode {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 520px;
    display: flex;
    align-items: center;
    color: #fff;
    padding: 96px 32px;
    overflow: hidden;
}
.rd-hero--minimal { min-height: 360px; }
.rd-hero--map { min-height: 600px; padding: 0; }
.rd-hero--shortcode .rd-hero__wash {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,30,60,.55) 0%, rgba(20,30,60,.35) 100%);
    pointer-events: none;
}
.rd-hero--shortcode .rd-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}
.rd-hero__inner--centered { text-align: center; max-width: 880px; }
.rd-hero__inner--left { max-width: 720px; }
.rd-hero--shortcode .rd-hero__h1,
.rd-hero--shortcode .rd-hero__sub,
.rd-hero--shortcode .rd-hero__eyebrow { color: #fff; }
.rd-hero--shortcode .rd-hero__eyebrow {
    font-style: italic;
    font-size: 16px;
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: 8px;
    color: rgba(255,255,255,.92);
    font-family: var(--font-display, 'Cormorant Garamond', serif);
    font-weight: 500;
}
.rd-hero--shortcode .rd-hero__sub {
    margin-top: 8px;
    color: rgba(255,255,255,.88);
}

/* Form rows + cells */
.rd-hero__form {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.rd-hero__form--side {
    background: rgba(255,255,255,.96);
    color: var(--color-text-primary, #1c1f25);
    border-radius: 10px;
    padding: 28px 28px 24px;
    max-width: 420px;
    box-shadow: 0 16px 40px rgba(0,0,0,.18);
}
.rd-hero__form--side .rd-field__label { color: var(--color-text-primary, #1c1f25); }
.rd-hero__form--inline,
.rd-hero__form--row4 {
    background: rgba(255,255,255,.96);
    color: var(--color-text-primary, #1c1f25);
    border-radius: 10px;
    padding: 14px;
    display: grid;
    grid-template-columns: 1.1fr 2fr auto;
    gap: 12px;
    align-items: stretch;
    box-shadow: 0 16px 40px rgba(0,0,0,.18);
}
.rd-hero__form--row4 { grid-template-columns: 1.2fr 1.2fr 1.2fr auto; }
.rd-hero__form--pill {
    display: flex;
    gap: 8px;
    align-items: stretch;
    background: rgba(255,255,255,.96);
    border-radius: 999px;
    padding: 6px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 16px 40px rgba(0,0,0,.18);
}
.rd-hero__form--pill .rd-input--pill {
    border: 0;
    background: transparent;
    padding: 14px 20px;
    flex: 1;
    font-size: 15px;
}
.rd-hero__form--pill .rd-input--pill:focus { outline: 0; box-shadow: none; }
.rd-hero__form-row { display: flex; gap: 12px; }
.rd-hero__form-row--2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rd-hero__form-row--3col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.rd-hero__form-row--4col { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 12px; }
.rd-hero__form-cell { display: flex; align-items: stretch; }
.rd-hero__form-cell--main { min-width: 0; }
.rd-hero__form-cell--cta { align-items: stretch; }
.rd-hero__form-cell--cta .rd-btn { white-space: nowrap; height: 100%; }
.rd-hero__form-cell--toggle { align-items: center; justify-content: center; }
.rd-hero__advanced-toggle {
    color: var(--color-accent, #1f2c58);
    font-size: 22px;
    padding: 12px;
    cursor: pointer;
}
.rd-hero__advanced {
    grid-column: 1 / -1;
    background: rgba(255,255,255,.94);
    border-top: 1px solid var(--color-rule, #e6e1d6);
    padding: 16px 0 0;
    margin-top: 8px;
}
.rd-hero__amenity-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-primary, #1c1f25);
    margin: 12px 0 8px;
}
.rd-hero__submit { width: 100%; margin-top: 6px; }
.rd-field__icon-input {
    position: relative;
    width: 100%;
}
.rd-field__icon-input > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-secondary-light, #5a5f6b);
    pointer-events: none;
}
.rd-field__icon-input .rd-input,
.rd-field__icon-input input.form-control,
.rd-field__icon-input select.form-control,
.rd-field__icon-input .select2-selection {
    padding-left: 38px !important;
    height: 48px;
    width: 100%;
}

/* Map hero */
.rd-hero__map-wrap, .rd-hero__map { position: absolute; inset: 0; width: 100%; height: 100%; }
.rd-hero--map { position: relative; }
.rd-hero__map-overlay {
    position: absolute;
    z-index: 2;
    left: 24px;
    bottom: 24px;
    right: 24px;
    max-width: 1280px;
    margin: 0 auto;
}
.rd-hero__advanced-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(20,30,60,.85);
    color: #fff;
    border: 0;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}
.rd-hero__map-search { margin-top: 12px; max-width: 880px; }

/* Hero slide (properties-hero-slide) */
.rd-hero-slide__item {
    position: relative;
    min-height: 560px;
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 64px 32px;
}
.rd-hero-slide__wash {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20,30,60,.78) 0%, rgba(20,30,60,.35) 70%, rgba(20,30,60,.15) 100%);
}
.rd-hero-slide__inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.rd-hero-slide__pills {
    display: flex;
    gap: 8px;
}
.rd-hero-slide__title {
    font-family: var(--font-display, 'Cormorant Garamond', serif);
    font-size: 42px;
    font-weight: 600;
    line-height: 1.15;
    margin: 0;
}
.rd-hero-slide__title a { color: #fff; }
.rd-hero-slide__location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.88);
    margin: 0;
}
.rd-hero-slide__stats {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    color: rgba(255,255,255,.92);
}
.rd-hero-slide__stat-label {
    display: block;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
    font-weight: 600;
}
.rd-hero-slide__price {
    font-family: var(--font-display, 'Cormorant Garamond', serif);
    font-size: 28px;
    font-weight: 600;
    margin-top: 6px;
}
.rd-hero-slide__cta { align-self: flex-start; margin-top: 10px; }

/* Contact form shortcode */
.rd-contact-shortcode {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: start;
}
.rd-contact-shortcode__info { padding-top: 12px; }
.rd-contact-shortcode__lede {
    margin-top: 12px;
    color: var(--color-text-secondary-light, #5a5f6b);
    line-height: 1.6;
}
.rd-contact-form { display: flex; flex-direction: column; gap: 18px; }
.rd-contact-form__messages { min-height: 0; }
.rd-contact-form__actions { display: flex; }
.rd-form-grid--2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* CTA-band cover-banner variant */
.rd-cta-band--cover {
    background-size: cover;
    background-position: center;
    position: relative;
}
.rd-cta-band--cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,30,60,.72) 0%, rgba(20,30,60,.58) 100%);
    border-radius: inherit;
    pointer-events: none;
}
.rd-cta-band--cover > * { position: relative; z-index: 2; }
.rd-cta-band__lede {
    color: rgba(255,255,255,.9);
    margin: 12px 0 0;
    font-size: 17px;
    line-height: 1.55;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 992px) {
    .rd-news-grid { grid-template-columns: repeat(2, 1fr); }
    .rd-hero__form--inline,
    .rd-hero__form--row4 { grid-template-columns: 1fr; }
    .rd-hero__form-row--3col,
    .rd-hero__form-row--4col,
    .rd-hero__form-row--2col { grid-template-columns: 1fr 1fr; }
    .rd-contact-shortcode { grid-template-columns: 1fr; gap: 32px; }
    .rd-hero-slide__title { font-size: 32px; }
}

@media (max-width: 640px) {
    .rd-news-grid { grid-template-columns: 1fr; }
    .rd-hero__form-row--3col,
    .rd-hero__form-row--4col,
    .rd-hero__form-row--2col { grid-template-columns: 1fr; }
    .rd-form-grid--2col { grid-template-columns: 1fr; }
    .rd-hero--shortcode { padding: 64px 20px; min-height: 420px; }
    .rd-hero-slide__item { min-height: 460px; padding: 48px 20px; }
    .rd-hero-slide__title { font-size: 26px; }
}

/* ── search-by-map zoom-gate overlay ───────────────────
   Mirrors the directory-map overlay. Tells the user to zoom in when
   the map is below ZOOM_THRESHOLD. pointer-events: none so the user
   can still pan through it. */
.rd-search-by-map__zoom-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 500;
    background: rgba(20, 30, 60, .12);
    backdrop-filter: blur(1px);
}
.rd-search-by-map__zoom-overlay > span {
    background: rgba(20, 30, 60, .92);
    color: #fff;
    font-family: var(--font-display, 'Cormorant Garamond', serif);
    font-size: 20px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
}
#mapx { position: relative; }
