/* ============================================================
   Ringchan Popular Destinations — destinations.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=Barlow+Condensed:wght@300;400;500;600;700&display=swap');

/* ── Section wrapper ───────────────────────────────────────── */
.rcd-section {
    background: linear-gradient(135deg, #e8f0f7 0%, #dce8f0 40%, #e4ecf5 100%);
    padding: clamp(60px, 10vw, 110px) clamp(20px, 5vw, 80px);
    position: relative;
    overflow: hidden;
}

/* Subtle texture grid */
.rcd-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,80,160,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,80,160,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Blue accent bar top */
.rcd-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #1a6eb5, transparent);
}

/* ── Header ────────────────────────────────────────────────── */
.rcd-header {
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 72px);
    position: relative;
    z-index: 1;
}

.rcd-eyebrow {
    display: inline-block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #1a6eb5;
    margin-bottom: 18px;
    position: relative;
}
.rcd-eyebrow::before,
.rcd-eyebrow::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 32px;
    height: 1px;
    background: #1a6eb5;
    opacity: 0.5;
}
.rcd-eyebrow::before { right: calc(100% + 12px); }
.rcd-eyebrow::after  { left:  calc(100% + 12px); }

.rcd-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(38px, 6vw, 72px);
    font-weight: 300;
    color: #0d1f35;
    margin: 0 0 18px;
    line-height: 1.05;
    letter-spacing: -0.5px;
}

.rcd-subtitle {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: rgba(13,31,53,0.55);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
    letter-spacing: 0.3px;
}

/* ── Grid ──────────────────────────────────────────────────── */
.rcd-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
}

@media (max-width: 960px) {
    .rcd-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
    .rcd-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ── Card ──────────────────────────────────────────────────── */
.rcd-card {
    position: relative;
    display: block;
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.35);
    aspect-ratio: 3/4;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow:
        0 8px 32px rgba(31, 76, 140, 0.10),
        0 1px 0 rgba(255,255,255,0.8) inset;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.4s, transform 0.5s cubic-bezier(0.16,1,0.3,1),
                box-shadow 0.4s;

    /* staggered entrance */
    opacity: 0;
    transform: translateY(30px);
    animation: rcdFadeUp 0.7s cubic-bezier(0.16,1,0.3,1) forwards;
    animation-delay: calc(var(--i) * 90ms + 100ms);
}

@keyframes rcdFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.rcd-card:hover {
    border-color: rgba(26, 110, 181, 0.45);
    transform: translateY(-6px);
    box-shadow:
        0 20px 48px rgba(31, 76, 140, 0.18),
        0 1px 0 rgba(255,255,255,0.9) inset;
}

/* ── Image ─────────────────────────────────────────────────── */
.rcd-img-wrap {
    position: absolute;
    inset: 0;
}

.rcd-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.9s cubic-bezier(0.16,1,0.3,1);
    transform: scale(1.04);
}
.rcd-card:hover .rcd-img {
    transform: scale(1.12);
}

/* Light glass overlay on image */
.rcd-img-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.18) 45%, rgba(255,255,255,0.04) 100%);
    transition: background 0.4s;
}
.rcd-card:hover .rcd-img-overlay {
    background:
        linear-gradient(to top, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.28) 50%, rgba(255,255,255,0.08) 100%);
}

/* ── Card body ─────────────────────────────────────────────── */
.rcd-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 24px 26px;

    /* Glass panel effect */
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.75);

    transform: translateY(4px);
    transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.rcd-card:hover .rcd-card-body {
    transform: translateY(0);
}

.rcd-tag {
    display: inline-block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: #ffffff;
    background: #1a6eb5;
    padding: 4px 10px 3px;
    margin-bottom: 12px;
    border-radius: 4px;
}

.rcd-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 400;
    color: #0d1f35;
    margin: 0 0 8px;
    line-height: 1.15;
    letter-spacing: 0.3px;
}

.rcd-place {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: rgba(13,31,53,0.55);
    letter-spacing: 0.5px;
    margin: 0;
}

/* ── Arrow icon ────────────────────────────────────────────── */
.rcd-arrow {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(13,31,53,0.5);
    transform: translateY(-4px);
    opacity: 0;
    transition: opacity 0.3s, transform 0.4s cubic-bezier(0.16,1,0.3,1),
                background 0.2s, border-color 0.2s, color 0.2s;
}
.rcd-card:hover .rcd-arrow {
    opacity: 1;
    transform: translateY(0);
    background: #1a6eb5;
    border-color: #1a6eb5;
    color: #fff;
}

/* ── Uniform card sizes — remove first-card feature span ───── */
@media (min-width: 961px) {
    .rcd-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .rcd-card:first-child {
        grid-row: auto;
        aspect-ratio: 3/4;
        min-height: unset;
    }
}

/* ── Footer ────────────────────────────────────────────────── */
.rcd-footer {
    text-align: center;
    margin-top: clamp(36px, 5vw, 60px);
    position: relative;
    z-index: 1;
}

.rcd-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #1a6eb5;
    text-decoration: none;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(26,110,181,0.3);
    transition: border-color 0.3s, gap 0.3s;
}
.rcd-view-all:hover {
    border-color: #1a6eb5;
    gap: 16px;
}

/* ── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .rcd-card { animation: none; opacity: 1; transform: none; }
    .rcd-img  { transition: none; }
}
