/**
 * JoinUP Tours Plugin Styles
 * Based on joinup.lv design
 */

/* Reset and Base Styles */
.joinup-search-container,
.joinup-search-results,
.joinup-hotel-details {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Search Container */
.joinup-search-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.joinup-search-bar {
    display: flex;
    align-items: end;
    gap: 15px;
    flex-wrap: wrap;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Search Tabs */
.joinup-search-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
}

.joinup-tab {
    background: none;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.joinup-tab:hover {
    color: #ff6b35;
}

.joinup-tab.active {
    color: #ff6b35;
    border-bottom-color: #ff6b35;
}

.joinup-tab.active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #ff6b35;
    border-radius: 50%;
}

/* Form Groups */
.joinup-form-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
    flex: 1;
}

.joinup-form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
    font-size: 12px;
    text-transform: uppercase;
}

.joinup-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.joinup-input-wrapper select {
    width: 100%;
    padding: 12px 35px 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    appearance: none;
    cursor: pointer;
}

.joinup-input-wrapper select:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.joinup-input-icon {
    position: absolute;
    right: 12px;
    color: #6c757d;
    font-size: 12px;
    pointer-events: none;
}

.joinup-search-button {
    display: flex;
    align-items: end;
}

.joinup-search-btn {
    background: #000;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.joinup-search-btn:hover {
    background: #333;
    transform: scale(1.05);
}

.search-icon {
    font-size: 18px;
}

/* Price Range */
.joinup-price-range {
    grid-column: span 2;
}

.joinup-price-inputs {
    display: flex;
    gap: 10px;
}

.joinup-price-inputs .joinup-input-wrapper {
    flex: 1;
}

/* Hotel Rating */
.joinup-hotel-rating {
    grid-column: span 2;
}

.joinup-rating-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.joinup-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.joinup-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.joinup-star-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.joinup-star-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.joinup-star-option input[type="radio"] {
    width: auto;
    margin: 0;
}

.joinup-star-option .stars {
    color: #ffc107;
    font-size: 16px;
}

/* Hotel Search */
.joinup-hotel-search {
    grid-column: span 2;
}

.joinup-hotel-options {
    margin-top: 10px;
}

/* Service Type */
.joinup-service-type {
    grid-column: span 2;
}

.joinup-service-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.joinup-meal-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.joinup-meal-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.joinup-meal-option input[type="radio"] {
    width: auto;
    margin: 0;
}

/* Search Button */
.joinup-search-submit {
    text-align: center;
    margin-top: 30px;
}

.joinup-search-btn {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.joinup-search-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Search Results */
.joinup-search-results {
    padding: 20px 0;
}

.joinup-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.joinup-results-header h2 {
    color: #495057;
    margin: 0;
}

.joinup-results-count {
    color: #6c757d;
    font-size: 14px;
}

.joinup-results-list {
    display: grid;
    gap: 20px;
}

.joinup-tour-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
}

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

.joinup-tour-image {
    position: relative;
    overflow: hidden;
}

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

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

.joinup-tour-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.joinup-tour-content h3 {
    color: #495057;
    margin: 0 0 10px 0;
    font-size: 20px;
}

.joinup-tour-location {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.joinup-tour-location .location {
    color: #6c757d;
    font-size: 14px;
}

.joinup-tour-location .stars {
    color: #ffc107;
    font-size: 16px;
}

.joinup-tour-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.joinup-tour-date,
.joinup-tour-nights,
.joinup-tour-meal {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.joinup-tour-date .label,
.joinup-tour-nights .label,
.joinup-tour-meal .label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
}

.joinup-tour-date .value,
.joinup-tour-nights .value,
.joinup-tour-meal .value {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

.joinup-tour-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 20px;
}

.joinup-tour-price .price {
    font-size: 24px;
    font-weight: 700;
    color: #ff6b35;
}

.joinup-tour-price .per-person {
    font-size: 12px;
    color: #6c757d;
}

.joinup-tour-actions {
    display: flex;
    gap: 10px;
}

.joinup-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
}

.joinup-btn-primary {
    background: #ff6b35;
    color: white;
}

.joinup-btn-primary:hover {
    background: #e55a2b;
    color: white;
}

.joinup-btn-secondary {
    background: #6c757d;
    color: white;
}

.joinup-btn-secondary:hover {
    background: #5a6268;
    color: white;
}

/* Page Wrappers */
.joinup-search-page-wrapper,
.joinup-results-page-wrapper,
.joinup-hotel-page-wrapper {
    padding: 20px 0;
}

