/* Scoped Styles for YachtCharterW */

#yacht-booking-wrapper {
    font-family: 'Inter', sans-serif;
    color: #e0e0e0;
    max-width: 1200px;
    margin: 0 auto;
}

#yacht-booking-wrapper * {
    box-sizing: border-box;
}

/* --- Booking Form --- */
#yacht-booking-wrapper .yacht-booking-form {
    background-color: #000c16;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #001a2c;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    margin: 20px auto;
}

#yacht-booking-wrapper h3 {
    color: #D4AF37;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#yacht-booking-wrapper .form-group {
    margin-bottom: 20px;
}

#yacht-booking-wrapper label {
    display: block;
    margin-bottom: 8px;
    color: #aaa;
    font-size: 0.9rem;
}

#yacht-booking-wrapper input[type="text"],
#yacht-booking-wrapper select {
    width: 100%;
    padding: 12px 15px;
    background-color: #001a2c;
    border: 1px solid #002a46;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s;
}

#yacht-booking-wrapper input[type="text"]:focus,
#yacht-booking-wrapper select:focus {
    border-color: #D4AF37;
    outline: none;
}

#yacht-booking-wrapper .price-display {
    text-align: right;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
}

#yacht-booking-wrapper .price-display span#total_price,
#yacht-booking-wrapper .price-display span#single_total_price {
    color: #D4AF37;
    font-weight: bold;
}

#yacht-booking-wrapper .gold-btn {
    width: 100%;
    padding: 15px;
    background-color: #D4AF37;
    color: #000;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-transform: uppercase;
}

#yacht-booking-wrapper .gold-btn:hover {
    background-color: #bfa13f;
    transform: translateY(-2px);
}

/* --- Search Bar --- */
#yacht-booking-wrapper .yacht-search-bar {
    background-color: #000c16;
    padding: 20px;
    border-radius: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #001a2c;
    margin-bottom: 40px;
}

#yacht-booking-wrapper .yacht-search-bar .search-field {
    flex: 1;
    min-width: 150px;
}

#yacht-booking-wrapper .yacht-search-bar input,
#yacht-booking-wrapper .yacht-search-bar select {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #002a46;
    border-radius: 0;
    padding: 10px;
}

#yacht-booking-wrapper .yacht-search-bar input:focus,
#yacht-booking-wrapper .yacht-search-bar select:focus {
    border-bottom-color: #D4AF37;
}

#yacht-booking-wrapper .yacht-search-bar button {
    border-radius: 30px;
    padding: 12px 30px;
    width: auto;
}

/* --- Yacht Listing (Slider) --- */
#yacht-booking-wrapper .yacht-swiper {
    padding-bottom: 50px;
}

#yacht-booking-wrapper .yacht-card {
    background-color: #000c16;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
    border: 1px solid #001a2c;
    display: flex;
    flex-direction: column;
    height: 100%;
}

#yacht-booking-wrapper .yacht-card:hover {
    transform: translateY(-5px);
    border-color: #D4AF37;
}

#yacht-booking-wrapper .yacht-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    image-rendering: auto;
}

#yacht-booking-wrapper .yacht-info {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

#yacht-booking-wrapper .yacht-info h4 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 1.2rem;
}

#yacht-booking-wrapper .yacht-info .meta-row {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
    color: #aaa;
    font-size: 0.9rem;
}

#yacht-booking-wrapper .yacht-info .meta-row i {
    color: #D4AF37;
    margin-right: 4px;
}

#yacht-booking-wrapper .yacht-info .amenities-row {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    overflow: hidden;
}

#yacht-booking-wrapper .yacht-info .capacity {
    color: #aaa;
    font-size: 0.9rem;
}

#yacht-booking-wrapper .yacht-info .price {
    color: #D4AF37;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
    margin-top: auto;
}

#yacht-booking-wrapper .view-btn {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #D4AF37;
    color: #D4AF37;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

#yacht-booking-wrapper .view-btn:hover {
    background-color: #D4AF37;
    color: #000;
}

