/* Tours Booking Plugin - Modern Design */

* {
    box-sizing: border-box;
}

.tours-booking-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Hero Banner Section - Full Width */
.tours-hero-banner {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
    max-width: 1200px;
    width: 100%;
}

.banner-title {
    font-weight: 700;
    margin: 0 0 40px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

/* Recently Visited Section */
.recently-visited-section {
    margin-top: 60px;
    margin-bottom: 40px;
    padding-bottom: 40px;
}

.section-subtitle {
    font-weight: 600;
    margin: 0 0 30px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.recently-visited-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.recent-tour-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.recent-tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.recent-tour-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.recent-tour-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.recent-tour-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.recent-tour-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #333;
    line-height: 1.4;
    min-height: 44px;
}

.recent-tour-info .tour-duration {
    font-size: 13px;
    color: #666;
    margin: 0 0 8px 0;
}

.recent-tour-info .tour-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.rating-stars {
    color: #FFB800;
    font-weight: 600;
    font-size: 14px;
}

.rating-count {
    color: #666;
    font-size: 13px;
}

.recent-tour-info .tour-price {
    margin: 0 0 12px 0;
    font-size: 14px;
}

.price-label {
    color: #666;
    font-size: 12px;
}

.price-amount {
    font-weight: 700;
    color: #333;
    font-size: 16px;
    margin-left: 5px;
}

/* Book Now button in recently visited */
.recent-book-btn {
    display: block;
    width: 100%;
    padding: 10px 16px;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.recent-book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Tours Grid - 4 Columns with Reduced Spacing */
.tours-booking-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

.tours-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Modern Tour Card */
.tour-card-modern {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: none;
}

/* Tour Card Link Styles */
.tour-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.tour-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.tour-card-modern:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

.tour-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
}

.tour-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tour-card-modern:hover .tour-image-wrapper img {
    transform: scale(1.08);
}

.tour-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

/* Wishlist Button */
.wishlist-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.wishlist-btn:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.wishlist-btn svg {
    width: 20px;
    height: 20px;
    color: #333;
    stroke-width: 2;
}

.wishlist-btn:hover svg {
    color: #e74c3c;
    fill: #e74c3c;
}

/* Tour Card Content */
.tour-card-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tour-badge {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    width: fit-content;
    text-transform: capitalize;
}

.tour-card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #2c3e50;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 50px;
}

/* Tour Duration with Clock Icon */
.tour-duration {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0;
}

.duration-icon {
    width: 18px;
    height: 18px;
    color: #757575;
    flex-shrink: 0;
}

.tour-duration span {
    font-size: 15px;
    color: #757575;
    font-weight: 400;
}

/* Tour Card Footer */
.tour-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 0;
}

.tour-footer-left {
    flex: 1;
}

/* Tour Rating */
.tour-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rating-stars {
    color: #FFB800;
    font-size: 16px;
    letter-spacing: 1px;
    line-height: 1;
}

.reviews-count {
    color: #9e9e9e;
    font-size: 14px;
    font-weight: 400;
}

/* Tour Price Info */
.tour-price-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
}

.price-from {
    font-size: 12px;
    color: #9e9e9e;
    text-transform: uppercase;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.5px;
}

