/* ===================================
   GOLF TRIP DETAIL - CUSTOM STYLES
   Inherits base from detail-golf-course.css
   =================================== */

/* === Overview Cards === */
.trip-overview-cards {
    display: flex;
    gap: 0;
    margin: 35px 0 40px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.trip-overview-card {
    flex: 1;
    text-align: center;
    padding: 22px 15px;
    border-right: 1px solid #e8e8e8;
    transition: background 0.3s ease;
}

.trip-overview-card:last-child {
    border-right: none;
}

.trip-overview-card:hover {
    background: #fffdf5;
}

.trip-overview-card .card-icon {
    font-size: 22px;
    color: #ffcc05;
    margin-bottom: 8px;
}

.trip-overview-card .card-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    margin-bottom: 6px;
    font-weight: 500;
}

.trip-overview-card .card-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.trip-overview-card .card-value.price-highlight {
    color: #e67e22;
    font-size: 18px;
}

/* === Content Body === */
.trip-content-body {
    color: #666;
    line-height: 1.9;
    font-size: 15px;
    margin-bottom: 40px;
}

.trip-content-body p {
    margin-bottom: 15px;
}

/* === Section Divider === */
.trip-section-divider {
    width: 60px;
    height: 3px;
    background: #ffcc05;
    margin: 0 0 30px 0;
    border: none;
}

/* === Itinerary Timeline === */
.trip-itinerary-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.itinerary-timeline {
    position: relative;
    padding-left: 50px;
    margin-top: 30px;
}

.itinerary-timeline::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e8e8e8;
}

.timeline-day {
    position: relative;
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 1px solid #f5f5f5;
}

.timeline-day:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.timeline-marker {
    position: absolute;
    left: -50px;
    top: 0;
    width: 40px;
    height: 40px;
    background: #ffcc05;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 204, 5, 0.3);
}

.timeline-day-title {
    font-family: "eicons";
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
}

.timeline-day-content {
    color: #777;
    line-height: 1.8;
    font-size: 14px;
}

.timeline-day-content p {
    margin-bottom: 10px;
}

.timeline-day-content ul,
.timeline-day-content ol {
    padding-left: 20px;
    margin-bottom: 10px;
}

.timeline-day-content li {
    margin-bottom: 5px;
}

.timeline-day-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 10px 0;
}

/* === Golf Courses Section === */
.trip-golf-courses-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.golf-course-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.golf-course-link-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.golf-course-link-card:hover {
    background: #fff;
    border-color: #ffcc05;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}

.golf-course-link-card .course-thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.golf-course-link-card .course-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
}

.golf-course-link-card .course-info p {
    font-size: 13px;
    color: #999;
    margin: 0;
}

.golf-course-link-card .course-arrow {
    margin-left: auto;
    color: #ffcc05;
    font-size: 16px;
    flex-shrink: 0;
}

/* === Beside Golf Section === */
.trip-beside-golf-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.beside-golf-content {
    color: #666;
    line-height: 1.9;
    font-size: 15px;
    margin-top: 20px;
}

.beside-golf-content p {
    margin-bottom: 15px;
}

.beside-golf-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 15px 0;
}

/* === Gallery Section === */
.trip-gallery-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}


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

.trip-gallery-grid .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
}

.trip-gallery-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.trip-gallery-grid .gallery-item:hover img {
    transform: scale(1.05);
}

.trip-gallery-grid .gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trip-gallery-grid .gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.trip-gallery-grid .gallery-item-overlay i {
    color: #fff;
    font-size: 24px;
}

/* === Sidebar === */
.trip-sidebar {
    padding-left: 30px;
}

.trip-sidebar .sticky-sidebar {
    position: sticky;
    top: 130px;
}

/* Booking Form */
.trip-booking-form-wrapper {
    background: #f8f8f8;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 30px;
}

.trip-booking-price-box {
    background: linear-gradient(135deg, #ffcc05 0%, #f5d5a8 100%);
    padding: 25px;
    text-align: center;
}

.trip-booking-price {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    display: block;
}

.trip-booking-price-label {
    font-size: 14px;
    color: #555;
    display: block;
    margin-top: 3px;
}

.trip-booking-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    padding: 20px 25px 15px;
    margin: 0;
    text-align: center;
}

