/* ===================================================================
   TOURS PAGE STYLES - DEVOTA TOURS
   Professional styling for Tours and Packages page
   ================================================================= */

/* Tours Hero Section */
.tours-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    text-align: center;
    color: white;
    padding: 120px 0 80px 0;
}

.tours-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://i.pinimg.com/1200x/e7/eb/d3/e7ebd3f50f79f1e8e477820b51d41e16.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.tours-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.tours-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tours-hero .hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.2rem;
    color: #ffffff !important;
    text-align: center;
}

.tours-hero .hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    text-align: center;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.hero-stats .stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(10px);
    padding: 1.7rem 2.2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 0.5rem;
    min-width: 140px;
}

.hero-stats .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Filter Section */
.tour-filter-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafb 0%, #f0f7ff 100%);
    border-bottom: 1px solid rgba(46, 134, 171, 0.1);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 134, 171, 0.3);
}

/* Tours Grid Section */
.tours-grid-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #fffbe7 0%, #f8fafb 100%);
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.tour-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(46, 134, 171, 0.1);
    transition: all 0.3s ease;
    display: block;
}

.tour-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.tour-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.tour-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tour-card:hover .tour-image img {
    transform: scale(1.1);
}

.tour-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--accent-color), #FF6B35);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tour-content {
    padding: 2rem;
}

.tour-category {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.tour-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.tour-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.tour-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tour-highlights span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.tour-highlights i {
    color: var(--primary-color);
    font-size: 0.8rem;
    width: 12px;
}

.tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(46, 134, 171, 0.1);
}

.tour-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.tour-duration i {
    color: var(--primary-color);
}

.tour-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.tour-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 134, 171, 0.3);
    color: white;
}

/* Custom Tour Section */
.custom-tour-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f0f7ff 0%, #e0eafc 100%);
}

.custom-tour-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.custom-tour-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.custom-tour-info p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.custom-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.custom-benefits .benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.custom-benefits .benefit-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.custom-benefits .benefit-item span {
    color: var(--text-secondary);
    font-weight: 500;
}

.custom-tour-image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.custom-tour-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Tour Modal */
.tour-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-large);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--text-light);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.modal-actions .btn {
    flex: 1;
    text-align: center;
    min-width: 120px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .custom-tour-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .custom-tour-image {
        order: -1;
    }
    
    .tours-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .tours-hero {
        padding: 100px 0 60px 0;
        min-height: 100vh;
    }
    
    .tours-hero .hero-content {
        padding: 0 1rem;
    }
    
    .hero-stats {
        gap: 1.2rem;
    }
    
    .hero-stats .stat-item {
        padding: 1.2rem 1.2rem;
        min-width: 110px;
    }
    
    .filter-tabs {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .tours-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tour-card {
        margin: 0 1rem;
    }
    
    .tour-content {
        padding: 1.5rem;
    }
    
    .tour-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .tour-btn {
        width: 100%;
        text-align: center;
    }
    
    .custom-benefits {
        grid-template-columns: 1fr;
    }
    
    .custom-tour-info h2 {
        font-size: 2rem;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
        width: 95%;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .tours-hero .hero-content {
        padding: 0 0.5rem;
    }
    .hero-stats {
        flex-direction: column;
        gap: 0.7rem;
    }
    .hero-stats .stat-item {
        width: 100%;
        min-width: unset;
    }
    
    .filter-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
    }
    
    .tour-highlights {
        gap: 0.75rem;
    }
    
    .custom-tour-info h2 {
        font-size: 1.8rem;
    }
}

/* Animation for tour cards */
.tour-card {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Loading states */
.tour-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.tour-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
} 

/* Tour Box Styles */
.tour-box {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.tour-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.tour-box_img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.tour-box_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.tour-box:hover .tour-box_img img {
    transform: scale(1.1);
}

.tour-content {
    padding: 1.5rem;
}

.box-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.box-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.box-title a:hover {
    color: var(--primary-color);
}

.tour-rating {
    margin-bottom: 1rem;
    min-height: 20px;
}

.tour-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.tour-action span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.th-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.th-btn.style4 {
    background: var(--primary-color);
    color: white;
}

.th-btn.style4:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Grid Layout */
.gy-24 {
    --bs-gutter-y: 1.5rem;
}

.gx-24 {
    --bs-gutter-x: 1.5rem;
}

.row.gy-24 > * {
    padding-top: calc(var(--bs-gutter-y) * 0.5);
    padding-bottom: calc(var(--bs-gutter-y) * 0.5);
}

.row.gx-24 > * {
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
}

/* Animation */
.th-ani {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Responsive */
@media (max-width: 768px) {
    .tour-box_img {
        height: 200px;
    }
    
    .tour-content {
        padding: 1rem;
    }
    
    .box-title {
        font-size: 1.1rem;
    }
    
    .tour-action {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

/* Shape Mockups */
.shape-mockup {
    position: absolute;
    z-index: -1;
}

.shape-mockup img {
    max-width: 100%;
    height: auto;
}

/* Sort Bar */
.th-sort-bar {
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--bg-light);
}

/* Tab Content */
.tab-content {
    display: block;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane.fade {
    transition: opacity 0.15s linear;
}

.tab-pane.fade:not(.show) {
    opacity: 0;
}

.tab-pane.fade.show {
    opacity: 1;
} 