/**
 * Rentals & Pricing Page Specialized Styles
 *
 * Implements the alternating section design and price lists.
 */

/* Hero Section */
.rentals-hero {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://adventuracayman.com/wp-content/uploads/2024/01/Adventura-Cayman-Grand-Cayman-Paddle-Board-Rental-cover-image-e1704466593513.png');
    background-size: cover;
    background-position: center;
    padding: 100px 0 150px;
    color: #fff;
    text-align: center;
    position: relative;
    clip-path: ellipse(150% 100% at 50% 0%);
}

.rentals-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.rentals-hero .yellow-intense {
    color: #ffd400;
}

.rentals-hero h2 {
    font-size: 2rem;
}

.rentals-hero h4 {
    font-size: 1.2rem;
    font-weight: 400;
}

/* Common Layout */
.rental-section {
    padding: 80px 0;
    background-color: #fff;
}

.rental-section:nth-child(even) {
    background-color: #f4f4f4;
}

.rental-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
    align-items: start !important;
    gap: 60px !important;
}

.rental-image {
    flex: 1 !important;
    min-width: 0 !important;
    position: relative !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.rental-image > img {
    width: 100% !important;
    height: auto !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    display: block !important;
}

.rental-section:nth-child(odd) .rental-image {
    order: 2 !important;
}

.rental-section:nth-child(odd) .rental-content {
    order: 1 !important;
}

.rental-image-slider {
    position: relative !important;
    width: 100% !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    line-height: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    background: transparent !important;
}

.slider-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: transparent !important;
}

.slider-track img {
    width: 100% !important;
    flex-shrink: 0 !important;
    object-fit: contain !important;
    aspect-ratio: 4/3 !important;
    background: transparent !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.slider-nav {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    z-index: 20 !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.slider-dot {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    background: rgba(255, 255, 255, 0.6) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    border: 2px solid rgba(0,0,0,0.1) !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.slider-dot.active {
    background: #fff !important;
    transform: scale(1.3) !important;
    border-color: #ffd400 !important;
    box-shadow: 0 0 10px rgba(255, 212, 0, 0.5) !important;
}

.slider-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(0, 0, 0, 0.2) !important;
    color: #fff !important;
    border: none !important;
    width: 44px !important;
    height: 44px !important;
    cursor: pointer !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 10 !important;
    transition: background 0.3s !important;
    padding: 0 !important;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.5) !important;
}

.slider-arrow svg {
    width: 24px !important;
    height: 24px !important;
    fill: currentColor !important;
}

.arrow-left { left: 15px !important; }
.arrow-right { right: 15px !important; }

/* Remove any potential theme overrides on these buttons */
.slider-arrow, .slider-dot {
    box-shadow: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
}

.rental-content {
    flex: 1;
}

.rental-content h2 {
    font-size: 2.2rem !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 20px !important;
    color: #1a1a1a !important;
    line-height: 1.1 !important;
}

.rental-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #555;
}

/* Price List Table */
.price-header {
    font-weight: 800;
    color: #FB5012 !important;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.price-list {
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(251, 80, 18, 0.2);
}

.price-item:last-child {
    border-bottom: none;
}

.price-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.price-value {
    font-weight: 700;
    color: #FB5012;
    font-size: 1.1rem;
}

/* Book Now Button */
.btn-book {
    display: inline-block;
    background: #ffd400;
    color: #000;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    transition: transform 0.3s, background 0.3s;
    box-shadow: 0 5px 15px rgba(255, 212, 0, 0.3);
}

.btn-book:hover {
    transform: translateY(-3px);
    background: #ffcc00;
}

/* Responsive */
@media (max-width: 991px) {
    .rental-container, 
    .rental-section:nth-child(odd) .rental-container {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .rental-content {
        text-align: left;
    }@media (max-width: 768px) {
    .rental-container {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 0 20px !important;
    }
    
    .rental-section:nth-child(odd) .rental-image,
    .rental-section:nth-child(odd) .rental-content {
        order: unset !important;
    }
    
    .rental-content h2 {
        font-size: 1.8rem !important;
    }
}
    
    .rentals-hero h1 {
        font-size: 2.5rem;
    }
}

/* =========================================================================
   RENTAL GUIDE + FAQ + CROSS-LINKS
   Long-form block appended to each product page. See inc/rental-content.php.
   ========================================================================= */

.rental-guide {
    padding: 80px 0 60px;
    background-color: #fff;
}

.rental-guide__title,
.rental-faq__title,
.rental-siblings__title {
    font-size: 2.6rem;
    font-weight: 900;
    color: #003366;
    margin-bottom: 24px;
}

.rental-guide__intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    max-width: 65ch;
    margin-bottom: 50px;
}

.rental-guide__intro a,
.rental-siblings__note a,
.rental-faq__answer a {
    color: #003366;
    font-weight: 700;
    text-decoration: underline;
}

.rental-guide__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 34px;
}

.rental-guide__card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #003366;
    margin-bottom: 12px;
}

.rental-guide__card p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #555;
    margin: 0;
}

/* FAQ ------------------------------------------------------------------- */

.rental-faq {
    padding: 70px 0;
    background-color: #f4f4f4;
}

.rental-faq__list {
    max-width: 860px;
}

.rental-faq__item {
    border-bottom: 1px solid #dcdcdc;
}

.rental-faq__item summary {
    cursor: pointer;
    list-style: none;
    padding: 22px 44px 22px 0;
    position: relative;
    font-size: 1.15rem;
    font-weight: 700;
    color: #003366;
}

.rental-faq__item summary::-webkit-details-marker {
    display: none;
}

.rental-faq__item summary::after {
    content: '+';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1;
    color: #add136;
}

.rental-faq__item[open] summary::after {
    content: '\2212';
}

.rental-faq__item summary:focus-visible {
    outline: 3px solid #add136;
    outline-offset: 3px;
}

.rental-faq__answer p {
    margin: 0;
    padding: 0 44px 26px 0;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}

/* Cross-links ----------------------------------------------------------- */

.rental-siblings {
    padding: 70px 0 90px;
    background-color: #fff;
}

.rental-siblings__links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 26px;
}

.rental-siblings__link {
    display: inline-block;
    padding: 13px 24px;
    border: 2px solid #003366;
    border-radius: 999px;
    font-weight: 700;
    color: #003366;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease;
}

.rental-siblings__link:hover,
.rental-siblings__link:focus-visible {
    background-color: #003366;
    color: #fff;
}

.rental-siblings__note {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #555;
    margin: 0;
}

@media (max-width: 768px) {
    .rental-guide { padding: 55px 0 40px; }
    .rental-faq   { padding: 50px 0; }
    .rental-siblings { padding: 50px 0 65px; }

    .rental-guide__title,
    .rental-faq__title,
    .rental-siblings__title { font-size: 2rem; }

    .rental-guide__grid { gap: 26px; }
}
