/**
 * Homepage Modular Styles
 * Styles for the homepage-modular.php template.
 *
 * @package PuntaCanaAdventures
 * @since 2.0.0
 */

/* Featured Tours Grid Section */
.pca-tours-section {
    margin-top: var(--space-2xl); /* Using a design token for consistency */
}

.pca-tours-section .section-header {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: var(--space-lg);
}

.pca-tours-section .section-header h2 {
    font-size: var(--fs-h2); /* Using design token */
    font-weight: var(--weight-bold); /* Using design token */
    margin-bottom: var(--space-sm); /* Using design token */
    line-height: var(--lh-head);
    color: var(--color-heading);
}

.pca-tours-section .section-header p {
    font-size: var(--fs-body); /* Using design token */
    color: var(--color-muted); /* Using design token */
    line-height: var(--lh-body);
}

/* View All Tours Button */
.pca-tours-section .view-all-tours-btn {
    display: inline-block;
    padding: var(--space-md) var(--space-2xl);
    font-size: var(--fs-body);
    font-weight: var(--weight-semibold);
    background: var(--color-primary); /* Using design token */
    color: var(--color-background); /* Using design token (white) */
    text-decoration: none;
    border-radius: var(--radius-lg); /* Using design token */
    transition: background-color 0.2s ease;
}

.pca-tours-section .view-all-tours-btn:hover {
    background: var(--color-primary-hover); /* Using design token */
}

.pca-tours-section .view-all-tours-btn:focus-visible {
    outline: 3px solid var(--color-primary-hover);
    outline-offset: 2px;
}

/* Responsive adjustments for typography */
@media (max-width: 767px) {
    .pca-tours-section {
        margin-top: var(--space-xl);
    }

    .pca-tours-section .section-header h2 {
        font-size: var(--fs-h3);
    }

    .pca-tours-section .section-header p {
        font-size: var(--fs-sm);
    }

    .pca-tours-section .view-all-tours-btn {
        padding: var(--space-sm) var(--space-xl);
        font-size: var(--fs-sm);
    }
}

/* Ensure proper spacing for the CTA button */
.pca-tours-section .text-center.mt-4 {
    margin-top: var(--space-xl);
}

/* ==========================================================================
   CATEGORY TOUR SECTIONS
   GetYourGuide-inspired clean, centered design
   ========================================================================== */

.pca-category-section {
    padding: 3rem 0;
    background: #fff;
}

.pca-category-section:nth-child(even) {
    background: #f9fafb;
}

.pca-category-section__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.pca-category-section__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.02em;
}

.pca-category-section__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: flex-start;
}

.pca-category-section__grid .col-lg-3 {
    flex: 0 0 calc(25% - 1.125rem);
    max-width: calc(25% - 1.125rem);
}

.pca-category-section__footer {
    text-align: center;
    margin-top: 2rem;
}

.pca-category-section__link {
    display: inline-block;
    color: #0d6efd;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 2px solid #0d6efd;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.pca-category-section__link:hover {
    background: #0d6efd;
    color: #fff;
    text-decoration: none;
}

/* Tablet: 2 columns */
@media (max-width: 991px) {
    .pca-category-section__grid .col-lg-3 {
        flex: 0 0 calc(50% - 0.75rem);
        max-width: calc(50% - 0.75rem);
    }
}

/* Pay Later Badge - Green styling */
.tour-badge.tour-badge-paylater {
    background: #ecfdf5 !important;
    color: #059669 !important;
    border: 1px solid #a7f3d0 !important;
    cursor: help;
}

/* Hide price on homepage category cards only */
.pca-category-section .pca-tour-price-row {
    display: none !important;
}

/* Mobile: 1 column */
@media (max-width: 575px) {
    .pca-category-section {
        padding: 2rem 0;
    }

    .pca-category-section__container {
        padding: 0 1rem;
    }

    .pca-category-section__title {
        font-size: 1.375rem;
        margin-bottom: 1rem;
    }

    .pca-category-section__grid .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .pca-category-section__footer {
        margin-top: 1.5rem;
    }

    .pca-category-section__link {
        width: 100%;
        text-align: center;
    }
}