/* ============================================================
   Ringchan Tour Packages — tours.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 ───────────────────────────────────────────────── */
.rtp-section {
    background: #f7f5f0;
    padding: clamp(60px, 9vw, 100px) clamp(20px, 5vw, 80px);
    position: relative;
    font-family: 'Montserrat', sans-serif;
}

/* ── Header ────────────────────────────────────────────────── */
.rtp-header {
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 64px);
}

.rtp-eyebrow {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #b8860b;
    margin-bottom: 14px;
    position: relative;
}
.rtp-eyebrow::before, .rtp-eyebrow::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: #b8860b;
    opacity: .5;
}
.rtp-eyebrow::before { right: calc(100% + 10px); }
.rtp-eyebrow::after  { left:  calc(100% + 10px); }

.rtp-title {
    font-family: 'Montserrat', serif;
    font-size: clamp(30px, 4.5vw, 52px);
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 14px;
    line-height: 1.1;
}

.rtp-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #777;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Grid layout ───────────────────────────────────────────── */
.rtp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

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

/* ── Base card ─────────────────────────────────────────────── */
.rtp-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1),
                box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(24px);
    animation: rtpUp 0.65s cubic-bezier(0.16,1,0.3,1) forwards;
    animation-delay: calc(var(--i) * 100ms + 100ms);
    position: relative;
    display: flex;
    flex-direction: column;
}
.rtp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

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

/* ── Remove featured spanning — all cards uniform ──────────── */
.rtp-featured {
    grid-column: auto;
    grid-row: auto;
}

/* ── Thumbnail image (uniform for all cards) ───────────────── */
.rtp-thumb,
.rtp-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.rtp-thumb-bg,
.rtp-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.rtp-card:hover .rtp-thumb-bg,
.rtp-card:hover .rtp-img {
    transform: scale(1.07);
}

.rtp-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.35) 100%);
}

/* Featured card image overlay — match non-featured style */
.rtp-img-badge-wrap {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, transparent 55%);
    padding: 14px 14px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.rtp-img-badge {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(0,0,0,0.35);
    padding: 4px 12px;
    border-radius: 20px;
    text-shadow: none;
}

.rtp-img-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 300;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.3px;
}

.rtp-thumb-badge {
    position: absolute;
    top: 14px;
    left: 14px;
}

/* ── Card body ─────────────────────────────────────────────── */
.rtp-body {
    padding: 22px 24px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ── Badges ────────────────────────────────────────────────── */
.rtp-badge {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

/* Badge colors */
.rtp-badge-gold    { background: #FFF8E1; color: #9A7200; border: 1px solid #F5CC4A; }
.rtp-badge-pink    { background: #FFF0F5; color: #9C2764; border: 1px solid #F4B8D1; }
.rtp-badge-blue    { background: #EFF6FF; color: #1E5FAF; border: 1px solid #BFDBFE; }
.rtp-badge-orange  { background: #FFF4ED; color: #9A4000; border: 1px solid #FDBA74; }
.rtp-badge-green   { background: #F0FDF4; color: #166534; border: 1px solid #86EFAC; }
.rtp-badge-red     { background: #FEF2F2; color: #991B1B; border: 1px solid #FCA5A5; }
.rtp-badge-purple  { background: #F5F3FF; color: #5B21B6; border: 1px solid #C4B5FD; }

/* ── Name ──────────────────────────────────────────────────── */
.rtp-name {
    font-family: 'Montserrat', serif;
    font-size: clamp(17px, 2vw, 22px);
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 10px;
    line-height: 1.3;
}

.rtp-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #888;
    margin: 0;
}
.rtp-location span { font-weight: 300; }
.rtp-location strong { color: #444; font-weight: 500; }

/* ── Divider ───────────────────────────────────────────────── */
.rtp-divider {
    height: 1px;
    background: #f0ede8;
    margin: 14px 0;
}

/* ── Meta row ──────────────────────────────────────────────── */
.rtp-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.rtp-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #555;
}
.rtp-meta-item svg {
    color: #aaa;
    flex-shrink: 0;
}

/* ── Footer row ────────────────────────────────────────────── */
.rtp-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.rtp-price-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rtp-price-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 300;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rtp-price {
    font-family: 'Montserrat', serif;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

/* ── Button ────────────────────────────────────────────────── */
.rtp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a1a1a;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 50px;
    transition: background 0.25s, transform 0.2s;
}
.rtp-btn:hover {
    background: #FFD700;
    color: #000;
    transform: scale(1.04);
}

/* ── Responsive tweaks ─────────────────────────────────────── */
@media (max-width: 560px) {
    .rtp-thumb,
    .rtp-img-wrap { height: 170px; }
}

@media (prefers-reduced-motion: reduce) {
    .rtp-card { animation: none; opacity: 1; transform: none; }
}
