/* ============================================================
   Galapagos Departures Slider v1.3.0 — Dana Tours Colors
   Colors: #edb95d (gold), #415f13 (green), #0a2540 (navy), #e83030 (red)
   Family: matches dates-prices-overrides.css (dates & prices table)
   ============================================================ */

.gds-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 0;
    font-family: 'Poppins', -apple-system, sans-serif;
    position: relative;
}

.gds-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    padding: 0 20px;
}

.gds-title {
    font-size: 2.2rem; font-weight: 700; color: #0a2540;
    margin: 0; line-height: 1.2;
}
.gds-title::after {
    content: ''; display: block; width: 60px; height: 3px;
    background: #edb95d; margin-top: 8px; border-radius: 2px;
}

.gds-subtitle {
    font-size: 0.9rem; color: #8c8f8e;
    margin: 10px 0 0; font-weight: 300;
}

.gds-nav { display: flex; gap: 10px; }
.gds-arrow {
    width: 44px; height: 44px; border-radius: 50%;
    border: 2px solid #dce0e0; background: #fff; color: #000;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.gds-arrow:hover {
    background: #415f13; color: #fff; border-color: #415f13;
    transform: scale(1.05); box-shadow: 0 4px 16px rgba(65,95,19,0.25);
}
.gds-arrow:disabled { opacity: 0.35; cursor: not-allowed; }

.gds-carousel { overflow: hidden; padding: 0 20px; }
.gds-track {
    display: flex; gap: 20px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.gds-card {
    flex: 0 0 275px; border-radius: 12px; overflow: hidden; background: #fff;
    box-shadow: 0 3px 16px rgba(0,0,0,0.07); transition: all 0.3s ease;
    cursor: pointer; position: relative; display: flex; flex-direction: column;
    animation: gds-fade-in 0.5s ease-out; animation-fill-mode: both;
}
.gds-card:nth-child(1){animation-delay:0s} .gds-card:nth-child(2){animation-delay:.06s}
.gds-card:nth-child(3){animation-delay:.12s} .gds-card:nth-child(4){animation-delay:.18s}
.gds-card:nth-child(5){animation-delay:.24s} .gds-card:nth-child(6){animation-delay:.30s}

@keyframes gds-fade-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.gds-card:hover { transform: translateY(-5px); box-shadow: 0 8px 32px rgba(0,0,0,0.12); }

.gds-card-image {
    width: 100%; height: 170px; background: #415f13;
    background-size: cover; background-position: center;
    position: relative; overflow: hidden;
}
.gds-card-image img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
}
.gds-card:hover .gds-card-image img { transform: scale(1.06); }
.gds-card-image::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 50%;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
}

.gds-badge-promo {
    position: absolute; top: 10px; left: 10px;
    background: #e83030; color: #fff; font-size: 0.75rem; font-weight: 600;
    padding: 4px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(232,48,48,0.35); z-index: 2;
    animation: gds-pulse 2.5s ease-in-out infinite;
}
@keyframes gds-pulse {
    0%,100% { box-shadow: 0 2px 10px rgba(232,48,48,0.35); }
    50% { box-shadow: 0 2px 18px rgba(232,48,48,0.55); }
}

.gds-badge-nights {
    position: absolute; bottom: 10px; right: 10px;
    background: rgba(10,37,64,0.82); backdrop-filter: blur(6px); color: #edb95d;
    font-size: 0.78rem; font-weight: 600; padding: 4px 11px; border-radius: 999px; z-index: 2;
}

.gds-ship-on-img {
    position: absolute; bottom: 10px; left: 12px; right: 12px; color: #fff;
    font-size: 0.95rem; font-weight: 700; z-index: 2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.85), 0 2px 8px rgba(0,0,0,0.65), 0 0 18px rgba(0,0,0,0.45);
    line-height: 1.3;
}

.gds-card-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.gds-card-title {
    font-size: 1.12rem; font-weight: 600; color: #0a2540; margin: 0 0 4px; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.gds-card-dates { font-size: 0.94rem; color: #7d838a; font-weight: 400; margin-bottom: 10px; }

.gds-availability { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 0.92rem; }
.gds-avail-dots { display: flex; gap: 3px; }
.gds-avail-dot { width: 9px; height: 9px; border-radius: 50%; background: #e0e6ed; }
.gds-avail-dot.filled { background: #415f13; }
.avail-low .gds-avail-dot.filled { background: #edb95d; }
.avail-none .gds-avail-dot.filled { background: #e83030; }
.gds-avail-text { font-weight: 500; }
.avail-ok .gds-avail-text { color: #415f13; }
.avail-low .gds-avail-text { color: #b8860b; }
.avail-none .gds-avail-text { color: #e83030; }

.gds-card-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; margin-bottom: 14px; padding-top: 12px; border-top: 1px solid #f0f0f0; }
.gds-price-current { font-size: 1.7rem; font-weight: 700; color: #0a2540; }
.gds-price-current::before { content: '$'; font-size: 1.15rem; font-weight: 600; margin-right: 1px; }
.gds-price-original { font-size: 1.05rem; color: #b8bfc7; text-decoration: line-through; font-weight: 600; }
.gds-price-per { font-size: 0.8rem; color: #8c8f8e; font-weight: 300; }

.gds-card-cta {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 12px 16px; border-radius: 8px;
    background: #415f13; color: #fff; font-size: 0.95rem; font-weight: 600;
    text-decoration: none; border: 1.5px solid #415f13; transition: all 0.3s ease; box-sizing: border-box;
}
.gds-card-cta:hover { background: #edb95d; color: #000; border-color: #edb95d; }
.gds-card-cta svg { transition: transform 0.3s ease; }
.gds-card-cta:hover svg { transform: translateX(4px); }

.gds-dots { display: flex; justify-content: center; gap: 7px; margin-top: 24px; }
.gds-dot { width: 8px; height: 8px; border-radius: 50%; background: #d0d0d0; cursor: pointer; border: none; transition: all 0.3s ease; padding: 0; }
.gds-dot.active { width: 26px; border-radius: 999px; background: #0a2540; }

.gds-skeleton { display: flex; gap: 20px; width: 100%; }
.gds-skeleton-card {
    flex: 0 0 275px; height: 380px; border-radius: 12px;
    background: linear-gradient(90deg, #f0f2f5 25%, #e0e4e8 50%, #f0f2f5 75%);
    background-size: 200% 100%; animation: gds-shimmer 1.5s infinite;
}
@keyframes gds-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

@media (max-width: 1024px) { .gds-card { flex: 0 0 250px; } .gds-skeleton-card { flex: 0 0 250px; } }
@media (max-width: 768px) {
    .gds-wrapper { padding: 30px 0; } .gds-header { padding: 0 16px; margin-bottom: 20px; }
    .gds-title { font-size: 1.5rem; } .gds-subtitle { font-size: 0.85rem; }
    .gds-carousel { padding: 0 16px; } .gds-card { flex: 0 0 230px; }
    .gds-skeleton-card { flex: 0 0 230px; } .gds-card-image { height: 140px; }
    .gds-card-title { font-size: 1rem; } .gds-price-current { font-size: 1.5rem; }
    .gds-card-dates { font-size: 0.85rem; } .gds-availability { font-size: 0.85rem; }
    .gds-ship-on-img { font-size: 0.85rem; } .gds-card-cta { font-size: 0.88rem; }
}
@media (max-width: 480px) {
    .gds-card { flex: 0 0 210px; } .gds-skeleton-card { flex: 0 0 210px; }
    .gds-card-body { padding: 12px 14px 14px; } .gds-arrow { width: 38px; height: 38px; }
}