/**
 * Public-facing styles for Trips Plugin
 */

/* Trip Grid */
.trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.trips-grid.trips-columns-1 {
    grid-template-columns: 1fr;
}

.trips-grid.trips-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.trips-grid.trips-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.trips-grid.trips-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Trip Card */
.trip-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.trip-thumbnail {
    width: 100%;
    overflow: hidden;
    background: #f0f0f0;
}

.trip-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.trip-card:hover .trip-thumbnail img {
    transform: scale(1.05);
}

.trip-content {
    padding: 20px;
}

.trip-title {
    margin: 0 0 15px 0;
    font-size: 24px;
    line-height: 1.3;
}

.trip-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.trip-title a:hover {
    color: #0073aa;
}

.trip-meta-label {
    font-weight: 600;
    color: #666;
    margin-right: 5px;
}

.trip-destination,
.trip-duration,
.trip-start-date {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
}

.trip-price {
    margin: 15px 0;
    font-size: 24px;
    font-weight: bold;
    color: #0073aa;
}

.trip-excerpt {
    margin: 15px 0;
    color: #666;
    line-height: 1.6;
}

.trip-button {
    display: inline-block;
    padding: 12px 24px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 15px;
    transition: background 0.3s ease;
}

.trip-button:hover {
    background: #005a87;
    color: #fff;
}

/* Trip Details Page */
.trip-details {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.trip-featured-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.trip-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.trip-title {
    font-size: 36px;
    margin: 0 0 20px 0;
    color: #333;
}

.trip-meta-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 30px;
}

.trip-meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.trip-meta-item strong {
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trip-meta-item span {
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.trip-price-highlight .price-amount {
    color: #0073aa;
    font-size: 28px;
}

.trip-description,
.trip-itinerary,
.trip-accommodation,
.trip-included-excluded,
.trip-important-notes {
    margin: 40px 0;
}

.trip-details h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.itinerary-content,
.notes-content,
.accommodation-details {
    line-height: 1.8;
    color: #555;
}

/* Itinerary Blocks */
.trip-itinerary {
    margin: 40px 0;
}

.itinerary-blocks {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

.itinerary-block-item {
    background: #fff;
    border-left: 5px solid #0073aa;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.itinerary-block-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.itinerary-day-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    flex-shrink: 0;
}

.day-icon-circle {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
    margin-bottom: 10px;
}

.day-icon {
    font-size: 32px;
    line-height: 1;
}

.day-info {
    text-align: center;
}

.day-number {
    font-size: 16px;
    font-weight: 700;
    color: #0073aa;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.day-date {
    font-size: 13px;
    color: #666;
    font-weight: 600;
    line-height: 1.3;
}

.itinerary-content-wrapper {
    flex: 1;
    padding-top: 5px;
}

.itinerary-title {
    margin: 0 0 12px 0;
    font-size: 22px;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
}

.itinerary-description {
    line-height: 1.8;
    color: #555;
    margin-top: 10px;
    font-size: 15px;
}

.itinerary-description p {
    margin: 0 0 10px 0;
}

.itinerary-description p:last-child {
    margin-bottom: 0;
}

/* Booking Requirements List */
.requirements-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.requirements-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
    border-bottom: 1px solid #eee;
}

.requirements-list li:last-child {
    border-bottom: none;
}

.requirements-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
    font-size: 18px;
}

/* Gallery */
.trip-gallery {
    margin: 40px 0;
}

.trip-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Included/Excluded */
.included-excluded-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.trip-included,
.trip-excluded {
    padding: 25px;
    border-radius: 8px;
}

.trip-included {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
}

.trip-excluded {
    background: #ffebee;
    border-left: 4px solid #f44336;
}

.trip-included h3,
.trip-excluded h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
}

.included-list ul,
.excluded-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.included-list li,
.excluded-list li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.included-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

.excluded-list li:before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #f44336;
    font-weight: bold;
}

/* Booking Form */
.trip-booking-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
}

.trip-booking-form h2 {
    margin-top: 0;
}

.trip-booking-form p {
    margin-bottom: 20px;
}

.trip-booking-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.trip-booking-form input[type="text"],
.trip-booking-form input[type="email"],
.trip-booking-form input[type="tel"],
.trip-booking-form input[type="number"],
.trip-booking-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.trip-booking-form textarea {
    resize: vertical;
    min-height: 100px;
}

.trip-booking-form .button,
.trip-booking-form button[type="submit"] {
    background: #0073aa;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.trip-booking-form .button:hover,
.trip-booking-form button[type="submit"]:hover {
    background: #005a87;
}

.total-price {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    font-size: 20px;
}

.booking-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

.booking-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.booking-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Booking Participants Section */
.booking-participants-section {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
    border: 1px solid #ddd;
}

.booking-participants-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
}

.booking-participants-section h4 {
    font-size: 16px;
    margin: 20px 0 15px 0;
    color: #555;
}

.age-groups-selection {
    margin-top: 20px;
}

