/* ==========================================================================
   Ankor Boats — detail page styles
   ========================================================================== */

/* Gallery
   ========================================================================== */
.webth-ab-gallery {
    display: grid;
    grid-template-columns: 3fr 2fr;
    grid-template-rows: auto auto;
    gap: 4px;
    max-height: 500px;
    overflow: hidden;
    position: relative;
    background: #fff;
}
.webth-ab-gallery__main {
    grid-row: 1 / 3;
    overflow: hidden;
    cursor: pointer;
}
.webth-ab-gallery__main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.webth-ab-gallery__thumbs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
}
.webth-ab-gallery__thumb {
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.webth-ab-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.webth-ab-gallery__thumb:hover img {
    transform: scale(1.04);
}
.webth-ab-gallery__thumb--more img {
    filter: brightness(0.4);
}
.webth-ab-gallery__more-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
    pointer-events: none;
}
.webth-ab-gallery__placeholder {
    background: #1a2a3a;
}
.webth-ab-gallery__btn {
    position: absolute;
    bottom: 14px;
    right: 14px;
    z-index: 10;
    background: rgba(0,0,0,.65);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}
.webth-ab-gallery__btn:hover { background: rgba(0,0,0,.85); }
.webth-ab-gallery__btn .material-icons { font-size: 16px; }

/* Page wrap & two-column layout
   ========================================================================== */
.webth-ab-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}
.webth-ab-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: start;
}

/* Main content
   ========================================================================== */
.webth-ab-title {
    font-size: 30px !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin: 0 0 8px !important;
    line-height: 1.2 !important;
}
.webth-ab-location {
    color: #3791B7;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 18px !important;
}

/* Price bar
   ========================================================================== */
.webth-ab-price-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    background: #03045E;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
    margin-bottom: 0;
}
.webth-ab-price-bar__item {
    flex: 1;
    padding: 14px 20px;
    color: #fff;
    border-right: 1px solid rgba(255,255,255,.15);
    min-width: 160px;
}
.webth-ab-price-bar__item:last-child { border-right: none; }
.webth-ab-price-bar__amount {
    display: block;
    font-size: 18px;
    font-weight: 700;
}
.webth-ab-price-bar__unit {
    display: block;
    font-size: 12px;
    opacity: 0.75;
    margin-top: 2px;
}
.webth-ab-price-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
    padding: 10px 12px;
    background: #0077b6;
    border-radius: 0 0 4px 4px;
}
.webth-ab-price-badge {
    background: rgba(255,255,255,.2);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Boat Features
   ========================================================================== */
.webth-ab-section-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin: 0 0 14px !important;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8edf2;
}
.webth-ab-features {
    margin-bottom: 28px;
}
.webth-ab-specs {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}
.webth-ab-specs li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #444;
    background: #f7f9fb;
    border: 1px solid #e8edf2;
    border-radius: 4px;
    padding: 8px 12px;
}
.webth-ab-specs li .material-icons {
    font-size: 18px;
    color: #3791B7;
    flex-shrink: 0;
}

/* Breadcrumb
   ========================================================================== */