.price-value {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.btn-book-now {
    background: #1976d2;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-book-now:hover {
    background: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
    color: white;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tours-grid-4col {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .recently-visited-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tours-grid-4col {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .recently-visited-grid {
        grid-template-columns: 1fr;
    }
    
    .banner-title {
        font-size: 32px !important;
    }
    
    .section-subtitle {
        font-size: 20px !important;
    }
}

@media (max-width: 480px) {
    .tours-grid-4col {
        grid-template-columns: 1fr;
    }
    
    .tours-booking-container {
        padding: 20px 10px;
    }
}


/* Modal Styles */
.tour-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.close-modal {
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #1976d2;
    color: white;
}

.btn-primary:hover {
    background: #1565c0;
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* Admin Styles */
.tours-booking-admin .card {
    background: white;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.spinner {
    float: none;
    width: 20px;
    height: 20px;
    margin: 0 0 0 10px;
    background-image: url(../../../wp-admin/images/spinner.gif);
    background-size: 20px 20px;
    display: inline-block;
    opacity: 0;
    filter: alpha(opacity=0);
    vertical-align: middle;
}

.spinner.is-active {
    opacity: 1;
    filter: alpha(opacity=100);
}

.form-table input.error,
.form-table select.error {
    border-color: #dc3232 !important;
    box-shadow: 0 0 2px rgba(220, 50, 50, 0.8) !important;
}

.form-table .description {
    font-style: italic;
    color: #666;
    margin-top: 5px;
}

.copy-shortcode {
    margin-left: 10px;
}

/* Error Messages */
.tours-booking-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    margin: 20px 0;
    text-align: center;
}

/* Loading Animation */
.tours-loading {
    text-align: center;
    padding: 40px;
}

.tours-loading::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1976d2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Admin Banner Image Upload Styles */
.banner-image-upload-wrapper {
    max-width: 600px;
}

.banner-image-preview {
    margin-bottom: 10px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    padding: 10px;
    background: #f9f9f9;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-image-preview:empty {
    display: none;
}

.banner-image-preview img {
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.upload-banner-image,
.remove-banner-image {
    margin-top: 5px;
}

.remove-banner-image {
    color: #a00;
}

.remove-banner-image:hover {
    color: #dc3232;
    border-color: #dc3232;
}

/* Admin Color Input Styling */
.form-table input[type="color"] {
    width: 60px;
    height: 40px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-table input[type="color"]:hover {
    transform: scale(1.05);
}

/* Admin Number Input Styling */
.form-table input[type="number"].small-text {
    width: 80px;
}

.size-preview {
    display: inline-block;
    padding: 2px 8px;
    background: #f0f0f1;
    border-radius: 3px;
    font-size: 12px;
}

/* Admin Notice Styling */
.notice {
    margin: 15px 0;
    padding: 12px;
}

.notice.is-dismissible {
    padding-right: 38px;
}


/* Override: Hide duration, rating, and price in recently visited cards */
.recent-tour-info .tour-duration,
.recent-tour-info .tour-rating,
.recent-tour-info .tour-price {
    display: none !important;
}

/* Fix overlap issue - add proper spacing */
.tours-hero-banner {
    margin-bottom: 50px !important;
}

.recently-visited-section {
    margin-bottom: 50px !important;
    padding-bottom: 50px !important;
}

/* Improve recently visited card layout */
.recent-tour-card {
    min-height: 280px;
}

.recent-book-btn {
    margin-top: auto !important;
    padding: 12px 16px !important;
}


/* Tour Search Bar */
.tour-search-wrapper {
    max-width: 700px;
    margin: 30px auto 0;
    position: relative;
    z-index: 200;
}

.tour-search-container {
    display: flex;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tour-search-container:focus-within {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tour-search-input {
    flex: 1;
    padding: 14px 24px;
    border: none;
    outline: none;
    font-size: 15px;
    color: #333;
    background: transparent;
}

.tour-search-input::placeholder {
    color: #999;
}

.tour-search-btn {
    padding: 14px 28px;
    background: transparent;
    color: #0073aa;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.tour-search-btn:hover {
    color: #005a87;
}

/* Search Suggestions Dropdown */
.tour-search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    max-height: 450px;
    overflow-y: auto;
    z-index: 1000;
}

.suggestions-section {
    padding: 16px 0;
}

.suggestions-section:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

.suggestions-title {
    padding: 8px 24px;
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
}

.suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 24px;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: left;
    text-decoration: none;
    color: inherit;
}

.suggestion-item:hover {
    background: #f8f8f8;
}

/* Tour suggestion with thumbnail */
.suggestion-tour {
    padding: 12px 16px;
    gap: 14px;
    align-items: center;
}

.suggestion-tour:hover {
    background: #f5f7fa;
}

.suggestion-thumbnail {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

.suggestion-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.suggestion-thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.suggestion-thumbnail-placeholder svg {
    width: 30px;
    height: 30px;
    color: white;
    opacity: 0.7;
}

.suggestion-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #0073aa;
    margin-top: 2px;
}

.suggestion-icon svg {
    width: 100%;
    height: 100%;
}

.suggestion-content {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.suggestion-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0 0 2px 0;
    text-align: left;
}

.suggestion-meta {
    font-size: 12px;
    color: #999;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.suggestion-arrow {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.suggestion-tour:hover .suggestion-arrow {
    color: #0073aa;
}

.no-suggestions {
    padding: 20px 24px;
    text-align: left;
    color: #999;
    font-size: 14px;
}

.suggestions-loading {
    padding: 20px 24px;
    text-align: left;
    color: #666;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .tour-search-wrapper {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .tour-search-input {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .tour-search-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}


/* Search Results Page */
.tours-search-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 15px;
}

/* Category Filter Pills */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 20px 0;
    align-items: center;
}

.category-pill {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-pill .pill-close {
    display: none;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.category-pill:hover {
    border-color: #0073aa;
    color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.15);
}

.category-pill.active {
    background: #0073aa;
    border-color: #0073aa;
    color: white;
}

.category-pill.active .pill-close {
    display: block;
}

.category-pill.active:hover {
    background: #005a87;
    border-color: #005a87;
}

.category-separator {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 0 0 30px 0;
}

/* Search Results Container */
.search-results-container {
    margin-top: 20px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.search-results-header {
    margin-bottom: 30px;
}

.search-results-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.search-message {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.search-message p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* Centered Search Message - Full Width */
.search-message-center {
    width: 100%;
    max-width: 100%;
    text-align: left;
    padding: 20px 0;
    margin: 20px 0;
}

.search-message-center p {
    font-size: 16px;
    color: #777;
    margin: 0;
    font-weight: 400;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .category-filters {
        gap: 8px;
    }
    
    .category-pill {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .search-results-header h2 {
        font-size: 20px;
    }
}
