/* ===== Riverside Pavilion Page ===== */

/* ===== Hero ===== */
.rp-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, hsl(210, 80%, 14%) 0%, hsl(210, 70%, 24%) 50%, hsl(185, 60%, 35%) 100%);
}

.rp-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.rp-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(233, 163, 70, 0.12) 0%, transparent 60%),
                radial-gradient(ellipse at bottom left, rgba(45, 180, 178, 0.12) 0%, transparent 60%);
}

.rp-particle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
}

.rp-particle-1 {
    width: 20rem; height: 20rem;
    top: -5rem; right: -5rem;
    background: var(--yyi-warm);
    animation: float 6s ease-in-out infinite;
}

.rp-particle-2 {
    width: 16rem; height: 16rem;
    bottom: 10%; left: -4rem;
    background: var(--secondary);
    animation: float 8s ease-in-out infinite reverse;
}

.rp-particle-3 {
    width: 10rem; height: 10rem;
    top: 40%; right: 20%;
    background: white;
    animation: float 5s ease-in-out infinite;
    animation-delay: 1s;
}

.rp-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding-top: 8rem;
    padding-bottom: 6rem;
}

.rp-back-link {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0 auto 1.5rem;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 9999px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
    transition: color 0.2s ease, background 0.2s ease;
    text-decoration: none;
}

.rp-back-link svg {
    width: 1rem;
    height: 1rem;
}

.rp-back-link:hover {
    color: white;
    background: rgba(255,255,255,0.15);
}

.rp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 9999px;
    padding: 0.5rem 1.25rem;
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.875rem;
    font-weight: 500;
}

.rp-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.rp-hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 500;
    color: var(--yyi-warm);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.rp-hero-desc {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.85);
    max-width: 44rem;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

/* Hero progress */
.rp-hero-progress {
    max-width: 540px;
    margin: 0 auto 2.5rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-xl);
    padding: 1.5rem 2rem;
}

.rp-progress-numbers {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.rp-raised {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--yyi-warm);
    display: block;
}

.rp-target {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: white;
    display: block;
}

.rp-progress-pct {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
}

.rp-progress-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.rp-bar-track {
    width: 100%;
    height: 0.875rem;
    background: rgba(255,255,255,0.15);
    border-radius: 9999px;
    overflow: hidden;
}

.rp-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--yyi-warm) 0%, hsl(35, 85%, 65%) 100%);
    border-radius: 9999px;
    transition: width 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rp-hero-ctas {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 640px) {
    .rp-hero-ctas {
        flex-direction: row;
        justify-content: center;
    }
}

.rp-hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.rp-scroll-line {
    width: 1px;
    height: 3rem;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 0.8; transform: scaleY(1.2); }
}

/* ===== About Section ===== */
.rp-about-text {
    color: var(--muted-foreground);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.rp-about-grid {
    display: grid;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .rp-about-grid {
        grid-template-columns: 1.2fr 1fr;
    }
}

.rp-highlights {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.rp-highlight {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.5rem;
    background: var(--card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--secondary);
    flex: 1;
    min-width: 120px;
}

.rp-highlight-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.rp-highlight-label {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Location card */
.rp-location-card {
    background: var(--card);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
}

.rp-location-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--foreground);
}

.rp-location-header svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--secondary);
}

.rp-location-address {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.rp-location-desc {
    color: var(--muted-foreground);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.rp-map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
    text-decoration: none;
}

.rp-map-link:hover {
    color: var(--primary);
}

/* ===== Floor Plan ===== */
.rp-floorplan-wrapper {
    display: grid;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .rp-floorplan-wrapper {
        grid-template-columns: 1fr 280px;
    }
}

.rp-floorplan-img-container {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-card);
    overflow: visible;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.rp-floorplan-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    border-radius: var(--radius);
}

.rp-floorplan-legend {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 6rem;
}

