/* Speedboats Slider Styles */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom layout for speedboats page */
#wrapper {
    display: flex;
    min-height: 100vh;
}

#header {
    position: fixed;
    left: 0;
    top: 0;
    width: 450px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 3rem 3rem 2rem 3rem;
    background: rgba(27, 31, 34, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    overflow: hidden;
}

#header .logo {
    text-align: center;
    margin-bottom: 2rem;
}

/* Hide slider elements that might appear in header */
#header .slider-nav,
#header .slider-dots,
#header .boat-slider {
    display: none !important;
}

/* Ensure header content stays within bounds */
#header .content {
    max-width: none;
    padding: 0;
    flex-grow: 0;
}

#header .content .inner {
    text-align: left;
    max-width: none;
    padding: 0;
}

#main {
    margin-left: 450px;
    width: calc(100% - 450px);
    padding: 2rem;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

#main article {
    width: 100%;
    max-width: 1000px;
    text-align: center;
}

#main article h2.major {
    text-align: center !important;
    margin-bottom: 2rem;
    width: 100%;
    display: block;
}

/* Override main template styles to always show content */
.speedboats-page #main {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    align-items: center !important;
    justify-content: center !important;
}

.speedboats-page #main article {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    text-align: center !important;
}

.boat-slider {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(27, 31, 34, 0.85);
    border-radius: 4px;
    padding: 1rem;
    height: auto;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    display: block;
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    height: auto;
}

.boat-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.boat-slide.active {
    display: block;
}

.boat-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    text-align: center;
    height: auto;
    min-height: auto;
    padding-top: 0;
}

.boat-content .image.main {
    width: 100%;
    margin-bottom: 0;
    margin-top: -0.5rem;
    flex-shrink: 0;
}

.boat-content .image.main img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

/* Nested Boat Image Slider */
.boat-image-slider {
    position: relative;
    width: 100%;
    margin-bottom: 0;
    border-radius: 8px;
    overflow: hidden;
}

.boat-images-container {
    position: relative;
    width: 100%;
    height: 220px;
}

.boat-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.boat-image.active {
    opacity: 1;
}

.boat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.boat-prev-btn, .boat-next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    z-index: 10;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.boat-prev-btn {
    left: 10px;
}

.boat-next-btn {
    right: 10px;
}

.boat-prev-btn:hover, .boat-next-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.boat-image-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.boat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.boat-dot.active, .boat-dot:hover {
    background: rgba(255, 255, 255, 1);
}

/* Clickable images cursor */
.boat-image img {
    cursor: pointer;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    background: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #ffffff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-image-container {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
}

.lightbox-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10001;
    transition: background-color 0.3s ease;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    min-height: 50px;
    min-width: 50px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-info {
    padding: 20px;
    color: #ffffff;
    text-align: center;
    background: #1e1e1e;
}

.lightbox-info h3 {
    margin: 0 0 10px 0;
    color: #ffffff;
    font-size: 1.5rem;
}

.lightbox-info p {
    margin: 0;
    color: #cccccc;
    font-size: 1rem;
}

.lightbox-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    background: #1e1e1e;
}

.lightbox-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.lightbox-dot.active, .lightbox-dot:hover {
    background: rgba(255, 255, 255, 1);
}

.boat-info {
    padding: 0.25rem;
    width: 100%;
    max-width: 600px;
    flex-grow: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.25rem;
}

.boat-info h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    text-align: center;
}

.boat-info p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.5rem;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.3;
}

.boat-features {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
}

.boat-features li {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.75rem;
}

.boat-price {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 4px;
    text-align: center;
    margin: 0.5rem 0;
}

.boat-price .price {
    display: block;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.boat-price .price-note {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
}

/* Slider Navigation - Now at the top */
.slider-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 1.5rem 0;
    padding: 1rem 2rem;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.prev-btn, .next-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    min-height: 40px;
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    transform: translateY(-1px);
}

.slide-counter {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Slider Dots - Hidden since we have slide counter */
.slider-dots {
    display: none;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: #ffffff;
}

.boat-info .actions {
    margin-top: 0.5rem;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Contact section styling */
#contact {
    text-align: center;
    margin-top: 1rem !important;
}

#contact h3.major {
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto 2rem auto !important;
}

#contact .actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media screen and (min-width: 1400px) {
    #header {
        width: 500px;
        padding: 3rem 3rem 2rem 3rem;
        height: 100vh;
        justify-content: flex-start;
        overflow: hidden;
    }
    
    #main {
        margin-left: 500px;
        width: calc(100% - 500px);
    }
    
    .boat-slider {
        max-width: 1000px;
    }
}

@media screen and (max-width: 1200px) {
    #wrapper {
        flex-direction: column;
    }
    
    #header {
        position: relative;
        width: 100%;
        height: auto;
        padding: 2rem;
    }
    
    #header .content .inner {
        text-align: center;
    }
    
    #header .content .inner .actions {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    #main {
        margin-left: 0;
        width: 100%;
        padding: 2rem;
        min-height: auto;
    }
}

