body {
    background-color: #f9fafb;
}

section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 30px;
}




.row-1 {
    display: flex;
    gap: 2px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.yacht-gallery-primairy img {
    width: 860px;
    height: auto;
    object-fit: cover;
}

.small-yacht-grid {
    display: grid;
    grid-template-columns: repeat(2, 210px);
    grid-template-rows: repeat(2, 207px);
    gap: 2px;
}

.small-yacht-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


@media (max-width: 768px) {
    .row-1 {
        flex-direction: column;
        gap: 10px;
    }

    .yacht-gallery-primairy img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .small-yacht-grid {
        display: none; 
    }
}





.row-2 {
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin: 0 30px;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .row-2 {
        flex-direction: column-reverse;
        gap: 20px;
        margin: 0px 16px;
    }

    .booking-container {
        width: 0px;
        flex: 1;
    }

    .all-specs-grid {
        gap: 20px;
        grid-template-columns: auto auto;
    }

    .yacht-details h3 {
        font-size: 22px;
    }
}

.yacht-details {
    display: flex;
    flex-direction: column;
    background-color: white;
    padding: 38px;
    border-radius: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex: 1;
}

.yacht-details h3 {
    font-size: 30px;
    color: #333;
    font-weight: 500;
}

.all-specs-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: auto auto auto;
    row-gap: 20px;
}

.booking-container {
    display: flex;
    flex-direction: column;
    background-color: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 320px;
    gap: 20px;
}

.booking-container p {
    color: #333;
    font-size: 22px;
    font-weight: 500;
}

.booking-container p span {
    color: gray;
    font-size: 16px;
    font-family: 400;
}

.booking-container button {
    padding: 10px 0px;
    border-radius: 30px;
    background-color: #FA4616;
    color: white;
    cursor: pointer;
    border: none;
    font-size: 16px;
    font-weight: 600;
}

hr {
    margin: 5px 0;
    height: 1px;
    background-color: #e0e0e0;
    border: none;
    width: 100%;
}

.quick-specs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    column-gap: 28px;
    margin: 0 10px;
}

.spec {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
}

.spec p {
    font-size: 16px;
    font-weight: 400;
    color: #333;
}

.spec img {
    width: 26px;
    vertical-align: middle;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none; 
    z-index: 999;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    background-color: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    max-width: 500px;
    width: 90%; 
}


.modal form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

h2 {
    margin-bottom: 25px;
    color: #333;
}

label {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    color: #333;
}

.modal input, .modal select, .modal textarea {
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;

}

.btn-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.submit-btn {
    padding: 10px 0px;
    background-color: RGBA(250,70,22, 1);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    flex: 1;
}

.submit-btn:hover {
    background-color: RGBA(250,70,22, 0.7);
}

.cancel-btn {
    padding: 10px 0px;
    background-color: rgba(220, 216, 216, 0.176);
    color: #333;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    flex: 1;
}

.cancel-btn:hover {
    background-color: rgba(220, 216, 216, 0.1);
}

.close-btn {
    width: 27px;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}