/**
 * Shared template polish — floor-plans tabs, gallery bento, common card refinements.
 * Loaded LAST by project.blade.php for ANY templated project so unified UX wins.
 * Specificity uses 3-class chain to beat per-template overrides.
 */

/* ─── Floor plans: tabs UI (auto-injected by polish.js) ──────────────── */
[data-template] .rt-section-floor-plans .rt-fp-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-color, #E5E7EB);
}

[data-template] .rt-section-floor-plans .rt-fp-tab-btn {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    color: var(--secondary-color, #64748B);
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    border-bottom: 2px solid transparent;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

[data-template] .rt-section-floor-plans .rt-fp-tab-btn:hover {
    color: var(--primary-color, #0F172A);
    background: var(--surface-low, #F8FAFC);
}

[data-template] .rt-section-floor-plans .rt-fp-tab-btn.is-active {
    color: var(--accent-color, #FF5A1F);
    border-bottom-color: var(--accent-color, #FF5A1F);
    background: transparent;
}

[data-template] .rt-section-floor-plans .rt-fp-tab-btn:focus-visible {
    outline: 2px solid var(--accent-color, #FF5A1F);
    outline-offset: 2px;
}

[data-template] .rt-section-floor-plans .rt-floor-plan-group:not(.is-active) {
    display: none;
}

[data-template] .rt-section-floor-plans .rt-fp-tabs ~ .rt-floor-plan-group .rt-floor-plan-group-title {
    display: none;
}

/* ─── Floor plan cards: redesign — side-by-side with bigger image ───── */
[data-template] .rt-section-floor-plans .rt-floor-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 24px;
}

[data-template] .rt-section-floor-plans .rt-floor-plan-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
    background: var(--surface-color, #FFFFFF);
    border: 1px solid var(--border-color, #E5E7EB);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: none;
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
    flex-direction: initial;
    padding: 0;
}

[data-template] .rt-section-floor-plans .rt-floor-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px -16px rgba(15, 23, 42, 0.18);
    border-color: var(--accent-color, #FF5A1F);
}

[data-template] .rt-section-floor-plans .rt-floor-plan-card__image {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--surface-low, #F1F5F9);
    padding: 0;
}

[data-template] .rt-section-floor-plans .rt-floor-plan-card__image img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    transition: transform 320ms ease;
}

[data-template] .rt-section-floor-plans .rt-floor-plan-card:hover .rt-floor-plan-card__image img {
    transform: scale(1.06);
}

[data-template] .rt-section-floor-plans .rt-floor-plan-card__image--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color, #94A3B8);
    font-size: 36px;
    aspect-ratio: 1 / 1;
}

[data-template] .rt-section-floor-plans .rt-floor-plan-card__body {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

[data-template] .rt-section-floor-plans .rt-floor-plan-card__title {
    font-size: 19px;
    font-weight: 600;
    margin: 0;
    color: var(--primary-color, #0F172A);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

[data-template] .rt-section-floor-plans .rt-floor-plan-card__specs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: inherit;
    color: inherit;
}

[data-template] .rt-section-floor-plans .rt-floor-plan-card__specs li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--surface-low, #F1F5F9);
    color: var(--primary-color, #334155);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
}

[data-template] .rt-section-floor-plans .rt-floor-plan-card__specs li svg,
[data-template] .rt-section-floor-plans .rt-floor-plan-card__specs li i {
    font-size: 15px;
    color: var(--accent-color, #FF5A1F);
}

@media (max-width: 640px) {
    [data-template] .rt-section-floor-plans .rt-floor-plan-grid {
        grid-template-columns: 1fr;
    }
    [data-template] .rt-section-floor-plans .rt-floor-plan-card {
        grid-template-columns: 140px 1fr;
    }
    [data-template] .rt-section-floor-plans .rt-floor-plan-card__body {
        padding: 16px;
    }
    [data-template] .rt-section-floor-plans .rt-floor-plan-card__title {
        font-size: 17px;
    }
}

/* ─── Lifestyle gallery: bento mosaic ───────────────────────────────── */
[data-template] .rt-section-gallery .rt-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    gap: 12px;
}

[data-template] .rt-section-gallery .rt-gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: var(--surface-low, #F1F5F9);
}

[data-template] .rt-section-gallery .rt-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 360ms ease;
}

[data-template] .rt-section-gallery .rt-gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(15, 23, 42, 0.22) 100%);
    opacity: 0;
    transition: opacity 220ms ease;
    pointer-events: none;
}

[data-template] .rt-section-gallery .rt-gallery-item:hover img {
    transform: scale(1.06);
}

[data-template] .rt-section-gallery .rt-gallery-item:hover::after {
    opacity: 1;
}

/* Featured (first) → 2x2 cell */
[data-template] .rt-section-gallery .rt-gallery-item--featured {
    grid-column: span 2;
    grid-row: span 2;
}

/* Tall accent on 4th item (visual rhythm) */
[data-template] .rt-section-gallery .rt-gallery-item:nth-of-type(4) {
    grid-row: span 2;
}

/* Photo count badge over featured */
[data-template] .rt-section-gallery .rt-gallery-item__count {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

[data-template] .rt-section-gallery .rt-gallery-item__count i {
    font-size: 15px;
}

[data-template] .rt-section-gallery .rt-gallery-show-more {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

[data-template] .rt-section-gallery .rt-gallery-expand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border: 1.5px solid var(--border-color, #CBD5E1);
    background: transparent;
    color: var(--primary-color, #0F172A);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

[data-template] .rt-section-gallery .rt-gallery-expand:hover {
    border-color: var(--accent-color, #FF5A1F);
    color: var(--accent-color, #FF5A1F);
    background: rgba(255, 90, 31, 0.04);
}

@media (max-width: 900px) {
    [data-template] .rt-section-gallery .rt-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 140px;
    }
}

@media (max-width: 640px) {
    [data-template] .rt-section-gallery .rt-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 130px;
    }
    [data-template] .rt-section-gallery .rt-gallery-item--featured {
        grid-column: span 2;
        grid-row: span 2;
    }
    [data-template] .rt-section-gallery .rt-gallery-item:nth-of-type(4) {
        grid-row: span 1;
    }
}

/* ─── Section title polish (unify across templates) ─────────────────── */
[data-template] .rt-section-floor-plans .rt-section__title,
[data-template] .rt-section-gallery .rt-section__title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--primary-color, #0F172A);
    letter-spacing: -0.02em;
}

[data-template] .rt-section-floor-plans .rt-section__subtitle,
[data-template] .rt-section-gallery .rt-section__subtitle {
    color: var(--secondary-color, #64748B);
    font-size: 16px;
    margin-bottom: 32px;
}

/* ─── Overview: stat tiles + description + feature list ─────────────── */
[data-template] .rt-section-overview .rt-overview-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 24px 0 32px;
}

[data-template] .rt-section-overview .rt-overview-fact-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 22px 24px;
    background: var(--surface-color, #FFFFFF);
    border: 1px solid var(--border-color, #E5E7EB);
    border-radius: 14px;
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

[data-template] .rt-section-overview .rt-overview-fact-tile:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color, #FF5A1F);
    box-shadow: 0 10px 22px -14px rgba(15, 23, 42, 0.16);
}

[data-template] .rt-section-overview .rt-fact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 90, 31, 0.10);
    color: var(--accent-color, #FF5A1F);
    font-size: 22px;
}

[data-template] .rt-section-overview .rt-fact-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color, #0F172A);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

[data-template] .rt-section-overview .rt-fact-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--secondary-color, #64748B);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

[data-template] .rt-section-overview .rt-overview-description {
    max-width: 760px;
    color: var(--primary-color, #334155);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 24px;
}

[data-template] .rt-section-overview .rt-overview-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px 28px;
}

[data-template] .rt-section-overview .rt-overview-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color, #334155);
    font-size: 15px;
    line-height: 1.5;
}

[data-template] .rt-section-overview .rt-overview-feature-item svg,
[data-template] .rt-section-overview .rt-overview-feature-item i {
    color: var(--accent-color, #FF5A1F);
    font-size: 18px;
    flex-shrink: 0;
}

/* ─── Master plan: phase timeline + figure ─────────────────────────── */
[data-template] .rt-section-master-plan .rt-master-plan-phases {
    list-style: none;
    margin: 0 0 36px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    counter-reset: phase;
}

[data-template] .rt-section-master-plan .rt-master-plan-phase {
    position: relative;
    padding: 24px 22px;
    background: var(--surface-color, #FFFFFF);
    border: 1px solid var(--border-color, #E5E7EB);
    border-radius: 14px;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

[data-template] .rt-section-master-plan .rt-master-plan-phase:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -16px rgba(15, 23, 42, 0.18);
}

[data-template] .rt-section-master-plan .rt-master-plan-phase__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-bottom: 12px;
    font-size: 20px;
    background: var(--surface-low, #F1F5F9);
    color: var(--secondary-color, #94A3B8);
}

[data-template] .rt-section-master-plan .rt-master-plan-phase--completed .rt-master-plan-phase__icon {
    background: rgba(16, 185, 129, 0.12);
    color: #10B981;
}

[data-template] .rt-section-master-plan .rt-master-plan-phase--active .rt-master-plan-phase__icon {
    background: rgba(255, 90, 31, 0.12);
    color: var(--accent-color, #FF5A1F);
    animation: rt-phase-pulse 2.4s ease-in-out infinite;
}

@keyframes rt-phase-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}

[data-template] .rt-section-master-plan .rt-master-plan-phase__status-label {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

[data-template] .rt-section-master-plan .rt-master-plan-phase--completed .rt-master-plan-phase__status-label {
    background: rgba(16, 185, 129, 0.10);
    color: #047857;
}

[data-template] .rt-section-master-plan .rt-master-plan-phase--active .rt-master-plan-phase__status-label {
    background: rgba(255, 90, 31, 0.10);
    color: var(--accent-color, #FF5A1F);
}

[data-template] .rt-section-master-plan .rt-master-plan-phase--planned .rt-master-plan-phase__status-label {
    background: var(--surface-low, #F1F5F9);
    color: var(--secondary-color, #64748B);
}

[data-template] .rt-section-master-plan .rt-master-plan-phase__name {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--primary-color, #0F172A);
    line-height: 1.35;
}

[data-template] .rt-section-master-plan .rt-master-plan-phase__desc {
    font-size: 14px;
    color: var(--secondary-color, #64748B);
    line-height: 1.55;
    margin: 0;
}

[data-template] .rt-section-master-plan .rt-master-plan-figure {
    position: relative;
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--surface-low, #F1F5F9);
}

[data-template] .rt-section-master-plan .rt-master-plan-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

[data-template] .rt-section-master-plan .rt-master-plan-video-trigger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.95);
    color: var(--accent-color, #FF5A1F);
    font-size: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: transform 220ms ease, background 220ms ease;
}

[data-template] .rt-section-master-plan .rt-master-plan-video-trigger:hover {
    transform: translate(-50%, -50%) scale(1.08);
    background: #fff;
}

[data-template] .rt-section-master-plan .rt-master-plan-caption {
    position: absolute;
    left: 24px;
    bottom: 20px;
    color: #fff;
    font-size: 14px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* ─── Amenities: icon-circle grid ──────────────────────────────────── */
[data-template] .rt-section-amenities .rt-amenities-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

[data-template] .rt-section-amenities .rt-amenity-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    min-height: 76px;
    padding: 18px 20px;
    background: var(--surface-color, #FFFFFF);
    border: 1px solid var(--border-color, #E5E7EB);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

[data-template] .rt-section-amenities .rt-amenity-item:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color, #FF5A1F);
    box-shadow: 0 12px 24px -18px rgba(15, 23, 42, 0.22);
}

[data-template] .rt-section-amenities .rt-amenity-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--accent-color, #16A34A) 10%, #FFFFFF);
    color: var(--accent-color, #FF5A1F);
    flex-shrink: 0;
}

[data-template] .rt-section-amenities .rt-amenity-icon i {
    display: none;
}

[data-template] .rt-section-amenities .rt-amenity-icon::before {
    content: "";
    width: 24px;
    height: 24px;
    display: block;
    background: currentColor;
    -webkit-mask: var(--rt-amenity-icon, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4L19 6'/%3E%3C/svg%3E")) center / contain no-repeat;
    mask: var(--rt-amenity-icon, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4L19 6'/%3E%3C/svg%3E")) center / contain no-repeat;
}

[data-template] .rt-section-amenities .rt-amenity-icon:has(.ti-pool)::before {
    --rt-amenity-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 16c2 0 2-1 4-1s2 1 4 1 2-1 4-1 2 1 4 1'/%3E%3Cpath d='M4 20c2 0 2-1 4-1s2 1 4 1 2-1 4-1 2 1 4 1'/%3E%3Cpath d='M8 12V6a3 3 0 0 1 6 0v6'/%3E%3C/svg%3E");
}

[data-template] .rt-section-amenities .rt-amenity-icon:has(.ti-barbell)::before,
[data-template] .rt-section-amenities .rt-amenity-icon:has(.ti-yoga)::before {
    --rt-amenity-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7v10'/%3E%3Cpath d='M18 7v10'/%3E%3Cpath d='M3 9v6'/%3E%3Cpath d='M21 9v6'/%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E");
}

[data-template] .rt-section-amenities .rt-amenity-icon:has(.ti-tree)::before {
    --rt-amenity-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 13v8'/%3E%3Cpath d='M7 17h10'/%3E%3Cpath d='M12 3l7 9H5z'/%3E%3C/svg%3E");
}

[data-template] .rt-section-amenities .rt-amenity-icon:has(.ti-shield-check)::before {
    --rt-amenity-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 4v5c0 5-3 8-7 9-4-1-7-4-7-9V7z'/%3E%3Cpath d='M9 12l2 2 4-5'/%3E%3C/svg%3E");
}

[data-template] .rt-section-amenities .rt-amenity-icon:has(.ti-car)::before {
    --rt-amenity-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17h10l2-6H5z'/%3E%3Cpath d='M6 17v2'/%3E%3Cpath d='M18 17v2'/%3E%3Cpath d='M8 11l2-4h4l2 4'/%3E%3C/svg%3E");
}

[data-template] .rt-section-amenities .rt-amenity-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color, #0F172A);
    line-height: 1.35;
    text-align: left;
}

@media (max-width: 640px) {
    [data-template] .rt-section-amenities .rt-amenities-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Location: address pill + map + POI list ───────────────────────── */
[data-template] .rt-section-location .rt-location-address {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--surface-low, #F1F5F9);
    border-radius: 999px;
    color: var(--primary-color, #334155);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

[data-template] .rt-section-location .rt-location-address svg,
[data-template] .rt-section-location .rt-location-address i {
    color: var(--accent-color, #FF5A1F);
    font-size: 16px;
}

[data-template] .rt-section-location .rt-location-map,
[data-template] .rt-section-location .rt-map {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.18);
}

[data-template] .rt-section-location .rt-location-map .rt-map__canvas,
[data-template] .rt-section-location .rt-map__canvas {
    height: 460px;
    border-radius: 16px;
}

[data-template] .rt-section-location .rt-location-pois {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

[data-template] .rt-section-location .rt-location-poi {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--surface-color, #FFFFFF);
    border: 1px solid var(--border-color, #E5E7EB);
    border-radius: 12px;
    transition: border-color 200ms ease, transform 200ms ease;
}

[data-template] .rt-section-location .rt-location-poi:hover {
    border-color: var(--accent-color, #FF5A1F);
    transform: translateY(-2px);
}

[data-template] .rt-section-location .rt-location-poi__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 90, 31, 0.10);
    color: var(--accent-color, #FF5A1F);
    font-size: 18px;
    flex-shrink: 0;
}

[data-template] .rt-section-location .rt-location-poi__label {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color, #0F172A);
    flex-grow: 1;
}

[data-template] .rt-section-location .rt-location-poi__type {
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--surface-low, #F1F5F9);
    color: var(--secondary-color, #64748B);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ─── CTA-form pricing tiers ─────────────────────────────────────────── */
[data-template] .rt-section-cta-form .rt-cta-pricing-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

[data-template] .rt-section-cta-form .rt-pricing-card {
    position: relative;
    padding: 32px 26px;
    background: var(--surface-color, #FFFFFF);
    border: 1px solid var(--border-color, #E5E7EB);
    border-radius: 18px;
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

[data-template] .rt-section-cta-form .rt-pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px -20px rgba(15, 23, 42, 0.22);
    border-color: var(--accent-color, #FF5A1F);
}

[data-template] .rt-section-cta-form .rt-pricing-card--highlighted {
    border-color: var(--accent-color, #FF5A1F);
    border-width: 2px;
    box-shadow: 0 14px 30px -16px rgba(255, 90, 31, 0.30);
    background: linear-gradient(180deg, rgba(255, 90, 31, 0.04) 0%, var(--surface-color, #FFFFFF) 50%);
}

[data-template] .rt-section-cta-form .rt-pricing-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 14px;
    background: var(--accent-color, #FF5A1F);
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(255, 90, 31, 0.35);
}

[data-template] .rt-section-cta-form .rt-pricing-card__name {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--primary-color, #0F172A);
    line-height: 1.3;
}

[data-template] .rt-section-cta-form .rt-pricing-card__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

[data-template] .rt-section-cta-form .rt-pricing-card__amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color, #0F172A);
    letter-spacing: -0.02em;
    line-height: 1;
}

[data-template] .rt-section-cta-form .rt-pricing-card__unit {
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary-color, #64748B);
}

[data-template] .rt-section-cta-form .rt-pricing-card__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

[data-template] .rt-section-cta-form .rt-pricing-card__feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--primary-color, #334155);
    line-height: 1.4;
}

[data-template] .rt-section-cta-form .rt-pricing-card__feature::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2310B981' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8l3.5 3.5L13 5'/%3E%3C/svg%3E") center/12px no-repeat;
    flex-shrink: 0;
}

[data-template] .rt-section-cta-form .rt-pricing-card__feature--excluded {
    color: var(--secondary-color, #94A3B8);
    text-decoration: line-through;
    text-decoration-color: var(--border-color, #CBD5E1);
}

[data-template] .rt-section-cta-form .rt-pricing-card__feature--excluded::before {
    background: var(--surface-low, #F1F5F9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2394A3B8' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M4 4l8 8M12 4l-8 8'/%3E%3C/svg%3E") center/12px no-repeat;
}

[data-template] .rt-section-cta-form .rt-pricing-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 12px;
    background: var(--surface-low, #F1F5F9);
    color: var(--primary-color, #0F172A);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 200ms ease, color 200ms ease, transform 200ms ease;
    margin-top: auto;
}

[data-template] .rt-section-cta-form .rt-pricing-card__cta:hover {
    background: var(--accent-color, #FF5A1F);
    color: #fff;
    transform: translateY(-2px);
}

[data-template] .rt-section-cta-form .rt-pricing-card--highlighted .rt-pricing-card__cta {
    background: var(--accent-color, #FF5A1F);
    color: #fff;
}

[data-template] .rt-section-cta-form .rt-pricing-card--highlighted .rt-pricing-card__cta:hover {
    background: var(--primary-color, #0F172A);
}

/* ─── Section title polish — extend to all 7 sections ────────────────── */
[data-template] .rt-section-overview .rt-section__title,
[data-template] .rt-section-master-plan .rt-section__title,
[data-template] .rt-section-amenities .rt-section__title,
[data-template] .rt-section-location .rt-section__title,
[data-template] .rt-section-cta-form .rt-section__title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--primary-color, #0F172A);
    letter-spacing: -0.02em;
}

[data-template] .rt-section-overview .rt-section__subtitle,
[data-template] .rt-section-master-plan .rt-section__subtitle,
[data-template] .rt-section-amenities .rt-section__subtitle,
[data-template] .rt-section-location .rt-section__subtitle,
[data-template] .rt-section-cta-form .rt-section__subtitle {
    color: var(--secondary-color, #64748B);
    font-size: 16px;
    margin-bottom: 28px;
}

/* ═══════════════════════════════════════════════════════════════════════
   Polish v7 — Layout areas (hero / sticky-nav / related / footer)
   Pattern: 3-class specificity, load LAST, preserve per-template branding
   ═══════════════════════════════════════════════════════════════════════ */

/* === Block 1: Hero polish (touch nhẹ — preserve typography per template) === */
[data-template] .rt-section-hero-banner .rt-hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 13px;
    font-weight: 600;
    opacity: 0.95;
}

[data-template] .rt-section-hero-banner .rt-hero-actions {
    gap: 14px;
    margin-top: 28px;
}

[data-template] .rt-section-hero-banner .rt-hero-actions a,
[data-template] .rt-section-hero-banner .rt-hero-actions .rt-btn--primary,
[data-template] .rt-section-hero-banner .rt-hero-actions .rt-btn--secondary {
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    will-change: transform;
}

[data-template] .rt-section-hero-banner .rt-hero-actions a:hover,
[data-template] .rt-section-hero-banner .rt-hero-actions .rt-btn--primary:hover,
[data-template] .rt-section-hero-banner .rt-hero-actions .rt-btn--secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

[data-template] .rt-section-hero-banner .rt-hero-gallery-strip {
    gap: 10px;
    margin-top: 24px;
}

[data-template] .rt-section-hero-banner .rt-hero-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-template] .rt-section-hero-banner .rt-hero-gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.25);
}

[data-template] .rt-section-hero-banner .rt-hero-gallery-item img {
    transition: transform 0.4s ease;
}

[data-template] .rt-section-hero-banner .rt-hero-gallery-item:hover img {
    transform: scale(1.06);
}

/* === Block 2: Sticky-nav polish (compound selector — 4 templates) === */
.rt-std-tabs__link,
.rt-sc-topnav__link,
.rt-luxury-dot-nav__dot,
.rt-template__sidenav-link,
.js-metro-nav-link {
    transition: color 0.25s ease, background-color 0.25s ease,
                border-color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
    position: relative;
}

.rt-std-tabs,
.rt-sc-topnav {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 1px 12px rgba(15, 23, 42, 0.04);
}

.rt-std-tabs__link:hover,
.rt-sc-topnav__link:hover {
    color: var(--accent-color, #FF5A1F);
}

.rt-std-tabs__link.is-active,
.rt-std-tabs__link[aria-current="true"],
.rt-sc-topnav__link.is-active,
.rt-sc-topnav__link[aria-current="true"] {
    color: var(--accent-color, #FF5A1F);
    font-weight: 600;
}

.rt-std-tabs__link.is-active::after,
.rt-sc-topnav__link.is-active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -2px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--accent-color, #FF5A1F);
}

.rt-luxury-dot-nav__dot:hover {
    transform: scale(1.4);
    opacity: 1;
}

.rt-luxury-dot-nav__dot.is-active {
    transform: scale(1.6);
    background: var(--accent-color, #D4AF37);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.18);
}

.rt-template__sidenav-link:hover,
.js-metro-nav-link:hover {
    color: var(--accent-color, #0F172A);
    transform: translateX(4px);
}

.rt-template__sidenav-link.is-active,
.js-metro-nav-link.is-active {
    color: var(--accent-color, #0F172A);
    font-weight: 600;
    border-left: 3px solid var(--accent-color, #0F172A);
    padding-left: 13px;
}

/* === Block 3: Related projects polish (legacy + per-template wrappers) ===
   Wrappers added Phase 04 fix-gap: rt-std-related (standard), rt-luxury-related (luxury),
   rt-metropolis-related (metropolis), rt-sc-related (showcase). Shared selector list
   keeps card styling identical across templates; per-template overrides.css can win
   specificity for branding (e.g. luxury gold accent) when needed. */
.flat-latest-property,
.rt-std-related,
.rt-luxury-related,
.rt-metropolis-related,
.rt-sc-related {
    padding: 60px 0;
}

.flat-latest-property .box-title .section-title,
.rt-std-related .rt-std-related__title,
.rt-luxury-related .box-title .section-title,
.rt-metropolis-related .box-title .section-title,
.rt-sc-related .box-title .section-title {
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--primary-color, #0F172A);
    margin-bottom: 28px;
}

.flat-latest-property .property-item,
.flat-latest-property .homeya-box,
.rt-std-related .property-item,
.rt-std-related .homeya-box,
.rt-luxury-related .homeya-box,
.rt-metropolis-related .homeya-box,
.rt-sc-related .homeya-box {
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flat-latest-property .property-item:hover,
.flat-latest-property .homeya-box:hover,
.rt-std-related .property-item:hover,
.rt-std-related .homeya-box:hover,
.rt-luxury-related .homeya-box:hover,
.rt-metropolis-related .homeya-box:hover,
.rt-sc-related .homeya-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.flat-latest-property .property-item .image-wrap img,
.flat-latest-property .homeya-box .image-wrap img,
.flat-latest-property .homeya-box .image img,
.rt-std-related .property-item .image-wrap img,
.rt-std-related .homeya-box .image-wrap img,
.rt-std-related .homeya-box .image img,
.rt-luxury-related .homeya-box .image-wrap img,
.rt-luxury-related .homeya-box .image img,
.rt-metropolis-related .homeya-box .image-wrap img,
.rt-metropolis-related .homeya-box .image img,
.rt-sc-related .homeya-box .image-wrap img,
.rt-sc-related .homeya-box .image img {
    transition: transform 0.4s ease;
}

.flat-latest-property .property-item:hover .image-wrap img,
.flat-latest-property .homeya-box:hover .image-wrap img,
.flat-latest-property .homeya-box:hover .image img,
.rt-std-related .property-item:hover .image-wrap img,
.rt-std-related .homeya-box:hover .image-wrap img,
.rt-std-related .homeya-box:hover .image img,
.rt-luxury-related .homeya-box:hover .image-wrap img,
.rt-luxury-related .homeya-box:hover .image img,
.rt-metropolis-related .homeya-box:hover .image-wrap img,
.rt-metropolis-related .homeya-box:hover .image img,
.rt-sc-related .homeya-box:hover .image-wrap img,
.rt-sc-related .homeya-box:hover .image img {
    transform: scale(1.05);
}

.flat-latest-property .property-item h3 a,
.flat-latest-property .homeya-box h6 a,
.flat-latest-property .homeya-box .title-1 a,
.rt-std-related .property-item h3 a,
.rt-std-related .homeya-box h6 a,
.rt-std-related .homeya-box .title-1 a,
.rt-luxury-related .homeya-box h6 a,
.rt-luxury-related .homeya-box .title-1 a,
.rt-metropolis-related .homeya-box h6 a,
.rt-metropolis-related .homeya-box .title-1 a,
.rt-sc-related .homeya-box h6 a,
.rt-sc-related .homeya-box .title-1 a {
    transition: color 0.25s ease;
}

.flat-latest-property .property-item h3 a:hover,
.flat-latest-property .homeya-box h6 a:hover,
.flat-latest-property .homeya-box .title-1 a:hover,
.rt-std-related .property-item h3 a:hover,
.rt-std-related .homeya-box h6 a:hover,
.rt-std-related .homeya-box .title-1 a:hover,
.rt-luxury-related .homeya-box h6 a:hover,
.rt-luxury-related .homeya-box .title-1 a:hover,
.rt-metropolis-related .homeya-box h6 a:hover,
.rt-metropolis-related .homeya-box .title-1 a:hover,
.rt-sc-related .homeya-box h6 a:hover,
.rt-sc-related .homeya-box .title-1 a:hover {
    color: var(--accent-color, #FF5A1F);
}

/* === Block 4: Footer polish (site-wide) + dark mode auto === */
.footer .top-footer {
    padding: 56px 0 28px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.footer .inner-footer {
    padding: 28px 0;
}

.footer .bottom-footer {
    padding: 22px 0;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    font-size: 14px;
}

.footer h6,
.footer .widget-title,
.footer .footer-heading,
.footer .footer-cl-1 .title,
.footer .footer-col-block > .title,
.footer h5 {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--primary-color, #0F172A);
}

.footer p,
.footer li,
.footer .widget,
.footer .text-variant-2 {
    line-height: 1.75;
    color: var(--secondary-color, #64748B);
}

.footer a {
    position: relative;
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer a:not(.social-list a):not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.footer a:not(.social-list a):not(.btn):hover {
    color: var(--accent-color, #FF5A1F);
}

.footer a:not(.social-list a):not(.btn):hover::after {
    width: 100%;
}

.footer .social-list,
.footer .footer-social,
.footer .list-socials,
.footer .list-social,
.footer .wd-social .list-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 0;
    align-items: center;
}

.footer .social-list a,
.footer .footer-social a,
.footer .list-socials a,
.footer .list-social a,
.footer .wd-social .list-social a.box-icon,
.footer a.box-icon.social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.06);
    color: var(--primary-color, #0F172A);
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.footer .social-list a:hover,
.footer .footer-social a:hover,
.footer .list-socials a:hover,
.footer .list-social a:hover,
.footer .wd-social .list-social a.box-icon:hover,
.footer a.box-icon.social:hover {
    transform: scale(1.1);
    background: var(--accent-color, #FF5A1F);
    color: #fff;
}

/* Dark mode auto — kích hoạt theo OS prefers-color-scheme */
@media (prefers-color-scheme: dark) {
    .footer {
        background-color: #0f172a;
        color: #cbd5e1;
    }

    .footer .top-footer,
    .footer .bottom-footer {
        border-top-color: rgba(203, 213, 225, 0.08);
    }

    .footer h6,
    .footer .widget-title,
    .footer .footer-heading {
        color: #f1f5f9;
    }

    .footer p,
    .footer li,
    .footer .widget {
        color: #cbd5e1;
    }

    .footer a:not(.social-list a):not(.btn):hover {
        color: #60a5fa;
    }

    .footer .social-list a,
    .footer .footer-social a,
    .footer .list-socials a {
        background: rgba(203, 213, 225, 0.08);
        color: #e2e8f0;
    }

    .footer .social-list a:hover,
    .footer .footer-social a:hover,
    .footer .list-socials a:hover {
        background: #60a5fa;
        color: #0f172a;
    }
}

/* Reduced motion guard — disable transforms cho user accessibility */
@media (prefers-reduced-motion: reduce) {
    [data-template] .rt-section-hero-banner .rt-hero-actions a,
    [data-template] .rt-section-hero-banner .rt-hero-gallery-item,
    [data-template] .rt-section-hero-banner .rt-hero-gallery-item img,
    .flat-latest-property .property-item,
    .rt-std-related .property-item,
    .flat-latest-property .property-item .image-wrap img,
    .rt-std-related .property-item .image-wrap img,
    .footer .social-list a,
    .footer a::after {
        transition: none !important;
        transform: none !important;
    }
}
