/* Add Google Fonts import at the top of the file */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Tour Single Template Styles */
.tour-single-container {
    width:100%;
    margin: 0 auto;
    
}

/* Hero Section */
.tour-hero {
    position: relative;
    height: 400px;
    margin-bottom: 30px;
    
    overflow: hidden;
}

.tour-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tour-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.tour-hero-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: #fff;
    width:100%;
    text-align: center;
}

.tour-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5em;
    font-weight: 600;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: #fff;
    line-height: 1.2;
}

/* Content Layout */
.tour-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    max-width: 1300px;
    margin: auto;
}

/* Main Content */
.tour-main-content {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 50px;
}

.tour-description, .tour-gallery {
    margin-bottom: 30px;
}

h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-thumbnail {
    transform: scale(1.05);
}

/* Gallery Styles */
.tour-gallery {
    margin: 40px 0;
    padding: 0px;
}

.gallery-slider {
    width: 100%;
    height: 500px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 8px;
}

.swiper-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* Pagination */
.swiper-pagination {
    position: absolute;
    bottom: 20px !important;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #fff;
    opacity: 0.7;
    margin: 0 5px !important;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #fff;
}

/* Loading State */
.gallery-slider:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-slider {
        height: 300px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 16px;
    }

    .tour-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Lightbox Styles */
.pswp__bg {
    background: rgba(0, 0, 0, 0.9);
}

.pswp__ui--fit .pswp__caption,
.pswp__ui--fit .pswp__top-bar {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Review Form */
.review-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 0px;
}

.form-field {
    margin-bottom: 15px;
}

.form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 25px;
    color: #ddd;
    cursor: pointer;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #ffd700;
}

/* Reviews List */
.review-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border:1px solid #eee;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviewer-info img {
    border-radius: 50%;
}
.average-rating{
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}
/* Sidebar */
.tour-sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    position: sticky;
    top: 30px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
}

.action-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
}

.tour-price {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin: 20px 0;
}

/* Add to Cart Button Styles */
.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background: #0056b3;
}

.add-to-cart-btn.in-cart {
    background: #28a745;
}

.add-to-cart-btn.in-cart:hover {
    background: #218838;
}

.add-to-cart-btn:disabled {
    background: #ccc;
    cursor: wait;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tour-hero {
        height: 300px;
    }

    .tour-title {
        font-size: 2em;
    }

    .tour-sidebar {
        position: static;
        margin-top: 20px;
    }
}

/* Review Form Submit Button */
.submit-review {
    background-color: #2ecc71;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    width: fit-content;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.submit-review:hover {
    background-color: #2de279;
}

.submit-review:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Review Message Styles */
.review-message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    display: none;
}

.review-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.review-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Action Buttons Styles */
.action-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
}

.action-btn {
    background: #ffffff;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease;
    border-radius: 4px;
}

.action-btn:hover {
    transform: scale(1.1);
}

.icon {
    font-size: 24px;
    margin-bottom: 5px;
    color: #666666;
}

/* Like Button Styles */
.like-btn {
    background: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease;
    padding: 5px 10px;
    border-radius: 4px;
}

.like-btn.active {
    background: #2ecc71;
    color: #ffffff;
}

.like-btn.active .icon {
    color: #ffffff;
    opacity: 1;
}

/* Wishlist Button Styles */
.wishlist-btn {
    background: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease;
    padding: 5px 10px;
    border-radius: 4px;
}

.wishlist-btn.active {
    background: #e74c3c;
    color: #ffffff;
}

.wishlist-btn.active .icon {
    color: #ffffff;
}

/* Login Modal Styles */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.login-modal-content {
    position: relative;
    background-color: #fff;
    margin: 15% auto;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close-modal:hover {
    color: #333;
}

.login-modal h2 {
    margin-bottom: 15px;
    color: #333;
}

.login-modal p {
    margin-bottom: 20px;
    color: #666;
}

.login-modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.login-btn, .register-btn {
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.login-btn {
    background-color: #007bff;
    color: #fff;
}

.login-btn:hover {
    background-color: #0056b3;
    color: #fff;
}

.register-btn {
    background-color: #6c757d;
    color: #fff;
}

.register-btn:hover {
    background-color: #545b62;
    color: #fff;
}

/* Animation for modal */
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-modal-content {
    animation: modalFadeIn 0.3s ease;
}

/* Login Form Styles */
.login-form {
    padding: 20px 0;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    margin: 0;
}

.login-submit {
    width: 100%;
    padding: 10px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-submit:hover {
    background: #3bacf8;
}

.login-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.form-message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    display: none;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.modal-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.modal-footer p {
    margin: 10px 0;
}

.register-link,
.forgot-password-link {
    color: #007bff;
    text-decoration: none;
}

.register-link:hover,
.forgot-password-link:hover {
    text-decoration: underline;
}

/* Review Form Styles */
.review-form-section {
    margin-top: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border:1px solid #eee;
}

/* Magnific Popup Customization */
.mfp-bg {
    opacity: 0.9;
}

.mfp-figure:after {
    box-shadow: none;
    background: transparent;
}

.mfp-zoom-out-cur .mfp-image-holder .mfp-close {
    cursor: pointer;
}

.mfp-counter {
    color: #fff;
}

/* Update other instances of tour-title for consistency */
.tour-content .tour-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8em;
    font-weight: 500;
    margin-bottom: 15px;
}

.tour-sidebar .tour-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4em;
    font-weight: 500;
}

/* Location Information Styles */
.tour-location-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #eee;
}

.tour-location-info h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2em;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
}

.location-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.location-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.location-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-weight: 500;
}

.location-label i {
    color: #33b4c0;
    font-size: 16px;
}

.location-value {
    color: #333;
    font-weight: 500;
} 