/* Escorted Tours Page Styles */

.escorted-tours-page {
    min-height: 100vh;
    background: #f8f9fa;
    padding-top: 100px;
}

/* Navbar always has background on this page */
.escorted-tours-page .header-nav,
.escorted-tours-page .header-nav.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.escorted-tours-page .header-nav .logo-text,
.escorted-tours-page .header-nav .nav-links li a,
.escorted-tours-page .header-nav .signup-link,
.escorted-tours-page .header-nav.scrolled .logo-text,
.escorted-tours-page .header-nav.scrolled .nav-links li a,
.escorted-tours-page .header-nav.scrolled .signup-link {
    color: #1a1a1a !important;
    text-shadow: none !important;
}

.escorted-tours-page .header-nav .hamburger-line,
.escorted-tours-page .header-nav.scrolled .hamburger-line {
    background: #1a1a1a !important;
}


.escorted-tours-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 30px;
    display: block;
}

/* Main Content */
.tours-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.tours-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 10px;
}

.tours-header-left {
    flex: 1;
}

.tours-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
}

.tours-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Header Filters */
.tours-header-filters {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-shrink: 0;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.filter-select {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: #1a1a1a;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a1a1a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.filter-select:hover {
    border-color: #000000;
}

.filter-select:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Tours Grid - 3x3 */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Tour Card */
.tour-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

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

/* Card Image */
.tour-card-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
}

.tour-card:hover .card-image-slider {
    transform: scale(1.05);
    transition: transform 0.3s;
}

/* Image Slider Styles */
.card-image-slider {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.card-slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.card-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

/* Slider Dots - Top Right */
.card-slider-dots {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    display: flex;
    gap: 6px;
    align-items: center;
}

.card-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.card-slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.card-slider-dot.active {
    background: rgba(255, 255, 255, 1);
    width: 10px;
    height: 10px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Card Content - White Area */
.tour-card-content {
    background: white;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tour-card-main {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Tour Card Title */
.tour-card-title {
    margin-bottom: 3px;
}

.tour-card-title h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.tour-card-description {
    margin-bottom: 15px;
}

.tour-card-description p {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Tour Features - Left Side - 2 Columns */
.tour-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 18px;
}

.tour-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tour-feature i {
    font-size: 16px;
    color: #000000;
    flex-shrink: 0;
    margin-top: 2px;
}

.tour-feature span {
    font-size: 13px;
    color: #1a1a1a;
    line-height: 1.4;
}

/* Pricing Panel - Right Side */
.tour-pricing-panel {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    justify-content: flex-start;
    margin-top: auto;
}

.pricing-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.pricing-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pricing-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.tour-date-text {
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-value {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

.price-unit {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.view-tour-btn {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: 'Poppins', sans-serif;
    align-self: flex-start;
    margin-top: 0;
}

.view-tour-btn:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.view-tour-btn i {
    font-size: 16px;
    transition: transform 0.3s;
    color: #ffffff;
}

.view-tour-btn:hover i {
    transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .tours-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 1200px) {
    .tours-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Destinations Page Specific Styles - 2x2 Grid */
.destinations-page .tours-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.destinations-page .tour-card-image {
    height: 320px;
}

.destinations-page .tour-card-content {
    padding: 22px;
}

.destinations-page .tour-card-title h3 {
    font-size: 18px;
}

/* Destinations page header center alignment */
.destinations-page .tours-header-left {
    text-align: center;
}

@media (max-width: 1400px) {
    .destinations-page .tours-grid {
        gap: 25px;
    }
}

@media (max-width: 1200px) {
    .destinations-page .tours-grid {
        gap: 25px;
    }
}

@media (max-width: 968px) {
    .escorted-tours-container {
        padding: 40px 30px;
    }

    .tours-header {
        flex-direction: column;
        gap: 20px;
    }

    .tours-header-filters {
        width: 100%;
        flex-wrap: wrap;
    }

    .filter-item {
        flex: 1;
        min-width: 150px;
    }

    .tours-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .tour-features {
        grid-template-columns: 1fr;
    }

    /* Destinations page - Use escorted tours grid on mobile */
    .destinations-page .tours-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .escorted-tours-page {
        padding-top: 88px;
    }

    .escorted-tours-container {
        padding: 20px 15px;
    }

    .tours-header {
        flex-direction: column;
        gap: 15px;
    }

    .tours-header-filters {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }

    .filter-item {
        flex: 1;
        min-width: 140px;
    }

    .tours-header h1 {
        font-size: 32px;
        text-align: center;
    }
    
    .tours-header-left {
        text-align: center;
    }
    
    /* Destinations page - center only title on mobile */
    .destinations-page .tours-header-left {
        text-align: left;
    }
    
    .destinations-page .tours-header h1 {
        text-align: center;
    }

    .tour-card-image {
        height: 260px;
    }

    .tour-card-content {
        padding: 18px;
    }

    .tour-features {
        grid-template-columns: 1fr;
    }

    .tour-feature {
        gap: 10px;
    }

    .tour-feature i {
        font-size: 16px;
    }

    .tour-feature span {
        font-size: 13px;
    }

    .tour-card-title h3 {
        font-size: 16px;
    }

    .price-value {
        font-size: 28px;
    }

    .tour-pricing-panel {
        flex-direction: column;
        gap: 15px;
    }

    .view-tour-btn {
        width: 100%;
        justify-content: center;
    }

    /* Destinations page - Use escorted tours styles on mobile */
    .destinations-page .tour-card-image {
        height: 260px;
    }

    .destinations-page .tour-card-content {
        padding: 18px;
    }

    .destinations-page .tour-card-title h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .escorted-tours-container {
        padding: 20px 15px;
    }

    .tours-header {
        flex-direction: column;
        gap: 15px;
    }

    .tours-header-filters {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }

    .filter-item {
        flex: 1;
        min-width: 140px;
    }

    .tours-header h1 {
        font-size: 28px;
        text-align: center;
    }
    
    .tours-header-left {
        text-align: center;
    }
    
    /* Destinations page - center only title on mobile */
    .destinations-page .tours-header-left {
        text-align: left;
    }
    
    .destinations-page .tours-header h1 {
        text-align: center;
    }

    .tour-card-image {
        height: 240px;
    }

    .tour-card-content {
        padding: 15px;
    }

    .tour-features {
        grid-template-columns: 1fr;
    }

    .tour-card-title h3 {
        font-size: 15px;
    }

    .price-value {
        font-size: 24px;
    }

    .tour-pricing-panel {
        flex-direction: column;
        gap: 15px;
    }

    .view-tour-btn {
        width: 100%;
        justify-content: center;
    }

    /* Destinations page - Use escorted tours styles on mobile */
    .destinations-page .tour-card-image {
        height: 240px;
    }

    .destinations-page .tour-card-content {
        padding: 15px;
    }

    .destinations-page .tour-card-title h3 {
        font-size: 15px;
    }
}
