/**
 * fp-destinations.css
 * Part of SouthKorea theme — extracted from fp-destinations.php
 * @package SouthKorea
 */

/* ── Destination Carousel ──────────────────────────────────── */
.sk-dest-carousel-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 48px 24px;
    flex-wrap: wrap;
    gap: 16px;
}
.sk-dest-carousel-nav { display: flex; gap: 8px; padding-bottom: 4px; }
.sk-carousel-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.5);
    font-size: 16px;
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}
.sk-carousel-btn:hover {
    border-color: rgba(0,200,255,.4);
    color: #00c8ff;
    background: rgba(0,200,255,.06);
}
.sk-carousel-btn:disabled {
    opacity: .3;
    cursor: not-allowed;
}

/* ── Carousel track: hide scrollbar across all browsers ── */
.carousel-track {
    scrollbar-width: none;         /* Firefox */
    -ms-overflow-style: none;      /* IE / Edge legacy */
}
.carousel-track::-webkit-scrollbar { display: none; } /* Chrome / Safari */

/* Card */
a.dest-card { text-decoration: none; display: block; overflow: hidden; }
.dest-card-bg {
    width: 300px;
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover !important;
    background-position: center !important;
}
.dest-card:hover .dest-card-bg {
    transform: scale(1.04);
    transition: transform .5s cubic-bezier(.2,.8,.2,1);
}

/* FIX #5: wrap animations in prefers-reduced-motion */
@media (prefers-reduced-motion: no-preference) {
    .dest-card-char { transition: transform .4s ease, opacity .4s ease; }
    .dest-card:hover .dest-card-char { transform: scale(1.08); opacity: .7 !important; }
    .dest-cta { opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
    .dest-card:hover .dest-cta { opacity: 1; transform: translateY(0); }
    .dest-card::after { transform: scaleX(0); transition: transform .3s cubic-bezier(.23,1,.32,1); }
    .dest-card:hover::after { transform: scaleX(1); }
}
/* Reduced-motion fallback: always show CTA, no scale */
@media (prefers-reduced-motion: reduce) {
    .dest-cta { opacity: 1; transform: none; }
    .dest-card::after { transform: scaleX(1); }
}

.dest-card-char {
    font-family: 'Noto Serif KR', serif;
    font-size: 88px;
    line-height: 1;
    user-select: none;
    pointer-events: none;
}
.dest-cta {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'DM Sans', sans-serif;
    margin-top: 10px;
    display: block;
}
.dest-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--dest-neon, #00c8ff);
    transform-origin: left;
}
.dest-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(0,0,0,.9), transparent);
    z-index: 1;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .sk-dest-carousel-header { padding: 0 16px 20px; }
    .carousel-section { padding-left: 0 !important; padding-right: 0 !important; }
    .dest-card-bg { width: 260px; height: 360px; }
}
@media (max-width: 480px) {
    .dest-card-bg { width: 220px; height: 300px; }
}