/* SkoobTur Frontend Styles */

.skoobtur-listing {
    margin: 30px 0;
}

/* Grid Layout */
.skoobtur-layout-grid {
    display: grid;
    gap: 30px;
}

.skoobtur-columns-1 { grid-template-columns: 1fr; }
.skoobtur-columns-2 { grid-template-columns: repeat(2, 1fr); }
.skoobtur-columns-3 { grid-template-columns: repeat(3, 1fr); }
.skoobtur-columns-4 { grid-template-columns: repeat(4, 1fr); }
.skoobtur-columns-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1024px) {
    .skoobtur-columns-4,
    .skoobtur-columns-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .skoobtur-columns-3,
    .skoobtur-columns-4,
    .skoobtur-columns-6 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .skoobtur-columns-2,
    .skoobtur-columns-3,
    .skoobtur-columns-4,
    .skoobtur-columns-6 { grid-template-columns: 1fr; }
}

/* List Layout */
.skoobtur-layout-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skoobtur-layout-list .skoobtur-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .skoobtur-layout-list .skoobtur-item {
        grid-template-columns: 1fr;
    }
}

/* Item Card */
.skoobtur-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.skoobtur-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.skoobtur-item-image {
    position: relative;
    overflow: hidden;
}

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

.skoobtur-item:hover .skoobtur-item-image img {
    transform: scale(1.1);
}

.skoobtur-item-content {
    padding: 20px;
}

.skoobtur-item-title {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.3;
}

.skoobtur-item-title a {
    color: #333;
    text-decoration: none;
}

.skoobtur-item-title a:hover {
    color: #0073aa;
}

.skoobtur-item-city {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.skoobtur-item-city .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.skoobtur-item-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #f39c12;
    font-weight: bold;
    margin-bottom: 10px;
}

.skoobtur-item-rating .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.skoobtur-item-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.skoobtur-item-price {
    font-size: 24px;
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 15px;
}

.skoobtur-item-button {
    display: inline-block;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.skoobtur-item-button:hover {
    background: #005177;
    color: #fff;
}

/* ========== ADVANCED TOURS WIDGET ========== */

.skoobtur-advanced-grid {
    display: grid;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.skoobtur-tour-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.skoobtur-tour-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #0073aa;
}

/* Image Section */
.tour-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #f3f4f6;
}

.tour-image-link {
    display: block;
    position: relative;
    padding-bottom: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
}

.tour-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.skoobtur-tour-card:hover .tour-image {
    transform: scale(1.08);
}

.tour-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Badges */
.tour-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.tour-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
}

.discount-badge {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
}

.featured-badge {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #fff;
}

/* Card Content */
.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tour-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.tour-category,
.tour-city {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.tour-category i,
.tour-city i {
    font-size: 14px;
}

.tour-title {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
    color: #111827;
}

.tour-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.tour-title a:hover {
    color: #0073aa;
}

.tour-duration {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
}

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

.tour-excerpt {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

/* Price Section */
.tour-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.old-price {
    font-size: 16px;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 500;
}

.current-price {
    font-size: 24px;
    font-weight: 700;
    color: #27ae60;
}

/* Button */
.tour-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 24px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.tour-button:hover {
    background: #005177;
    transform: translateX(2px);
    color: #fff;
}

.tour-button i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

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

/* ========== TOURS CAROUSEL WIDGET ========== */

.skoobtur-tours-carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 20px 0;
    overflow: hidden;
}

.skoobtur-tours-carousel-wrapper .swiper {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.skoobtur-tours-carousel-wrapper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.skoobtur-tours-carousel-wrapper .swiper-slide {
    flex-shrink: 0;
    height: auto;
    position: relative;
    display: flex;
}

.skoobtur-carousel-slide {
    position: relative;
    width: 100%;
    height: 450px;
    min-height: 450px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: #1a1a1a;
    display: flex;
    align-items: flex-end;
}

.skoobtur-carousel-slide:hover {
    transform: scale(1.02);
}

/* Background Image */
.carousel-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
    z-index: 0;
}

.carousel-no-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.skoobtur-carousel-slide:hover .carousel-bg-image {
    transform: scale(1.05);
}

/* Overlay - stronger gradient */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.1) 20%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.7) 75%,
        rgba(0, 0, 0, 0.9) 100%
    );
    z-index: 1;
}

/* Content */
.carousel-content {
    position: relative;
    width: 100%;
    padding: 30px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Duration Badge */
.carousel-duration-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    align-self: flex-start;
    line-height: 1;
}

.carousel-duration-badge svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Title */
.carousel-title {
    margin: 0;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    padding: 5px 0;
}

/* Info Row */
.carousel-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 5px 0;
}

.carousel-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

.carousel-info-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.9;
    flex-shrink: 0;
}

/* Button */
.carousel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 8px;
    line-height: 1;
}

.carousel-button:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(5px);
    color: #ffffff;
}

.carousel-button svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.carousel-button:hover svg {
    transform: translateX(3px);
}

/* Swiper Navigation */
.skoobtur-tours-carousel-wrapper .swiper-button-next,
.skoobtur-tours-carousel-wrapper .swiper-button-prev {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: #333;
    transition: all 0.3s ease;
}

.skoobtur-tours-carousel-wrapper .swiper-button-next:after,
.skoobtur-tours-carousel-wrapper .swiper-button-prev:after {
    font-size: 20px;
    font-weight: 900;
}

.skoobtur-tours-carousel-wrapper .swiper-button-next:hover,
.skoobtur-tours-carousel-wrapper .swiper-button-prev:hover {
    background: #ffffff;
    transform: scale(1.1);
}

/* Swiper Pagination */
.skoobtur-tours-carousel-wrapper .swiper-pagination {
    bottom: 10px;
}

.skoobtur-tours-carousel-wrapper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s ease;
}

.skoobtur-tours-carousel-wrapper .swiper-pagination-bullet-active {
    background: #ffffff;
    width: 30px;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .skoobtur-carousel-slide {
        height: 400px;
        min-height: 400px;
    }
    
    .carousel-content {
        padding: 20px;
        gap: 10px;
    }
    
    .carousel-title {
        font-size: 20px;
    }
    
    .carousel-duration-badge {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .carousel-info-item {
        font-size: 13px;
    }
    
    .skoobtur-tours-carousel-wrapper .swiper-button-next,
    .skoobtur-tours-carousel-wrapper .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    
    .skoobtur-tours-carousel-wrapper .swiper-button-next:after,
    .skoobtur-tours-carousel-wrapper .swiper-button-prev:after {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .skoobtur-carousel-slide {
        height: 350px;
        min-height: 350px;
    }
    
    .carousel-content {
        padding: 15px;
    }
    
    .carousel-title {
        font-size: 18px;
    }
    
    .carousel-info {
        gap: 12px;
    }
    
    .carousel-button {
        padding: 10px 20px;
        font-size: 13px;
    }
}


/* Single Page Styles */
.single-skoobtur_tour .entry-header,
.single-skoobtur_restaurant .entry-header,
.single-skoobtur_hotel .entry-header,
.single-skoobtur_attraction .entry-header,
.single-skoobtur_experience .entry-header {
    margin-bottom: 30px;
}

.skoobtur-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.skoobtur-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.skoobtur-meta-item .dashicons {
    color: #0073aa;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.skoobtur-meta-label {
    font-weight: bold;
    color: #333;
}

.skoobtur-meta-value {
    color: #666;
}
