/* ========================================================
   POPULAR TOURS TABBED SECTION (Matches Reference Image)
   ======================================================== */

.pop-tours-section {
    background: #ffffff;
    padding: clamp(3rem, 6vw, 5.5rem) 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Clear space for the hero feature strip that overlaps the section seam */
@media (min-width: 769px) {
    .pop-tours-section {
        padding-top: calc(var(--hero-features-overlap, 3.5rem) + clamp(2rem, 4vw, 3.25rem));
    }
}

@media (max-width: 768px) {
    .pop-tours-section {
        /* Features are in-flow on mobile — normal spacing is enough */
        padding-top: clamp(1.35rem, 4vw, 2rem);
        overflow: visible;
    }
}

.pop-tours-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
}

/* Header */
.pop-tours-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

.pop-kicker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #c97a38;
    text-transform: uppercase;
    margin: 0 0 0.5rem 0;
}

.pop-kicker-dash {
    color: #c97a38;
}

.pop-heading {
    font-family: "Outfit", sans-serif;
    font-size: clamp(2rem, 3.4vw, 2.85rem);
    font-weight: 800;
    color: #111827;
    line-height: 1.15;
    margin: 0;
    letter-spacing: -0.02em;
}

.pop-heading-accent {
    font-family: "Cinzel", "Outfit", serif;
    font-style: italic;
    font-weight: 700;
    color: #d97736;
}

/* View All Button */
.pop-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 1.5px solid #d1d5db;
    border-radius: 999px;
    padding: 0.65rem 1.45rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
    background: #ffffff;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.pop-view-all-btn svg {
    transition: transform 0.25s ease;
}

.pop-view-all-btn:hover {
    border-color: #d97736;
    color: #d97736;
    box-shadow: 0 4px 14px rgba(217, 119, 54, 0.15);
    transform: translateY(-2px);
}

.pop-view-all-btn:hover svg {
    transform: translateX(3px);
}

/* Tabs Bar */
.pop-tabs-wrapper {
    margin-bottom: 2.25rem;
}

.pop-tabs-pill-box {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 0.35rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.pop-tabs-pill-box::-webkit-scrollbar {
    display: none;
}

.pop-tab {
    background: transparent;
    border: none;
    border-radius: 999px;
    padding: 0.55rem 1.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.22s ease;
    outline: none;
}

.pop-tab:hover:not(.active) {
    color: #111827;
    background: #f3f4f6;
}

.pop-tab.active {
    background: #1b263b;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(27, 38, 59, 0.25);
}

/* Panels */
.pop-tab-panel {
    display: none;
    animation: popFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pop-tab-panel.active {
    display: block;
}

@keyframes popFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carousel Layout */
.pop-carousel-wrap {
    position: relative;
    padding: 0.5rem 0;
}

.pop-carousel-viewport {
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0.25rem 1rem 0.25rem;
}

.pop-carousel-viewport::-webkit-scrollbar {
    display: none;
}

.pop-carousel-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 3 * 1.5rem) / 4);
    gap: 1.5rem;
    padding: 0.25rem 0;
}

/* Navigation Arrow Buttons */
.pop-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
    outline: none;
}

.pop-nav-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    transition: transform 0.2s ease;
}

.pop-nav-btn:hover:not(:disabled) {
    background: #ffffff;
    color: #d97736;
    border-color: #d97736;
    box-shadow: 0 6px 20px rgba(217, 119, 54, 0.25);
    transform: translateY(-50%) scale(1.08);
}

.pop-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.pop-nav-prev {
    left: -22px;
}

.pop-nav-next {
    right: -22px;
}

/* Card Component */
.pop-card {
    background: #ffffff;
    border: 1px solid #eef0ed;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
    scroll-snap-align: start;
    height: 100%;
}

.pop-card:hover {
    transform: translateY(-6px);
    border-color: #d1d5db;
    box-shadow: 0 14px 34px rgba(15, 41, 32, 0.1);
}

/* Card Media */
.pop-card-media {
    position: relative;
    width: 100%;
    height: 215px;
    overflow: hidden;
    background: #f3f4f6;
}

.pop-card-img-link {
    display: block;
    width: 100%;
    height: 100%;
}

.pop-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.pop-card:hover .pop-card-media img {
    transform: scale(1.06);
}

/* Duration Tag */
.pop-duration-badge {
    position: absolute;
    top: 13px;
    left: 13px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 999px;
    padding: 5px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    font-size: 11.5px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: 0.02em;
    z-index: 2;
    pointer-events: none;
}

.pop-clock-icon {
    width: 13px;
    height: 13px;
    stroke: #d97736;
    flex-shrink: 0;
}

/* Card Body */
.pop-card-body {
    padding: 1.15rem 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pop-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 0.5rem 0;
    min-height: 2.7em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pop-card-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pop-card-title a:hover {
    color: #d97736;
}

/* Route */
.pop-card-route {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #64748b;
    margin: 0 0 0.75rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pop-pin-icon {
    width: 14px;
    height: 14px;
    stroke: #16a34a;
    flex-shrink: 0;
}

/* Price */
.pop-card-price {
    margin: 0 0 1rem 0;
    font-size: 0.88rem;
    font-weight: 500;
    color: #4b5563;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.pop-card-price-req {
    color: #4b5563;
    font-weight: 600;
    font-size: 0.9rem;
}

.pop-card-price-del {
    color: #9ca3af;
    font-size: 0.82rem;
    margin-right: 4px;
}

.pop-card-price-val {
    color: #0f2920;
    font-size: 1.08rem;
    font-weight: 800;
}

.pop-card-price-unit {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Actions Row */
.pop-card-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

/* WhatsApp Round Button */
.pop-btn-whatsapp {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid #22c55e;
    background: #ffffff;
    color: #16a34a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.12);
}

.pop-btn-whatsapp svg {
    width: 20px;
    height: 20px;
    stroke: #16a34a;
    transition: stroke 0.2s ease;
}

.pop-btn-whatsapp:hover {
    background: #16a34a;
    border-color: #16a34a;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
}

.pop-btn-whatsapp:hover svg {
    stroke: #ffffff;
}

/* Details Pill Button */
.pop-btn-details {
    flex: 1;
    height: 42px;
    background: #e07a38;
    color: #ffffff;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 3px 12px rgba(224, 122, 56, 0.25);
    border: none;
}

.pop-btn-details svg {
    transition: transform 0.25s ease;
}

.pop-btn-details:hover {
    background: #cf6725;
    box-shadow: 0 6px 18px rgba(224, 122, 56, 0.4);
    transform: translateY(-2px);
    color: #ffffff;
}

.pop-btn-details:hover svg {
    transform: translateX(3px);
}

/* Pagination Dots */
.pop-dots-wrap {
    margin-top: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pop-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pop-dot.active {
    width: 28px;
    border-radius: 999px;
    background: #e8a838;
}

/* Empty state */
.pop-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
    font-size: 0.95rem;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .pop-carousel-track {
        grid-auto-columns: calc((100% - 2 * 1.5rem) / 3);
    }
}

@media (max-width: 860px) {
    .pop-carousel-track {
        grid-auto-columns: calc((100% - 1.25rem) / 2);
        gap: 1.25rem;
    }
    .pop-nav-prev {
        left: -12px;
    }
    .pop-nav-next {
        right: -12px;
    }
}

@media (max-width: 640px) {
    .pop-tours-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .pop-carousel-track {
        grid-auto-columns: 85%;
        gap: 1rem;
    }
    .pop-nav-btn {
        display: none;
    }
}