.webth-ab-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #888;
    margin-bottom: 24px;
}
.webth-ab-breadcrumb a {
    color: #3791B7;
    text-decoration: none !important;
}
.webth-ab-breadcrumb a:hover { text-decoration: underline !important; }
.webth-ab-breadcrumb span { color: #bbb; }
.webth-ab-breadcrumb span:last-child { color: #555; }

/* Description
   ========================================================================== */
.webth-ab-description {
    font-size: 15px;
    line-height: 1.75;
    color: #444;
    margin-bottom: 36px;
}
.webth-ab-description h2 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin: 24px 0 10px !important;
}
.webth-ab-description p {
    margin: 0 0 14px !important;
}

/* Rates & Policies
   ========================================================================== */
.webth-ab-rates {
    border-top: 2px solid #e8edf2;
    padding-top: 24px;
    margin-top: 16px;
}
.webth-ab-rates__prices {
    margin-bottom: 16px;
}
.webth-ab-rates__prices p {
    font-size: 15px;
    color: #333;
    font-weight: 600;
    margin: 0 0 6px !important;
}
.webth-ab-rates__subheading {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin: 20px 0 10px !important;
}
.webth-ab-rates__body {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 16px;
}
.webth-ab-rates__caterer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #444;
    margin: 0 0 8px !important;
}
.webth-ab-rates__caterer .material-icons { font-size: 18px; color: #3791B7; }
.webth-ab-rates__caterer a { color: #3791B7; text-decoration: none; }
.webth-ab-rates__caterer a:hover { text-decoration: underline; }

/* Sidebar
   ========================================================================== */
.webth-ab-sidebar {
    position: sticky;
    top: 90px;
}

/* Booking form card
   ========================================================================== */
.webth-ab-form-card {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 6px;
    padding: 24px;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.webth-ab-form-card__title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin: 0 0 4px !important;
    padding-bottom: 10px;
    border-bottom: 3px solid #3791B7;
}
.webth-ab-form-card__intro {
    font-size: 13px;
    color: #666;
    margin: 10px 0 18px !important;
    line-height: 1.5;
}

/* Form fields
   ========================================================================== */
.webth-ab-form__field {
    margin-bottom: 14px;
}
.webth-ab-form__field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}
.webth-ab-form__field label span {
    color: #e53935;
}
.webth-ab-form__field input,
.webth-ab-form__field select,
.webth-ab-form__field textarea {
    width: 100%;
    border: 1px solid #dde3e8;
    border-radius: 4px;
    padding: 9px 12px;
    font-size: 13px;
    color: #333;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}
.webth-ab-form__field input:focus,
.webth-ab-form__field select:focus,
.webth-ab-form__field textarea:focus {
    outline: none;
    border-color: #3791B7;
    box-shadow: 0 0 0 3px rgba(55,145,183,.12);
}
.webth-ab-form__field input.is-invalid,
.webth-ab-form__field select.is-invalid,
.webth-ab-form__field textarea.is-invalid {
    border-color: #e53935;
}
.webth-ab-form__field textarea {
    resize: vertical;
    min-height: 80px;
}
.webth-ab-form__field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
    cursor: pointer;
}
.webth-ab-form__submit {
    width: 100%;
    padding: 12px;
    background: #e53935;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 4px;
}
.webth-ab-form__submit:hover { background: #c62828; }
.webth-ab-form__submit:disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* Form messages
   ========================================================================== */
.webth-ab-form-msg {
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}
.webth-ab-form-msg.is-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}
.webth-ab-form-msg.is-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* Lightbox
   ========================================================================== */
.webth-ab-lightbox[hidden] {
    display: none !important;
}
.webth-ab-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.webth-ab-lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.9);
    cursor: pointer;
}
.webth-ab-lightbox__inner {
    position: relative;
    z-index: 1;
    max-width: calc(100vw - 120px);
    max-height: calc(100vh - 80px);
    text-align: center;
}
.webth-ab-lightbox__img {
    max-width: 100%;
    max-height: calc(100vh - 120px);
    object-fit: contain;
    border-radius: 2px;
    display: block;
    margin: 0 auto;
}
.webth-ab-lightbox__counter {
    color: rgba(255,255,255,.7);
    font-size: 13px;
    margin: 10px 0 0 !important;
}
.webth-ab-lightbox__close,
.webth-ab-lightbox__prev,
.webth-ab-lightbox__next {
    position: fixed;
    z-index: 2;
    background: rgba(255,255,255,.15);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.webth-ab-lightbox__close:hover,
.webth-ab-lightbox__prev:hover,
.webth-ab-lightbox__next:hover { background: rgba(255,255,255,.3); }
.webth-ab-lightbox__close { top: 20px; right: 20px; font-size: 28px; }
.webth-ab-lightbox__prev  { left: 20px;  top: 50%; transform: translateY(-50%); }
.webth-ab-lightbox__next  { right: 20px; top: 50%; transform: translateY(-50%); }

/* Responsive
   ========================================================================== */
@media screen and (max-width: 960px) {
    .webth-ab-layout {
        grid-template-columns: 1fr;
    }
    .webth-ab-sidebar {
        position: static;
    }
    .webth-ab-gallery {
        max-height: 380px;
    }
}
@media screen and (max-width: 680px) {
    .webth-ab-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: 260px auto;
        max-height: none;
    }
    .webth-ab-gallery__main {
        grid-row: auto;
        height: 260px;
    }
    .webth-ab-gallery__thumbs {
        height: 140px;
    }
    .webth-ab-specs {
        grid-template-columns: 1fr;
    }
    .webth-ab-price-bar {
        flex-direction: column;
    }
    .webth-ab-lightbox__inner {
        max-width: calc(100vw - 20px);
    }
    .webth-ab-lightbox__prev { left: 6px; }
    .webth-ab-lightbox__next { right: 6px; }
}
