/* ================================================
   Single Yacht Page - Dark Mode
   Eklentinin mevcut stillerini kullanır
   ================================================ */

/* Page Container */
.single-yacht-page {
    background-color: #031628;
    min-height: 100vh;
    padding: 30px 20px 60px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #e5e5e5;
}

.single-yacht-page *,
.single-yacht-page *::before,
.single-yacht-page *::after {
    box-sizing: border-box;
}

.yacht-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ---- Header Section ---- */
.yacht-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.yacht-header-left {
    flex: 1;
}

.yacht-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.yacht-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.yacht-meta-bar .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #9ca3af;
}

.yacht-meta-bar .meta-item svg {
    flex-shrink: 0;
    color: #D4AF37;
}

.yacht-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.yacht-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.yacht-rating .star {
    color: #D4AF37;
    font-size: 1rem;
}

.yacht-rating .rating-value {
    color: #D4AF37;
    font-weight: 600;
    font-size: 1rem;
}

.yacht-rating .review-count {
    color: #9ca3af;
    font-size: 0.85rem;
}

.yacht-actions {
    display: flex;
    gap: 15px;
}

.yacht-actions .action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.yacht-actions .action-btn:hover {
    color: #D4AF37;
}

/* ---- Gallery Section ---- */
.yacht-gallery {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 10px;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    height: 450px;
}

.yacht-gallery.single-image {
    grid-template-columns: 1fr;
    height: 500px;
}

.gallery-main {
    position: relative;
    height: 100%;
    background-color: #000c16;
    border-radius: 12px 0 0 12px;
    overflow: hidden;
    cursor: pointer;
}

.yacht-gallery.single-image .gallery-main {
    border-radius: 12px;
    height: 100%;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-main:hover img {
    transform: scale(1.02);
}

.gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    overflow-y: auto;
    padding-right: 5px;
}

.gallery-thumbs::-webkit-scrollbar {
    width: 4px;
}

.gallery-thumbs::-webkit-scrollbar-track {
    background: #000c16;
    border-radius: 10px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 10px;
}

.thumb-item {
    flex: 0 0 110px;
    position: relative;
    background-color: #000c16;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.thumb-item:first-child {
    border-radius: 0 12px 0 0;
}

.thumb-item:last-child {
    border-radius: 0 0 12px 0;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.thumb-item:hover img {
    transform: scale(1.05);
}

/* ---- Lightbox ---- */
.yacht-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.yacht-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    z-index: 10000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* ---- Content Wrapper ---- */
.yacht-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.yacht-content-left {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* ---- Seller Info ---- */
.seller-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #001a2c;
}

.seller-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #000c16;
}

.seller-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller-details {
    flex: 1;
}

.seller-name {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
}

.seller-name a {
    color: #D4AF37;
    text-decoration: none;
    font-weight: 500;
}

.seller-name span {
    color: #9ca3af;
}

.seller-meta {
    margin: 0;
    font-size: 0.85rem;
    color: #9ca3af;
}

.seller-meta .star {
    color: #D4AF37;
}

.seller-meta a {
    color: #D4AF37;
    text-decoration: none;
}

/* ---- Yacht Specs Section ---- */
.yacht-specs-section,
.yacht-amenities-section,
.yacht-description {
    background-color: #000c16;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #001a2c;
}

.yacht-specs-section h2,
.yacht-amenities-section h2,
.yacht-description h2 {
    color: #D4AF37;
    font-size: 1.1rem;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #001a2c;
}

/* Specs List */
.single-yacht-page .specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.single-yacht-page .specs-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    font-size: 0.95rem;
}

.single-yacht-page .specs-list li i {
    color: #D4AF37;
    font-size: 18px;
    width: 20px;
}

.single-yacht-page .specs-list li strong {
    color: #fff;
}

/* Amenities List */
.single-yacht-page .amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.single-yacht-page .amenity-tag {
    background-color: #001a2c;
    border: 1px solid #002a46;
    color: #ccc;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.single-yacht-page .amenity-tag:hover {
    border-color: #D4AF37;
    color: #fff;
}

/* Description */
.description-content {
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.7;
}

.description-content p {
    margin: 0 0 10px 0;
}

/* ---- Booking Card (Right Sidebar) ---- */
.yacht-content-right {
    position: relative;
}

.single-yacht-page .booking-card {
    position: sticky;
    top: 20px;
    background-color: #000c16;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #001a2c;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* WhatsApp Contact Button */
.single-yacht-page .whatsapp-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.single-yacht-page .whatsapp-contact-btn:hover {
    background: linear-gradient(135deg, #22c55e 0%, #0f766e 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: #ffffff;
}

.single-yacht-page .whatsapp-contact-btn:active {
    transform: translateY(0);
}

.single-yacht-page .whatsapp-contact-btn svg {
    flex-shrink: 0;
}

.single-yacht-page .booking-card h3 {
    color: #D4AF37;
    text-align: center;
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.booking-price-display {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #001a2c;
}

.booking-price-display .price-label {
    display: block;
    color: #9ca3af;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.booking-price-display .price-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #D4AF37;
}

/* Form Group */
.single-yacht-page .form-group {
    margin-bottom: 15px;
}

.single-yacht-page .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #aaa;
    font-size: 0.9rem;
}

.single-yacht-page .form-group input[type="text"],
.single-yacht-page .form-group select {
    width: 100%;
    max-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;
}

.single-yacht-page .form-group input[type="text"]:focus,
.single-yacht-page .form-group select:focus {
    border-color: #D4AF37;
    outline: none;
}

/* Price Display */
.single-yacht-page .price-display {
    text-align: right;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #fff;
    padding: 15px;
    background-color: #001a2c;
    border-radius: 6px;
}

.single-yacht-page .price-display #single_total_price {
    color: #D4AF37;
    font-weight: bold;
    font-size: 1.3rem;
}

/* Gold Button */
.single-yacht-page .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;
}

.single-yacht-page .gold-btn:hover {
    background-color: #bfa13f;
    transform: translateY(-2px);
}

#single_message {
    margin-top: 15px;
    text-align: center;
    color: #9ca3af;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .yacht-content-wrapper {
        grid-template-columns: 1fr;
    }

    .yacht-content-right {
        order: -1;
    }

    .single-yacht-page .booking-card {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .yacht-gallery {
        grid-template-columns: 1fr;
        height: auto;
    }

    .gallery-main {
        border-radius: 12px;
        height: 280px;
    }

    .gallery-thumbs {
        flex-direction: row;
        height: auto;
        overflow-y: visible;
        overflow-x: auto;
        padding-right: 0;
        padding-bottom: 5px;
    }

    .gallery-thumbs::-webkit-scrollbar {
        height: 4px;
        width: 0;
    }

    .thumb-item {
        flex: 0 0 80px;
        aspect-ratio: 1;
    }

    .thumb-item:first-child,
    .thumb-item:last-child {
        border-radius: 8px;
    }

    .yacht-header {
        flex-direction: column;
    }

    .yacht-header-right {
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .single-yacht-page {
        padding: 15px 10px 40px;
    }

    .yacht-title {
        font-size: 1.25rem;
    }

    .yacht-meta-bar {
        gap: 10px;
    }

    .yacht-meta-bar .meta-item {
        font-size: 0.8rem;
    }

    .single-yacht-page .specs-list {
        grid-template-columns: 1fr;
    }

    .gallery-main {
        height: 220px;
    }
}