.age-group-input {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.age-group-input label {
    min-width: 100px;
    font-weight: 600;
    color: #333;
}

.age-group-input input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.total-participants-display {
    margin-top: 20px;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 5px;
    font-size: 16px;
}

.total-participants-display strong {
    color: #1976d2;
}

.total-participants-count {
    font-size: 20px;
    font-weight: bold;
    color: #1976d2;
    margin-left: 10px;
}

/* Accommodation */
.accommodation-type {
    font-size: 18px;
    margin-bottom: 15px;
}

/* Flights Section */
.trip-flights {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.trip-flights h2 {
    margin-top: 0;
    margin-bottom: 30px;
}

.flight-section {
    margin-bottom: 30px;
}

.flight-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.flights-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.flight-segment {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.flight-route {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.flight-departure,
.flight-arrival {
    flex: 1;
}

.flight-airport {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.flight-time {
    font-size: 24px;
    font-weight: bold;
    color: #0073aa;
}

.flight-terminal {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.flight-arrow {
    font-size: 24px;
    color: #0073aa;
    font-weight: bold;
}

.flight-details {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

.flight-operator {
    font-weight: 600;
    color: #333;
}

.flight-number {
    color: #0073aa;
}

.flight-layover {
    color: #f39c12;
}

/* Hotels Section */
.trip-hotels {
    margin: 40px 0;
}

.hotels-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hotel-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hotel-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hotel-header h3 {
    margin: 0;
    font-size: 24px;
    color: #333;
    flex: 1;
    min-width: 200px;
}

.hotel-location {
    background: #e3f2fd;
    color: #1976d2;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.hotel-nights {
    background: #f3e5f5;
    color: #7b1fa2;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.hotel-walking-distance {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    padding: 10px 15px;
    background: #e8f5e9;
    border-radius: 5px;
    font-size: 14px;
    color: #2e7d32;
}

.walking-icon {
    font-size: 20px;
}

.hotel-description {
    margin: 20px 0;
    line-height: 1.8;
    color: #555;
}

.hotel-amenities {
    margin: 20px 0;
}

.hotel-amenities h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.amenities-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.amenities-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
}

.amenities-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

.hotel-gallery {
    margin-top: 25px;
}

.hotel-gallery h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

/* Hotel Gallery Slider */
.hotel-gallery-slider-wrapper {
    position: relative;
    margin-top: 15px;
}

.hotel-gallery-slider {
    position: relative;
    min-height: 400px;
    border-radius: 8px;
    background: #f0f0f0;
    overflow: hidden;
}

.hotel-gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.hotel-gallery-slide.active {
    opacity: 1;
    z-index: 2;
}

.hotel-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hotel-gallery-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.hotel-gallery-prev,
.hotel-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.hotel-gallery-prev:hover,
.hotel-gallery-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.hotel-gallery-prev {
    left: 15px;
}

.hotel-gallery-next {
    right: 15px;
}

.hotel-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding: 10px 0;
}

.hotel-gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    padding: 0;
}

.hotel-gallery-dot.active {
    background: #0073aa;
}

.hotel-gallery-dot:hover {
    background: #005a87;
}

/* Pricing Tiers */
.trip-pricing-tiers {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.trip-pricing-tiers h2 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.price-subtitle {
    font-size: 14px;
    font-weight: normal;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-tables {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.pricing-table {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pricing-table h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #0073aa;
}

.pricing-table-content {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table-content thead {
    background: #f5f5f5;
}

.pricing-table-content th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #ddd;
}

.pricing-table-content td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.pricing-table-content tbody tr:hover {
    background: #f9f9f9;
}

.price-cell {
    font-size: 20px;
    font-weight: bold;
    color: #0073aa;
    text-align: right;
}

/* Group Benefits */
.trip-group-benefits {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: #fff;
}

.trip-group-benefits h2 {
    margin-top: 0;
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.group-benefits-general {
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.benefit-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.benefit-icon {
    font-size: 40px;
    margin-bottom: 15px;
    text-align: center;
}

.benefit-item h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #fff;
    text-align: center;
}

.benefit-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 14px;
}

/* Booking Information */
.trip-booking-information {
    margin: 40px 0;
    padding: 30px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
}

.trip-booking-information h2 {
    margin-top: 0;
    color: #856404;
}

.booking-requirements {
    margin-bottom: 25px;
}

.booking-requirements h3 {
    font-size: 18px;
    color: #856404;
    margin-bottom: 15px;
}

.booking-deposit,
.booking-balance {
    margin: 15px 0;
    padding: 15px;
    background: #fff;
    border-radius: 5px;
    font-size: 16px;
}

.baggage-allowance {
    margin: 25px 0;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
}

.baggage-allowance h3 {
    font-size: 18px;
    color: #856404;
    margin-bottom: 15px;
}

.baggage-content {
    line-height: 1.8;
    color: #555;
}

.booking-notes {
    margin-top: 25px;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .trips-grid {
        grid-template-columns: 1fr;
    }
    
    .trip-meta-overview {
        grid-template-columns: 1fr;
    }
    
    .included-excluded-grid {
        grid-template-columns: 1fr;
    }
    
    .trip-title {
        font-size: 28px;
    }
    
    .trip-details {
        padding: 10px;
    }
    
    .itinerary-block-item {
        padding: 20px;
        flex-direction: column;
    }
    
    .itinerary-day-icon {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        margin-bottom: 15px;
    }
    
    .day-icon-circle {
        width: 60px;
        height: 60px;
        margin-right: 15px;
        margin-bottom: 0;
    }
    
    .day-icon {
        font-size: 28px;
    }
    
    .day-info {
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .itinerary-content-wrapper {
        padding-top: 0;
    }
    
    .hotel-gallery-prev,
    .hotel-gallery-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .hotel-gallery-prev {
        left: 10px;
    }
    
    .hotel-gallery-next {
        right: 10px;
    }
    
    .hotel-gallery-slide {
        aspect-ratio: 4/3;
    }
    
    .flight-route {
        flex-direction: column;
        text-align: center;
    }
    
    .flight-arrow {
        transform: rotate(90deg);
    }
    
    .pricing-tables {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .hotel-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .amenities-list {
        grid-template-columns: 1fr;
    }
}