.rp-legend-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.rp-legend-hint {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-bottom: 1.1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.rp-legend-items {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.rp-legend-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: default;
    padding: 0.4rem 0.5rem;
    border-radius: var(--radius);
    transition: background 0.15s;
}

.rp-legend-item:hover {
    background: var(--accent, #f4f6fa);
}

.rp-legend-num {
    flex-shrink: 0;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    background: var(--yyi-warm);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
}

.rp-legend-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.rp-legend-text strong {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--foreground);
    line-height: 1.3;
}

.rp-legend-text span {
    font-size: 0.72rem;
    color: var(--muted-foreground);
    line-height: 1.3;
}

.rp-legend-zoom-hint {
    display: none; /* shown only on mobile via media query */
    margin-top: 1rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--muted-foreground);
    align-items: center;
    gap: 0.4rem;
}

/* ===== Facilities ===== */
.rp-facilities-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .rp-facilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .rp-facilities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.rp-facility-card {
    background: var(--card);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

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

.rp-facility-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.rp-facility-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.rp-facility-card h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

.rp-facility-card p {
    color: var(--muted-foreground);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===== Hotspot map ===== */
.rp-hotspot-map {
    position: relative;
    display: inline-block;
    /* wraps tightly to the image so % positions are relative to the image */
    line-height: 0;
}

.rp-hotspot {
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--yyi-warm);
    border: 2px solid white;
    cursor: pointer;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 0 rgba(233,163,70,0.6);
    animation: hotspot-pulse 2.5s ease-out infinite;
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 20;
}

.rp-hotspot:hover,
.rp-hotspot:focus {
    background: var(--primary);
    transform: translate(-50%, -50%) scale(1.3);
    outline: none;
    box-shadow: 0 0 0 4px rgba(20,53,92,0.25);
    animation: none;
}

@keyframes hotspot-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(233,163,70,0.6); }
    70%  { box-shadow: 0 0 0 10px rgba(233,163,70,0); }
    100% { box-shadow: 0 0 0 0 rgba(233,163,70,0); }
}

/* stagger pulse delays */
.rp-hotspot:nth-child(2)  { animation-delay: 0.2s; }
.rp-hotspot:nth-child(3)  { animation-delay: 0.4s; }
.rp-hotspot:nth-child(4)  { animation-delay: 0.6s; }
.rp-hotspot:nth-child(5)  { animation-delay: 0.8s; }
.rp-hotspot:nth-child(6)  { animation-delay: 1.0s; }
.rp-hotspot:nth-child(7)  { animation-delay: 1.2s; }
.rp-hotspot:nth-child(8)  { animation-delay: 1.4s; }
.rp-hotspot:nth-child(9)  { animation-delay: 1.6s; }
.rp-hotspot:nth-child(10) { animation-delay: 1.8s; }

/* Tooltip */
.rp-hotspot-tooltip {
    position: absolute;
    z-index: 30;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 0.875rem 1rem;
    width: 220px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.rp-hotspot-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.rp-tooltip-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.35rem;
}

.rp-tooltip-desc {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    line-height: 1.5;
    margin: 0;
}

