/* ==========================================================================
   Tour Booking Pro - Frontend Styles
   ========================================================================== */

:root {
    --tbp-primary: #d63638;    /* Brand Red */
    --tbp-secondary: #2271b1;  /* Brand Blue */
    --tbp-text: #333333;
    --tbp-text-light: #666666;
    --tbp-bg-light: #f9f9f9;
    --tbp-border: #e5e7eb;
    --tbp-radius: 8px;
    --tbp-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* -----------------------------------------
   1. Gallery & Sliders
----------------------------------------- */
.tbp-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}
.tbp-gallery-img {
    width: 100%;
    height: auto;
    border-radius: var(--tbp-radius);
    object-fit: cover;
}

/* Swiper Overrides */
.tbp-gallery-slider {
    margin-bottom: 30px;
    border-radius: 12px;
}
.tbp-gallery-slider .swiper-slide {
    text-align: center;
}
.tbp-gallery-slider img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}
.swiper-button-next,
.swiper-button-prev {
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.swiper-pagination-bullet-active {
    background: var(--tbp-primary) !important;
}

/* -----------------------------------------
   2. Pricing Cards
----------------------------------------- */
.tbp-pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}
.tbp-cab-card {
    border: 1px solid var(--tbp-border);
    padding: 15px;
    text-align: center;
    border-radius: var(--tbp-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}
.tbp-cab-card:hover {
    background-color: var(--tbp-bg-light);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    border-color: var(--tbp-secondary);
}

/* -----------------------------------------
   3. FAQs & Itinerary (Modern Details Tag)
----------------------------------------- */
.tbp-faqs-shortcode details,
.tbp-faq-accordion details {
    margin-bottom: 10px;
    border: 1px solid var(--tbp-border);
    border-radius: var(--tbp-radius);
    background: #fff;
    overflow: hidden;
}
.tbp-faqs-shortcode summary,
.tbp-faq-accordion summary {
    padding: 15px;
    font-weight: 600;
    cursor: pointer;
    background: #fdfdfd;
    outline: none;
    transition: background 0.3s;
}
.tbp-faqs-shortcode summary:hover,
.tbp-faq-accordion summary:hover {
    background: var(--tbp-bg-light);
}

/* Fallback for JS-based FAQs */
.tbp-faq-item { margin-bottom: 15px; }
.tbp-faq-question { font-weight: bold; cursor: pointer; }
.tbp-faq-answer { display: none; margin-top: 5px; color: var(--tbp-text-light); }
.tbp-faq-question.active + .tbp-faq-answer { display: block; }

.tbp-itinerary {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

/* -----------------------------------------
   4. Inquiry Form
----------------------------------------- */
#tbp-inquiry-ajax-form input,
#tbp-inquiry-ajax-form select,
#tbp-inquiry-ajax-form button {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    padding: 12px;
    font-size: 14px;
    border-radius: 6px;
    box-sizing: border-box;
}
#tbp-inquiry-ajax-form input:focus,
#tbp-inquiry-ajax-form select:focus {
    border-color: var(--tbp-secondary);
    outline: none;
}
#tbp-inquiry-ajax-form button {
    background-color: var(--tbp-primary);
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 16px;
}
#tbp-inquiry-ajax-form button:hover {
    background-color: #b02a2c; /* Darker Red */
}

/* -----------------------------------------
   5. Tourist Place & Archive Layouts
----------------------------------------- */
.tourist-place-container,
.tbp-tour-single-container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Modern Grid for Archives */
.tourist-place-archive,
.tbp-archive-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.place-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.place-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--tbp-shadow);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid var(--tbp-border);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.place-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.place-thumb {
    overflow: hidden;
}
.place-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}
.place-card:hover .place-thumb img {
    transform: scale(1.05);
}
.place-title {
    font-size: 20px;
    margin: 15px 15px 10px;
    color: var(--tbp-text);
    font-weight: 700;
}
.place-meta {
    padding: 0 15px 20px;
    flex-grow: 1;
}
.place-meta p {
    font-size: 14px;
    color: var(--tbp-text-light);
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tbp-tour-single-container,
    .tourist-place-container {
        padding: 20px 15px;
    }
    .tbp-archive-wrapper {
        padding: 20px 15px;
    }
    .place-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}