@media screen and (max-width: 980px) {
    .boat-content .image.main img {
        max-height: 300px;
    }
    
    .boat-info {
        max-width: 100%;
    }
    
    .boat-features {
        gap: 0.5rem;
    }
    
    .boat-features li {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    /* Responsive nested slider */
    .boat-prev-btn, .boat-next-btn {
        padding: 6px 10px;
        font-size: 14px;
        min-height: 32px;
        min-width: 32px;
    }
    
    .boat-image-dots {
        bottom: 8px;
        gap: 4px;
    }
    
    .boat-dot {
        width: 6px;
        height: 6px;
    }
    
    /* Responsive lightbox */
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .lightbox-image-container {
        height: 50vh;
        min-height: 300px;
    }
    
    .lightbox-prev, .lightbox-next {
        padding: 10px 15px;
        font-size: 18px;
        min-height: 40px;
        min-width: 40px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 28px;
        width: 35px;
        height: 35px;
    }
    
    .lightbox-info {
        padding: 15px;
    }
    
    .lightbox-info h3 {
        font-size: 1.2rem;
    }
    
    .lightbox-info p {
        font-size: 0.9rem;
    }
    
    .boat-slider {
        padding: 1rem;
    }
    
    .slider-nav {
        margin: 0 0 1rem 0;
        padding: 0.75rem 1rem;
    }
    
    .slide-counter {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    #header {
        padding: 1rem;
    }
    
    #header .content .inner .actions {
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    #header .content .inner .actions li {
        width: 100%;
        max-width: 200px;
    }
    
    #header .content .inner .actions .button {
        width: 100%;
        text-align: center;
    }
    
    #main {
        padding: 1rem;
    }
    
    .boat-info h3 {
        font-size: 1.25rem;
    }
    
    .boat-price .price {
        font-size: 1.25rem;
    }
    
    .prev-btn, .next-btn {
        padding: 0.5rem 0.75rem;
        font-size: 1rem;
        min-height: 36px;
    }
    
    .slide-counter {
        font-size: 0.95rem;
    }
    
    .slider-nav {
        padding: 0.5rem 1rem;
        margin: 0 0 1rem 0;
    }
}

/* Info Modal Styles */
.info-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.info-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.info-modal-content {
    background: linear-gradient(135deg, rgba(27, 31, 34, 0.95), rgba(19, 21, 25, 0.95));
    border-radius: 12px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}

.info-modal-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.info-modal-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 600;
    text-align: center;
}

.info-modal-body {
    padding: 2rem;
    max-height: 400px;
    overflow-y: auto;
}

.info-modal-body p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
    text-align: justify;
}

.info-modal-footer {
    padding: 1.5rem 2rem 2rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.info-modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.info-modal-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.info-modal-book-btn, .info-modal-close-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.info-modal-book-btn {
    background: linear-gradient(45deg, #f56565, #ed8936);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-modal-book-btn:hover {
    background: linear-gradient(45deg, #e53e3e, #dd6b20);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 101, 101, 0.3);
}

.info-modal-close-btn {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Info Modal */
@media screen and (max-width: 768px) {
    .info-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .info-modal-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }
    
    .info-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .info-modal-body {
        padding: 1.5rem;
        max-height: 50vh;
    }
    
    .info-modal-body p {
        font-size: 0.95rem;
    }
    
    .info-modal-footer {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
        flex-direction: column;
    }
    
    .info-modal-book-btn, .info-modal-close-btn {
        width: 100%;
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }
    
    .info-modal-close {
        right: 1rem;
        top: 1rem;
        font-size: 1.5rem;
        width: 25px;
        height: 25px;
    }
}

/* Booking Modal Styles */
.booking-modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
}

.booking-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 0;
}

.booking-modal-content {
    background: #1e252d;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    position: relative;
    padding: 2rem;
    color: #ffffff;
    margin: auto;
}

.booking-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #ffffff;
    z-index: 1003;
}

.booking-modal-close:hover {
    color: #ff6b6b;
}

.booking-modal-header h2 {
    margin-bottom: 1rem;
    color: #ffffff;
    border-bottom: 2px solid #ff6b6b;
    padding-bottom: 0.5rem;
}

.booking-boat-info {
    background: #2a3137;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    text-align: center;
}

.booking-boat-info h3 {
    color: #ff6b6b;
    margin-bottom: 0.5rem;
}

.booking-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.booking-fields .field.half {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .booking-fields {
        grid-template-columns: 1fr 1fr;
    }
}

.booking-fields .field {
    margin-bottom: 1rem;
}

.booking-fields label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: bold;
}

.booking-fields input,
.booking-fields select,
.booking-fields textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #444;
    border-radius: 4px;
    background: #2a3137;
    color: #ffffff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    line-height: 1.2;
}

.booking-fields input:focus,
.booking-fields select:focus,
.booking-fields textarea:focus {
    outline: none;
    border-color: #ff6b6b;
}

.booking-summary {
    background: #2a3137;
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
}

.booking-summary h4 {
    color: #ff6b6b;
    margin-bottom: 1rem;
    border-bottom: 1px solid #444;
    padding-bottom: 0.5rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

.summary-total {
    border-top: 1px solid #444;
    margin-top: 1rem;
    padding-top: 1rem;
    font-size: 1.1rem;
}

.deposit-info {
    background: #ff6b6b;
    color: white;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.deposit-info p {
    margin-bottom: 0.5rem;
}

.deposit-info p:last-child {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.booking-modal-footer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
}

#paypal-booking-btn {
    background: #0070ba;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

#paypal-booking-btn:hover {
    background: #005ea6;
}

.booking-modal-close-btn {
    background: #666;
    color: white;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.booking-modal-close-btn:hover {
    background: #555;
}

@media (max-width: 768px) {
    .booking-modal-content {
        padding: 1.5rem;
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .booking-modal-footer {
        flex-direction: column;
        gap: 1rem;
    }
    
    #paypal-booking-btn,
    .booking-modal-close-btn {
        width: 100%;
        padding: 1rem;
    }
}

#info-modal-description { white-space: pre-line; }