/* Swiper Navigation */
#yacht-booking-wrapper .swiper-button-next,
#yacht-booking-wrapper .swiper-button-prev {
    color: #D4AF37;
}

#yacht-booking-wrapper .swiper-pagination-bullet-active {
    background: #D4AF37;
}

/* --- Single Product Box --- */
#yacht-booking-wrapper.single-yacht-booking {
    margin-top: 30px;
    background: #000c16;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #001a2c;
}

/* Responsive */
@media (max-width: 768px) {
    #yacht-booking-wrapper .yacht-search-bar {
        flex-direction: column;
        border-radius: 12px;
    }

    #yacht-booking-wrapper .yacht-search-bar .search-field {
        width: 100%;
    }

    #yacht-booking-wrapper .yacht-search-bar button {
        width: 100%;
    }
}

/* --- Yacht Specs & Amenities (Single Product) --- */
#yacht-booking-wrapper.yacht-specs {
    margin-top: 20px;
    background: #000c16;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #001a2c;
}

#yacht-booking-wrapper.yacht-specs h4 {
    color: #D4AF37;
    margin-bottom: 15px;
    border-bottom: 1px solid #001a2c;
    padding-bottom: 5px;
}

#yacht-booking-wrapper .specs-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

#yacht-booking-wrapper .specs-list li {
    color: #ccc;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

#yacht-booking-wrapper .specs-list li strong {
    color: #fff;
}

#yacht-booking-wrapper .specs-list li i {
    color: #D4AF37;
    font-size: 20px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#yacht-booking-wrapper .amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#yacht-booking-wrapper .amenity-tag {
    background-color: #001a2c;
    border: 1px solid #002a46;
    color: #ccc;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s;
}

#yacht-booking-wrapper .amenity-tag:hover {
    border-color: #D4AF37;
    color: #fff;
}

#yacht-booking-wrapper .tiny-tag {
    font-size: 0.75rem;
    color: #888;
    background: #000c16;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #001a2c;
}

/* --- Search Results Page --- */
#yacht-booking-wrapper.yacht-search-results {
    padding: 30px 20px;
    background-color: #031628;
    min-height: 100vh;
}

#yacht-booking-wrapper .search-summary {
    background-color: #000c16;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #001a2c;
    margin-bottom: 30px;
}

#yacht-booking-wrapper .search-summary h3 {
    color: #D4AF37;
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

#yacht-booking-wrapper .search-summary p {
    color: #ccc;
    margin: 0;
    font-size: 0.95rem;
}

#yacht-booking-wrapper .yacht-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

#yacht-booking-wrapper .yacht-card-grid {
    background-color: #000c16;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #001a2c;
    display: flex;
    flex-direction: column;
}

#yacht-booking-wrapper .yacht-card-grid:hover {
    transform: translateY(-5px);
    border-color: #D4AF37;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

#yacht-booking-wrapper .yacht-card-grid .yacht-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    image-rendering: auto;
}

#yacht-booking-wrapper .yacht-card-grid .yacht-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#yacht-booking-wrapper .yacht-card-grid .yacht-info h4 {
    margin: 0 0 12px 0;
    color: #fff;
    font-size: 1.15rem;
}

#yacht-booking-wrapper .yacht-card-grid .meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
    color: #aaa;
    font-size: 0.85rem;
}

#yacht-booking-wrapper .yacht-card-grid .meta-row span {
    display: flex;
    align-items: center;
    gap: 5px;
}

#yacht-booking-wrapper .yacht-card-grid .meta-row i {
    color: #D4AF37;
    font-size: 16px;
}

#yacht-booking-wrapper .yacht-card-grid .price {
    color: #D4AF37;
    font-size: 1.1rem;
    font-weight: bold;
    margin: auto 0 15px 0;
}

#yacht-booking-wrapper .yacht-card-grid .view-btn {
    display: inline-block;
    text-align: center;
    padding: 10px 20px;
    border: 1px solid #D4AF37;
    color: #D4AF37;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 600;
}