.joinup-search-intro,
.joinup-results-header,
.joinup-hotel-intro {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
}

.joinup-search-intro h2,
.joinup-results-header h2,
.joinup-hotel-intro h2 {
    color: #495057;
    margin: 0 0 15px 0;
    font-size: 28px;
}

.joinup-search-intro p,
.joinup-results-header p,
.joinup-hotel-intro p {
    color: #6c757d;
    font-size: 16px;
    margin: 0;
}

.joinup-search-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.joinup-feature {
    text-align: center;
    padding: 20px;
}

.joinup-feature h3 {
    color: #495057;
    margin: 0 0 15px 0;
    font-size: 18px;
}

.joinup-feature p {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

.joinup-results-help {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
}

.joinup-results-help h3 {
    color: #495057;
    margin: 0 0 15px 0;
    font-size: 20px;
}

.joinup-results-help p {
    color: #6c757d;
    margin: 0 0 20px 0;
}

.joinup-hotel-navigation {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.joinup-contact-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-top: 30px;
}

.joinup-contact-section h3 {
    color: #495057;
    margin: 0 0 15px 0;
    font-size: 20px;
}

.joinup-contact-section p {
    color: #6c757d;
    margin: 0 0 20px 0;
}

.joinup-contact-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hotel Details */
.joinup-hotel-details {
    padding: 20px 0;
}

.joinup-hotel-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    border-radius: 12px;
}

.joinup-hotel-header h1 {
    margin: 0 0 15px 0;
    font-size: 32px;
}

.joinup-hotel-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.joinup-hotel-rating .stars {
    color: #ffc107;
    font-size: 20px;
}

.joinup-hotel-rating .location {
    font-size: 16px;
    opacity: 0.9;
}

.joinup-hotel-content {
    display: grid;
    gap: 30px;
}

.joinup-hotel-description,
.joinup-hotel-amenities,
.joinup-room-types,
.joinup-meal-options,
.joinup-booking-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.joinup-hotel-description h3,
.joinup-hotel-amenities h3,
.joinup-room-types h3,
.joinup-meal-options h3,
.joinup-booking-section h3 {
    color: #495057;
    margin: 0 0 20px 0;
    font-size: 20px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.joinup-hotel-amenities ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.joinup-hotel-amenities li {
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.joinup-room-card,
.joinup-meal-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.joinup-room-card h4,
.joinup-meal-card h4 {
    color: #495057;
    margin: 0 0 10px 0;
    font-size: 16px;
}

.joinup-room-capacity {
    color: #6c757d;
    font-size: 14px;
}

.joinup-booking-form {
    margin-top: 20px;
}

.joinup-booking-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.joinup-booking-submit {
    text-align: center;
}

/* No Results */
.joinup-no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.joinup-no-results p {
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 20px;
}

/* Error Messages */
.joinup-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .joinup-search-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .joinup-form-group {
        min-width: auto;
        margin-bottom: 15px;
    }
    
    .joinup-search-button {
        align-self: center;
        margin-top: 10px;
    }
    
    .joinup-tour-card {
        grid-template-columns: 1fr;
    }
    
    .joinup-tour-image {
        height: 200px;
    }
    
    .joinup-tour-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .joinup-search-container {
        padding: 20px;
        margin: 10px 0;
    }
    
    .joinup-tab {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .joinup-search-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .joinup-hotel-header h1 {
        font-size: 24px;
    }
    
    .joinup-hotel-content {
        gap: 20px;
    }
    
    .joinup-hotel-description,
    .joinup-hotel-amenities,
    .joinup-room-types,
    .joinup-meal-options,
    .joinup-booking-section {
        padding: 20px;
    }
}

/* Search Results Styles */
.joinup-search-results {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.joinup-results-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.joinup-results-header h3 {
    color: #2c3e50;
    font-size: 24px;
    margin: 0;
}

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

.joinup-tour-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.joinup-tour-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.joinup-tour-content h4 {
    color: #2c3e50;
    font-size: 18px;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.joinup-tour-content p {
    margin: 8px 0;
    color: #6c757d;
    font-size: 14px;
}

.joinup-tour-content strong {
    color: #2c3e50;
    font-weight: 600;
}

.joinup-tour-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.joinup-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-size: 16px;
}

.joinup-no-results {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.joinup-no-results p {
    font-size: 16px;
    margin-bottom: 20px;
}