.trip-booking-form {
    padding: 0 25px 25px;
}

.trip-booking-form .input-icon {
    position: relative;
}

.trip-booking-form .input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffcc05;
    font-size: 16px;
}

.trip-booking-form .form-control {
    padding: 12px 15px 12px 45px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
    background: #fff;
}

.trip-booking-form .form-control:focus {
    border-color: #ffcc05;
    box-shadow: 0 0 0 0.2rem rgba(255, 204, 5, 0.15);
    outline: none;
}

.trip-booking-form textarea.form-control {
    padding: 12px 15px;
    resize: vertical;
}

.trip-booking-form .btn-booking {
    width: 100%;
    background: #ffcc05;
    color: #333;
    border: none;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.trip-booking-form .btn-booking:hover {
    background: #e6b800;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 204, 5, 0.3);
}

/* Form feedback */
.trip-booking-form .form-success {
    background: #d4edda;
    color: #155724;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 15px;
    display: none;
}

.trip-booking-form .form-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 15px;
    display: none;
}

/* Other Trips List */
.other-trips-wrapper {
    background: #f8f8f8;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 30px;
}

.other-trips-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    padding: 20px 25px 15px;
    margin: 0;
    border-bottom: 1px solid #eee;
}

.other-trip-item {
    display: flex;
    gap: 12px;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.other-trip-item:hover {
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.other-trip-item:last-child {
    border-bottom: none;
}

.other-trip-thumb {
    width: 65px;
    height: 65px;
    border-radius: 5px;
    object-fit: cover;
    flex-shrink: 0;
}

.other-trip-info h5 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.4;
}

.other-trip-info .trip-meta {
    font-size: 12px;
    color: #999;
}

.other-trip-info .trip-meta span {
    margin-right: 10px;
}

.other-trip-info .trip-meta i {
    color: #ffcc05;
    margin-right: 3px;
}

/* Ad Space */
.trip-ad-space {
    background: #f8f8f8;
    border-radius: 6px;
    overflow: hidden;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.trip-ad-space .ad-placeholder {
    text-align: center;
    color: #ccc;
    padding: 30px;
}

.trip-ad-space .ad-placeholder i {
    font-size: 40px;
    margin-bottom: 10px;
    display: block;
}

.trip-ad-space .ad-placeholder span {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === Layout === */
.trip-detail-content {
    padding: 60px 0 80px;
    background: #fff;
}

/* === Lightbox  === */
.trip-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.92);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.trip-lightbox.active {
    display: flex;
}

.trip-lightbox img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

.trip-lightbox-close,
.trip-lightbox-prev,
.trip-lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 15px;
    transition: color 0.2s;
    z-index: 10;
}

.trip-lightbox-close { top: 15px; right: 20px; font-size: 32px; }
.trip-lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.trip-lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

.trip-lightbox-close:hover,
.trip-lightbox-prev:hover,
.trip-lightbox-next:hover {
    color: #ffcc05;
}

.trip-lightbox-counter {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    letter-spacing: 2px;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 992px) {
    .trip-overview-cards {
        flex-wrap: wrap;
    }
    .trip-overview-card {
        flex: 1 1 50%;
        border-bottom: 1px solid #e8e8e8;
    }
    .trip-overview-card:nth-child(2) {
        border-right: none;
    }
    .trip-sidebar {
        padding-left: 0;
        margin-top: 40px;
    }
    .trip-sidebar .sticky-sidebar {
        position: static;
    }
    .golf-course-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .trip-overview-cards {
        flex-direction: column;
    }
    .trip-overview-card {
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
    }
    .trip-overview-card:last-child {
        border-bottom: none;
    }
    .trip-detail-content {
        padding: 40px 0 50px;
    }
    .itinerary-timeline {
        padding-left: 40px;
    }
    .itinerary-timeline::before {
        left: 14px;
    }
    .timeline-marker {
        left: -40px;
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    .trip-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    h6.hero-sub-title {
        width: auto;
        font-size: 1.2rem;
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    .trip-gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    .trip-booking-price {
        font-size: 28px;
    }
}