#yacht-booking-wrapper .yacht-card-grid .view-btn:hover {
    background-color: #D4AF37;
    color: #000;
}

#yacht-booking-wrapper .no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background-color: #000c16;
    border-radius: 8px;
    border: 1px solid #001a2c;
}

#yacht-booking-wrapper .no-results p {
    color: #aaa;
    font-size: 1.1rem;
    margin: 0;
}

/* === Desktop: Normal Layout for Meta/Amenities Rows === */
#yacht-booking-wrapper .meta-row-wrapper {
    margin-bottom: 8px;
    overflow: hidden;
}

#yacht-booking-wrapper .meta-row-track {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #aaa;
    font-size: 0.85rem;
    justify-content: center;
}

#yacht-booking-wrapper .meta-row-track .is-duplicate {
    display: none;
}

#yacht-booking-wrapper .meta-row-track span {
    display: flex;
    align-items: center;
    gap: 5px;
}

#yacht-booking-wrapper .meta-row-track i {
    color: #D4AF37;
    font-size: 16px;
}

#yacht-booking-wrapper .amenities-row-wrapper {
    margin-bottom: 8px;
    overflow: hidden;
}

#yacht-booking-wrapper .amenities-row-track {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

#yacht-booking-wrapper .amenities-row-track .tiny-tag:nth-child(n+4) {
    display: none;
}

/* === Responsive for Search Results === */
@media (max-width: 768px) {
    #yacht-booking-wrapper .yacht-results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    #yacht-booking-wrapper .yacht-card-grid .yacht-img {
        height: 90px;
    }

    #yacht-booking-wrapper .yacht-card-grid .yacht-info {
        padding: 6px;
        gap: 10px;
    }

    #yacht-booking-wrapper .yacht-card-grid .yacht-info h4 {
        font-size: 0.9rem;
        margin-bottom: 4px;
        margin-top: 10px;
        line-height: 1.2;
        min-height: auto;
        white-space: nowrap;
        text-overflow: ellipsis;
        font-weight: 600;
        animation: marquee-scroll 5s linear infinite;

    }

    /* === Auto-Scroll Marquee for Meta Row === */
    #yacht-booking-wrapper .meta-row-wrapper {
        overflow: hidden;
        position: relative;
        width: 100%;
        margin-bottom: 6px;
        height: 20px;
    }

    #yacht-booking-wrapper .meta-row-track .is-duplicate {
        display: flex !important;
    }

    #yacht-booking-wrapper .meta-row-track {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 14px;
        animation: marquee-scroll 25s linear infinite;
        width: max-content;
        position: absolute;
        left: 0;
        top: 0;
    }

    #yacht-booking-wrapper .meta-row-track span {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 0.75rem;
        color: #aaa;
        display: flex !important;
        align-items: center;
        gap: 3px;
    }

    #yacht-booking-wrapper .meta-row-track i {
        font-size: 13px;
        color: #D4AF37;
    }

    /* === Auto-Scroll Marquee for Amenities Row === */
    #yacht-booking-wrapper .amenities-row-wrapper {
        overflow: hidden;
        position: relative;
        width: 100%;
        margin-bottom: 6px;
        height: 20px;
        margin-top: 2px;
    }

    #yacht-booking-wrapper .amenities-row-track .tiny-tag:nth-child(n+4) {
        display: inline-block !important;
    }

    #yacht-booking-wrapper .amenities-row-track {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 8px;
        animation: marquee-scroll 25s linear infinite;
        width: max-content;
        position: absolute;
        left: 0;
        top: 0;
    }

    #yacht-booking-wrapper .amenities-row-track .tiny-tag {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 0.7rem;
        padding: 2px 6px;
    }

    #yacht-booking-wrapper .yacht-card-grid .price {
        font-size: 0.75rem;
        margin-bottom: 4px;
        margin-top: 4px;
    }

    #yacht-booking-wrapper .yacht-card-grid .view-btn {
        padding: 3px 0;
        width: 100%;
        font-size: 0.7rem;
        border-radius: 3px;
    }
}

/* Marquee Animation Keyframes */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}