/* ===== Gallery – 3-up with lightbox ===== */
.rp-gallery-grid-3 {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .rp-gallery-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.rp-gallery-item-3 {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    background: var(--card);
    box-shadow: var(--shadow-soft);
    aspect-ratio: 16/10;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.rp-gallery-item-3:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
}

.rp-gallery-item-3 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.rp-gallery-item-3:hover img {
    transform: scale(1.05);
}

.rp-gallery-caption-3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1rem 0.875rem;
    background: linear-gradient(to top, rgba(14,35,66,0.9) 0%, transparent 100%);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rp-gallery-caption-3 svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.rp-gallery-item-3:hover .rp-gallery-caption-3 {
    opacity: 1;
}

/* ===== Lightbox ===== */
.rp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(5, 15, 35, 0.96);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.rp-lightbox.open {
    opacity: 1;
    pointer-events: all;
}

.rp-lightbox-inner {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.rp-lightbox-img {
    max-width: 90vw;
    max-height: 78vh;
    object-fit: contain;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    display: block;
    transition: opacity 0.2s ease;
}

.rp-lightbox-caption {
    color: rgba(255,255,255,0.8);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.rp-lightbox-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 2.75rem;
    height: 2.75rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 9001;
}

.rp-lightbox-close:hover { background: rgba(255,255,255,0.25); }
.rp-lightbox-close svg { width: 1.25rem; height: 1.25rem; }

.rp-lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 9001;
}

.rp-lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.rp-lightbox-nav svg { width: 1.5rem; height: 1.5rem; }
.rp-lightbox-prev { left: 1.5rem; }
.rp-lightbox-next { right: 1.5rem; }

/* ===== Donate CTA ===== */
.rp-cta {
    background: linear-gradient(135deg, hsl(210, 80%, 18%) 0%, hsl(210, 70%, 26%) 50%, hsl(185, 60%, 38%) 100%);
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.rp-cta-content {
    position: relative;
    z-index: 10;
}

.rp-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.rp-cta-buttons .btn {
    min-width: 200px;
    font-size: 1rem;
    padding: 0.9rem 2rem;
}

/* Bank Details — riverside-pavilion.html */
.rp-bank-details {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    max-width: 480px;
    margin: 0 auto 2rem;
    text-align: left;
}

.rp-bank-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--yyi-warm);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.rp-bank-header svg { width: 1.1rem; height: 1.1rem; }

.rp-bank-grid { display: flex; flex-direction: column; gap: 0.5rem; }

.rp-bank-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rp-bank-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    flex-shrink: 0;
    width: 130px;
}

.rp-bank-value {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    text-align: right;
}

.rp-bank-ref {
    color: var(--yyi-warm);
    font-size: 1rem;
    letter-spacing: 0.05em;
}

/* ── Copy buttons ── */
.rp-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: auto; /* push to right edge */
    padding: 0.25rem 0.65rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: rgba(255,255,255,0.75);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.rp-copy-btn svg {
    width: 0.85rem;
    height: 0.85rem;
}
.rp-copy-btn:hover {
    background: rgba(255,255,255,0.15);
    color: white;
    border-color: rgba(255,255,255,0.35);
}
.rp-copy-btn.copied {
    background: rgba(34,197,94,0.2);
    border-color: rgba(34,197,94,0.5);
    color: #86efac;
}

/* ── Share section ── */
.rp-share {
    margin: 2rem 0 0;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.rp-share-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 1rem;
}
.rp-share-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}
.rp-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.rp-share-btn:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,0.3); }
.rp-share-btn svg { width: 1.1rem; height: 1.1rem; flex-shrink: 0; }

.rp-share-copy {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
}
.rp-share-copy.copied {
    background: rgba(34,197,94,0.2);
    border-color: rgba(34,197,94,0.5);
    color: #86efac;
}
.rp-share-whatsapp {
    background: #25d366;
    color: white;
}
.rp-share-facebook {
    background: #1877f2;
    color: white;
}

.rp-cta-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
}

.rp-cta-trust span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* =====================================================
   MOBILE OPTIMISATION  (max-width: 767px)
   ===================================================== */
