/* Yachts Page Styles */

/* Hero */
.yachts-hero {
    position: relative;
    height: 60vh;
    min-height: 360px;
    background-image: url('../images/hero_upd.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
}

.yachts-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
}

.yachts-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 0 20px;
}

.yachts-hero-content h1 {
    font-family: var(--font-primary);
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}

.yachts-hero-sub {
    font-family: var(--font-secondary);
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

/* Section */
.yachts-section {
    padding: 70px 20px 90px;
    background-color: #f9f9f9;
}

.yachts-container {
    max-width: 1160px;
    margin: 0 auto;
}

.yachts-intro {
    text-align: center;
    margin-bottom: 56px;
}

.yachts-intro h2 {
    font-family: var(--font-primary);
    font-size: 2.1rem;
    color: #111;
    margin-bottom: 14px;
}

.yachts-intro p {
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: #555;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.75;
}

/* Yacht Grid — 3 col desktop, 2 tablet, 1 mobile */
.yacht-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

/* Yacht Card */
.yacht-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.09);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.yacht-card-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.yacht-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
}

/* Carousel */
.yacht-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #e0e0e0;
}

.yacht-carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.38s ease;
}

.yacht-slide {
    flex: 0 0 100%;
    height: 100%;
}

.yacht-image-container {
    width: 100%;
    height: 100%;
}

.yacht-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Carousel nav buttons */
.yacht-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.88);
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    color: #333;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: background 0.2s ease;
}

.yacht-carousel-btn:hover {
    background: #ffffff;
}

.yacht-carousel-prev {
    left: 10px;
}

.yacht-carousel-next {
    right: 10px;
}

/* Dots */
.yacht-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 5;
}

.yacht-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.yacht-dot.active {
    background: var(--primary-color);
    transform: scale(1.25);
}

/* Yacht Info */
.yacht-info {
    padding: 24px 22px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-grow: 1;
}

.yacht-name {
    font-family: var(--font-primary);
    font-size: 1.45rem;
    color: #111;
    font-weight: 600;
    margin: 0;
}

/* Spec badges */
.yacht-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.spec-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f1fffe;
    border: 1px solid rgba(43, 233, 215, 0.3);
    border-radius: 20px;
    padding: 5px 12px;
    font-family: var(--font-secondary);
    font-size: 0.82rem;
    color: #333;
    white-space: nowrap;
}

.spec-icon {
    font-size: 0.9rem;
}

.spec-label {
    color: #666;
    font-weight: 400;
}

.spec-label-bold {
    font-weight: 600;
    color: #333;
}

.spec-value {
    font-weight: 600;
    color: #111;
}

/* Pricing */
.yacht-pricing {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 4px solid var(--primary);
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(43, 233, 215, 0.06) 0%, rgba(43, 233, 215, 0.02) 100%);
    border-radius: 0 6px 6px 0;
}

.yacht-price-from {
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    line-height: 1.3;
}

.yacht-price {
    font-family: var(--font-secondary);
    font-size: 1.6rem;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
}

.yacht-price-note {
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    color: var(--primary-dark, #00897b);
    font-weight: 500;
    line-height: 1.4;
}

/* Description */
.yacht-description {
    font-family: var(--font-secondary);
    font-size: 0.92rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
    flex-grow: 1;
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
    .yacht-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

@media (max-width: 640px) {
    .yachts-hero-content h1 {
        font-size: 2.2rem;
    }

    .yachts-hero-sub {
        font-size: 1rem;
    }

    .yachts-intro h2 {
        font-size: 1.7rem;
    }

    .yacht-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .yacht-info {
        padding: 20px 18px 24px;
    }

}