@media (max-width: 767px) {

    /* ── Hero ── */
    .rp-hero-content {
        padding-top: 6rem;
        padding-bottom: 4rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .rp-hero-title {
        font-size: clamp(2.2rem, 11vw, 3.5rem);
        margin-bottom: 0.5rem;
    }

    .rp-hero-subtitle {
        font-size: 0.85rem;
        letter-spacing: 0.04em;
        margin-bottom: 1rem;
    }

    .rp-hero-desc {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.7;
    }

    .rp-hero-progress {
        padding: 1.1rem 1.1rem;
        margin-bottom: 1.5rem;
    }

    .rp-raised,
    .rp-target {
        font-size: 1.4rem;
    }

    .rp-progress-pct {
        font-size: 1rem;
    }

    .rp-hero-ctas {
        flex-direction: column;
        width: 100%;
    }

    .rp-hero-ctas .btn {
        width: 100%;
        justify-content: center;
    }

    /* ── About ── */
    .rp-about-grid {
        gap: 2rem;
    }

    /* About text smaller on mobile */
    .rp-about-text {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 1.1rem;
    }

    .rp-highlights {
        gap: 0.6rem;
        flex-wrap: nowrap; /* keep on one row */
    }

    .rp-highlight {
        padding: 0.75rem 0.6rem;
        min-width: 0;
        flex: 1;
    }

    .rp-highlight-value {
        font-size: 1.25rem;
        white-space: nowrap;
    }

    .rp-highlight-label {
        font-size: 0.68rem;
    }

    .rp-location-card {
        padding: 1.25rem;
    }

    /* ── Floor Plan ── */
    .rp-floorplan-wrapper {
        gap: 1.5rem;
    }

    .rp-floorplan-img-container {
        padding: 0.75rem;
        overflow: hidden;
        touch-action: none; /* handled by JS pinch-zoom */
    }

    .rp-hotspot-map {
        transform-origin: center center;
        transition: transform 0.05s linear;
        cursor: grab;
    }

    .rp-floorplan-img {
        min-width: 280px;
    }

    /* Hotspot dots: slightly smaller on mobile */
    .rp-hotspot {
        width: 1.1rem;
        height: 1.1rem;
    }

    /* Tooltip: full width */
    .rp-hotspot-tooltip {
        width: calc(100vw - 2.5rem);
        max-width: 280px;
    }

    /* Legend below floor plan on mobile */
    .rp-floorplan-legend {
        position: static;
        order: 2;
    }

    /* Legend: show in 2-col grid on mobile */
    .rp-legend-items {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    /* Show zoom hint on mobile */
    .rp-legend-zoom-hint {
        display: flex;
    }

    /* ── Facilities ── */
    .rp-facility-card {
        padding: 1.25rem;
    }

    .rp-facility-icon {
        width: 2.75rem;
        height: 2.75rem;
        margin-bottom: 0.875rem;
    }

    .rp-facility-icon svg {
        width: 1.4rem;
        height: 1.4rem;
    }

    /* ── Gallery ── */
    .rp-gallery-grid-3 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .rp-gallery-caption-3 {
        opacity: 1; /* always show caption on mobile (no hover) */
    }

    /* ── Lightbox ── */
    .rp-lightbox-prev { left: 0.5rem; }
    .rp-lightbox-next { right: 0.5rem; }

    .rp-lightbox-nav {
        width: 2.5rem;
        height: 2.5rem;
    }

    .rp-lightbox-img {
        max-width: 95vw;
        max-height: 70vh;
    }

    /* ── CTA section ── */
    .rp-cta {
        padding: 3.5rem 0;
    }

    /* Bank details */
    .rp-bank-details {
        padding: 1.1rem;
        max-width: 100%;
    }

    .rp-bank-label {
        width: 110px;
        font-size: 0.75rem;
    }

    .rp-bank-value {
        font-size: 0.85rem;
    }

    .rp-copy-btn span {
        display: none; /* show icon only on small screens */
    }

    .rp-copy-btn {
        padding: 0.25rem 0.4rem;
    }

    /* Share buttons */
    .rp-share-buttons {
        gap: 0.5rem;
    }

    .rp-share-btn {
        padding: 0.6rem 1rem;
        font-size: 0.82rem;
    }

    /* CTA buttons */
    .rp-cta-buttons {
        flex-direction: column;
        align-items: stretch;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .rp-cta-buttons .btn {
        min-width: unset;
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    /* Trust badges */
    .rp-cta-trust {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        font-size: 0.82rem;
    }
}

/* Extra small screens (max-width: 400px) */
@media (max-width: 400px) {
    .rp-hero-title {
        font-size: 2rem;
    }

    .rp-progress-numbers {
        gap: 0.25rem;
    }

    .rp-raised,
    .rp-target {
        font-size: 1.2rem;
    }

    .rp-bank-label {
        width: 95px;
    }
}
