﻿:root {
    --navy: #0D1B2A;
    --navy-2: #123E5A;
    --teal: #00A7B3;
    --cyan: #3CC6D0;
    --gold: #C9973D;
    --bg: #F7FAFC;
    --surface: #FFFFFF;
    --surface-2: #EFF5F8;
    --text: #102334;
    --muted: #6B7D8A;
    --border: #DFE8EE;
    --shadow: 0 16px 45px rgba(13, 27, 42, .10);
    --hero-overlay: linear-gradient(90deg, rgba(6, 28, 45, .88), rgba(6, 28, 45, .35));
    --hero-image: url('https://images.unsplash.com/photo-1540946485063-a40da27545f8?auto=format&fit=crop&w=1900&q=85');
}

html[data-theme="dark"] {
    --bg: #07131F;
    --surface: #0D2132;
    --surface-2: #102A3E;
    --text: #EDF7FA;
    --muted: #A9BAC6;
    --border: #1C3C52;
    --shadow: 0 18px 48px rgba(0, 0, 0, .28);
    --hero-overlay: linear-gradient(90deg, rgba(3, 17, 29, .92), rgba(3, 17, 29, .52));
    --hero-image: url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1900&q=85');
}

html[data-font="tajawal"] body { font-family: "Tajawal", sans-serif; }
html[data-font="cairo"] body { font-family: "Cairo", sans-serif; }
html[data-font="noto-kufi"] body { font-family: "Noto Kufi Arabic", sans-serif; }
html[data-font="almarai"] body { font-family: "Almarai", sans-serif; }
html[data-font="ibm-plex"] body { font-family: "IBM Plex Sans Arabic", sans-serif; }

html, body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); transition: background-color .25s ease, color .25s ease; }
a { text-decoration: none; }
.br-main { min-height: calc(100vh - 170px); }

.br-nav { background: color-mix(in srgb, var(--surface) 94%, transparent); border-bottom: 1px solid var(--border); box-shadow: 0 6px 24px rgba(13, 27, 42, .07); backdrop-filter: blur(18px); }
html[data-theme="dark"] .br-nav { background: rgba(7, 19, 31, .93); }
.navbar-toggler { border-color: var(--border); }
.navbar-toggler-icon { filter: none; }
html[data-theme="dark"] .navbar-toggler-icon { filter: invert(1); }

.br-brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--text) !important; min-width: 190px; }
.br-brand-mark { width: 48px; height: 48px; display: inline-flex; position: relative; align-items: center; justify-content: center; font-family: Georgia, serif; font-size: 2rem; font-weight: 800; line-height: 1; }
.br-brand-b { color: var(--navy); transform: translateX(-2px); }
html[data-theme="dark"] .br-brand-b { color: #FFF; }
.br-brand-r { color: var(--teal); margin-inline-start: -11px; }
.br-brand-mark i { position: absolute; font-size: .56rem; color: var(--gold); top: 7px; left: 7px; }
.br-brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.br-brand-copy strong { font-weight: 900; font-size: 1.08rem; }
.br-brand-copy small { margin-top: .35rem; color: var(--teal); letter-spacing: .14rem; font-size: .60rem; font-weight: 800; }

.br-main-menu .nav-link { color: var(--text); font-weight: 700; padding: 1rem .7rem !important; position: relative; }
.br-main-menu .nav-link:hover { color: var(--teal); }
.br-main-menu .nav-link::after { content: ""; position: absolute; right: .7rem; left: .7rem; bottom: .55rem; height: 2px; border-radius: 999px; background: var(--teal); transform: scaleX(0); transition: transform .2s ease; }
.br-main-menu .nav-link:hover::after { transform: scaleX(1); }

.br-toolbar { display: flex; align-items: center; gap: .55rem; }
.br-icon-btn, .btn-outline-brand { background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 10px; }
.br-icon-btn { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; }
.br-icon-btn:hover, .btn-outline-brand:hover { color: var(--teal); border-color: var(--teal); background: color-mix(in srgb, var(--teal) 8%, transparent); }
.theme-icon-light { display: none; color: var(--gold); }
html[data-theme="dark"] .theme-icon-dark { display: none; }
html[data-theme="dark"] .theme-icon-light { display: inline-block; }
.br-font-menu { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow); min-width: 250px; }
.br-font-menu .dropdown-item { color: var(--text); display: flex; justify-content: space-between; gap: 1rem; }
.br-font-menu .dropdown-item:hover, .br-font-menu .dropdown-item.active { background: var(--surface-2); color: var(--teal); }
.br-font-menu .dropdown-item[data-font="tajawal"] { font-family: "Tajawal", sans-serif; }
.br-font-menu .dropdown-item[data-font="cairo"] { font-family: "Cairo", sans-serif; }
.br-font-menu .dropdown-item[data-font="noto-kufi"] { font-family: "Noto Kufi Arabic", sans-serif; }
.br-font-menu .dropdown-item[data-font="almarai"] { font-family: "Almarai", sans-serif; }
.br-font-menu .dropdown-item[data-font="ibm-plex"] { font-family: "IBM Plex Sans Arabic", sans-serif; }
.br-user-name { color: var(--text); font-weight: 700; }

.btn-br { background: linear-gradient(135deg, var(--teal), var(--cyan)); border: 0; color: #FFF; border-radius: 11px; font-weight: 800; box-shadow: 0 8px 24px rgba(0, 167, 179, .18); }
.btn-br:hover, .btn-br:focus { color: #FFF; filter: brightness(.96); transform: translateY(-1px); }

.hero { position: relative; min-height: 600px; display: flex; align-items: center; color: #FFF; overflow: hidden; background-image: var(--hero-overlay), var(--hero-image); background-size: cover; background-position: center; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 95px; background: linear-gradient(to top, var(--bg), transparent); pointer-events: none; }
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 760px; padding: 5rem 0 7rem; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.11); backdrop-filter: blur(8px); padding: .55rem .85rem; border-radius: 999px; font-weight: 700; }
.hero h1 { margin-top: 1rem; font-size: clamp(2.4rem, 5vw, 4.7rem); font-weight: 900; line-height: 1.16; }
.hero .lead { max-width: 680px; font-size: 1.15rem; color: rgba(255,255,255,.88); }

.hero-search { margin-top: -64px; position: relative; z-index: 4; }
.search-card, .br-card, .card { background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 20px; box-shadow: var(--shadow); }
.search-card { padding: 1.15rem; }
.search-card label { color: var(--muted); font-size: .84rem; font-weight: 700; margin-bottom: .35rem; }

.form-control, .form-select { background-color: var(--surface); color: var(--text); border-color: var(--border); border-radius: 11px; min-height: 46px; }
.form-control:focus, .form-select:focus { background-color: var(--surface); color: var(--text); border-color: var(--teal); box-shadow: 0 0 0 .2rem rgba(0,167,179,.12); }
.form-control::placeholder { color: var(--muted); }
html[data-theme="dark"] .form-select { color-scheme: dark; }

.section-block { padding: 5rem 0; }
.section-title { font-weight: 900; color: var(--text); }
.section-kicker { color: var(--teal); font-weight: 900; letter-spacing: .04em; }
.text-muted { color: var(--muted) !important; }

.trip-card { height: 100%; padding: 1.7rem; text-align: center; transition: transform .2s ease, border-color .2s ease; }
.trip-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--teal) 55%, var(--border)); }
.trip-icon { width: 66px; height: 66px; margin: 0 auto 1rem; display: grid; place-items: center; border-radius: 20px; background: color-mix(in srgb, var(--teal) 12%, var(--surface)); color: var(--teal); font-size: 1.65rem; }

.features-strip { background: var(--navy); color: #FFF; }
.feature-item { display: flex; align-items: center; gap: .9rem; padding: 1.35rem 0; }
.feature-item i { color: var(--cyan); font-size: 1.6rem; width: 38px; text-align: center; }
.feature-item strong { display: block; font-size: 1rem; }
.feature-item small { color: #AFC3D1; }

.boat-card { overflow: hidden; border-radius: 20px; transition: .2s; }
.boat-card:hover { transform: translateY(-4px); }
.boat-card img { height: 220px; object-fit: cover; }
.price { color: var(--gold); font-weight: 800; }
.badge-soft { background: color-mix(in srgb, var(--teal) 12%, var(--surface)); color: var(--teal); }
.status { padding: .35rem .7rem; border-radius: 999px; font-size: .85rem; font-weight: 700; }
.status-pending { background: #FFF4D7; color: #8D6400; }
.status-confirmed { background: #DFF7ED; color: #137A51; }
.status-rejected { background: #FDE7E7; color: #9D2727; }
.calendar-slot { border: 1px solid var(--border); border-radius: 12px; padding: .8rem; margin-bottom: .6rem; background: var(--surface); }
.slot-busy { background: var(--surface-2); color: var(--muted); }
.slot-free { border-color: color-mix(in srgb, var(--teal) 50%, var(--border)); }

.br-footer { margin-top: 5rem; background: #071A2A; color: #DCEAF3; border-top: 1px solid rgba(255,255,255,.08); }
.br-footer-brand { display: flex; align-items: baseline; gap: .7rem; }
.br-footer-brand strong { font-size: 1.25rem; }
.br-footer-brand small { color: var(--cyan); letter-spacing: .12rem; font-weight: 800; }
.br-footer-tagline { color: #9FB7C7; margin-top: .35rem; }
.br-footer-link { color: var(--cyan); font-weight: 800; }
.br-footer-link:hover { color: #FFF; }

@media (max-width: 1199.98px) {
    .br-toolbar { padding-top: .7rem; flex-wrap: wrap; }
    .br-main-menu .nav-link { padding: .65rem 0 !important; }
    .br-main-menu .nav-link::after { display: none; }
}

@media (max-width: 767.98px) {
    .hero { min-height: 540px; text-align: center; }
    .hero-content { margin-inline: auto; padding-top: 3.5rem; }
    .hero .lead { margin-inline: auto; }
    .hero-search { margin-top: -38px; }
    .feature-item { justify-content: center; text-align: right; }
    .br-toolbar { align-items: stretch; }
    .br-toolbar > * { flex: 0 0 auto; }
}

/* ==========================================================
   Boats Search v1.2 - Coastal cities + 30-day booking calendar
   ========================================================== */
.boats-search-page .search-card {
    border-radius: 22px;
}

.search-results-heading {
    padding-inline: .25rem;
}

.search-result-count {
    color: var(--teal);
    font-size: .9rem;
    font-weight: 800;
    margin-inline-start: .35rem;
}

.month-range-label {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--muted);
    font-weight: 700;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: .55rem .9rem;
}

.month-range-label i {
    color: var(--teal);
}

.empty-results-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
    border-radius: 22px;
    background: color-mix(in srgb, var(--teal) 12%, var(--surface));
    color: var(--teal);
    font-size: 1.8rem;
}

.boat-search-result {
    overflow: hidden;
}

.boat-result-summary {
    border-inline-end: 1px solid var(--border);
}

.boat-result-inner {
    display: grid;
    grid-template-columns: minmax(240px, .95fr) minmax(260px, 1.05fr);
    min-height: 355px;
}

.boat-result-image-wrap {
    position: relative;
    min-height: 355px;
    overflow: hidden;
    background: var(--surface-2);
}

.boat-result-image {
    width: 100%;
    height: 100%;
    min-height: 355px;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.boat-search-result:hover .boat-result-image {
    transform: scale(1.025);
}

.boat-availability-chip {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .7rem;
    border-radius: 999px;
    background: rgba(0, 137, 123, .94);
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(0,0,0,.14);
}

.boat-result-content {
    display: flex;
    flex-direction: column;
    padding: 1.4rem;
    min-width: 0;
}

.boat-result-title {
    margin: 0 0 .4rem;
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--text);
}

.boat-result-location {
    color: var(--muted);
    font-size: .9rem;
}

.boat-result-location i {
    color: var(--teal);
    margin-inline-end: .25rem;
}

.boat-capacity-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    white-space: nowrap;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: .45rem .65rem;
    color: var(--text);
    font-size: .82rem;
    font-weight: 800;
}

.boat-capacity-badge i {
    color: var(--teal);
}

.boat-meta-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: .65rem;
    margin: 1.25rem 0;
}

.boat-meta-item {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    padding: .72rem .8rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--surface-2) 62%, transparent);
    color: var(--muted);
    line-height: 1.55;
}

.boat-meta-item i {
    color: var(--teal);
    width: 18px;
    margin-top: .15rem;
}

.boat-meta-item strong {
    color: var(--gold);
}

.boat-result-calendar {
    background: color-mix(in srgb, var(--surface-2) 38%, var(--surface));
}

.availability-calendar-wrap {
    height: 100%;
    padding: 1.25rem;
}

.availability-calendar {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.availability-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: .85rem;
}

.availability-calendar-header > div {
    display: flex;
    flex-direction: column;
}

.availability-calendar-header .calendar-kicker {
    color: var(--teal);
    font-weight: 900;
    font-size: .78rem;
    margin-bottom: .15rem;
}

.availability-calendar-header strong {
    color: var(--text);
    font-size: 1rem;
}

.availability-calendar-header > i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: color-mix(in srgb, var(--teal) 12%, var(--surface));
    color: var(--teal);
    font-size: 1.15rem;
}

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .35rem;
}

.calendar-weekdays {
    margin-bottom: .35rem;
}

.calendar-weekdays span {
    text-align: center;
    color: var(--muted);
    font-size: .66rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-day {
    position: relative;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    cursor: default;
    transition: transform .15s ease, border-color .15s ease;
}

.calendar-day:not(.calendar-day-empty):hover {
    transform: translateY(-2px);
}

.calendar-day small {
    font-size: .54rem;
    color: var(--muted);
    line-height: 1;
    margin-bottom: 2px;
}

.calendar-day b {
    font-size: .82rem;
    line-height: 1;
}

.calendar-day-empty {
    visibility: hidden;
}

.calendar-day.status-free {
    background: color-mix(in srgb, #42A62A 10%, var(--surface));
    border-color: color-mix(in srgb, #42A62A 34%, var(--border));
}

.calendar-day.status-free b {
    color: #31851E;
}

.calendar-day.status-hold {
    background: color-mix(in srgb, #F59E0B 12%, var(--surface));
    border-color: color-mix(in srgb, #F59E0B 42%, var(--border));
}

.calendar-day.status-hold b {
    color: #C47700;
}

.calendar-day.status-booked {
    background: color-mix(in srgb, #E5484D 11%, var(--surface));
    border-color: color-mix(in srgb, #E5484D 42%, var(--border));
}

.calendar-day.status-booked b {
    color: #C83237;
}

.calendar-day.status-unavailable {
    background: color-mix(in srgb, #96A1AC 16%, var(--surface));
    border-color: color-mix(in srgb, #96A1AC 42%, var(--border));
}

.calendar-day.status-unavailable b {
    color: var(--muted);
}

.calendar-day.is-today::after {
    content: "اليوم";
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1px 5px;
    border-radius: 999px;
    background: var(--teal);
    color: #fff;
    font-size: .48rem;
    font-weight: 900;
}

.calendar-inline-legend,
.legend-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .8rem 1.1rem;
}

.calendar-inline-legend {
    margin-top: auto;
    padding-top: .8rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: .7rem;
}

.calendar-inline-legend span,
.legend-items span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.legend-dot {
    width: 9px;
    height: 9px;
    display: inline-block;
    border-radius: 50%;
    flex: 0 0 auto;
}

.status-free-dot { background: #42A62A; }
.status-hold-dot { background: #F59E0B; }
.status-booked-dot { background: #E5484D; }
.status-unavailable-dot { background: #96A1AC; }

.availability-legend {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.legend-title {
    font-weight: 900;
    color: var(--text);
}

.legend-items {
    color: var(--muted);
    font-size: .82rem;
}

html[data-theme="dark"] .calendar-day.status-free b { color: #78D862; }
html[data-theme="dark"] .calendar-day.status-hold b { color: #FFC259; }
html[data-theme="dark"] .calendar-day.status-booked b { color: #FF8589; }

@media (max-width: 1199.98px) {
    .boat-result-summary {
        border-inline-end: 0;
        border-bottom: 1px solid var(--border);
    }

    .boat-result-calendar {
        min-height: 380px;
    }
}

@media (max-width: 767.98px) {
    .boat-result-inner {
        grid-template-columns: 1fr;
    }

    .boat-result-image-wrap,
    .boat-result-image {
        min-height: 260px;
        height: 260px;
    }

    .boat-result-content {
        min-height: 285px;
    }

    .availability-calendar-wrap {
        padding: 1rem;
    }

    .calendar-day {
        min-height: 43px;
        border-radius: 8px;
    }

    .calendar-weekdays span {
        font-size: .58rem;
    }

    .availability-legend {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 479.98px) {
    .boat-result-content > .d-flex {
        flex-direction: column;
    }

    .calendar-days,
    .calendar-weekdays {
        gap: .2rem;
    }

    .calendar-day {
        min-height: 39px;
    }

    .calendar-day small {
        display: none;
    }
}

/* =========================================================
   BAHR ROAM v1.3 - Boat Gallery & Owner Image Management
   ========================================================= */
.boat-gallery-card {
    overflow: hidden;
}

.boat-gallery-main-wrap {
    position: relative;
    height: 490px;
    border-radius: 18px;
    overflow: hidden;
    background: var(--surface-2);
}

.boat-gallery-main {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .18s ease, transform .35s ease;
}

.boat-gallery-main.is-switching {
    opacity: .55;
    transform: scale(1.01);
}

.gallery-nav,
.gallery-expand {
    position: absolute;
    z-index: 4;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 50%;
    background: rgba(1, 27, 46, .68);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: transform .18s ease, background .18s ease;
}

.gallery-nav:hover,
.gallery-expand:hover {
    background: rgba(0, 170, 183, .9);
    transform: scale(1.06);
}

.gallery-prev {
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
}

.gallery-next {
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
}

.gallery-prev:hover,
.gallery-next:hover {
    transform: translateY(-50%) scale(1.06);
}

.gallery-expand {
    left: 16px;
    bottom: 16px;
}

.boat-gallery-thumbs-wrap {
    overflow-x: auto;
    scrollbar-width: thin;
}

.boat-gallery-thumbs {
    display: flex;
    gap: .75rem;
    min-width: min-content;
    padding-bottom: .3rem;
}

.boat-gallery-thumb {
    width: 105px;
    height: 78px;
    flex: 0 0 105px;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 13px;
    background: var(--surface-2);
    overflow: hidden;
    opacity: .72;
    transition: opacity .15s ease, border-color .15s ease, transform .15s ease;
}

.boat-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 9px;
}

.boat-gallery-thumb:hover,
.boat-gallery-thumb.active {
    opacity: 1;
    border-color: var(--teal);
    transform: translateY(-2px);
}

.boat-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 12, 24, .93);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.boat-gallery-lightbox.open {
    display: flex;
}

.boat-gallery-lightbox img {
    max-width: min(1200px, 94vw);
    max-height: 90vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0,0,0,.45);
}

.lightbox-close {
    position: absolute;
    top: 22px;
    left: 22px;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 1.15rem;
}

body.gallery-open {
    overflow: hidden;
}

.owner-boat-thumb {
    width: 76px;
    height: 54px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.boat-image-admin-card {
    overflow: hidden;
    transition: border-color .18s ease, transform .18s ease;
}

.boat-image-admin-card.is-main {
    border-color: color-mix(in srgb, var(--teal) 65%, var(--border));
}

.boat-image-admin-card:hover {
    transform: translateY(-3px);
}

.boat-image-admin-preview {
    position: relative;
    height: 230px;
    background: var(--surface-2);
}

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

.main-image-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: .42rem .7rem;
    border-radius: 999px;
    background: rgba(0, 170, 183, .92);
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    box-shadow: 0 6px 20px rgba(0,0,0,.18);
}

@media (max-width: 767.98px) {
    .boat-gallery-main-wrap {
        height: 340px;
    }

    .boat-gallery-thumb {
        width: 88px;
        height: 66px;
        flex-basis: 88px;
    }

    .boat-gallery-lightbox {
        padding: 1rem;
    }
}

@media (max-width: 479.98px) {
    .boat-gallery-main-wrap {
        height: 270px;
        border-radius: 14px;
    }

    .gallery-nav,
    .gallery-expand {
        width: 36px;
        height: 36px;
    }
}


/* v1.4 - Inquiries */
.inquiry-title-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    flex: 0 0 58px;
    font-size: 1.45rem;
    color: #fff;
    background: linear-gradient(135deg, var(--teal), var(--navy-2));
    box-shadow: 0 12px 28px rgba(0, 170, 183, .2);
}
.inquiry-textarea { min-height: 170px; resize: vertical; }
.inquiry-summary { position: sticky; top: 105px; }
.inquiry-number { display:inline-flex; padding:.4rem .7rem; border-radius:999px; background:var(--surface-2); border:1px solid var(--border); font-size:.82rem; font-weight:800; }
.inquiry-meta { display:grid; gap:.85rem; margin-top:1.5rem; }
.inquiry-meta > div { display:flex; align-items:center; gap:.65rem; color:var(--muted); }
.inquiry-meta i { width:22px; color:var(--teal); text-align:center; }
.inquiry-status { display:block; padding:.75rem 1rem; border-radius:12px; font-weight:800; background:var(--surface-2); border:1px solid var(--border); }
.status-awaitingowner { color:#b26a00; }
.status-awaitingrenter { color:var(--teal); }
.status-closed { color:var(--muted); }
.inquiry-thread { overflow:hidden; }
.inquiry-thread-header { padding:1.15rem 1.35rem; border-bottom:1px solid var(--border); background:var(--surface-2); }
.inquiry-messages { padding:1.4rem; display:flex; flex-direction:column; gap:1rem; min-height:300px; max-height:620px; overflow:auto; }
.inquiry-message { width:min(82%, 680px); padding:1rem 1.1rem; border-radius:18px; border:1px solid var(--border); background:var(--surface-2); }
.inquiry-message.mine { align-self:flex-start; background:color-mix(in srgb, var(--teal) 12%, var(--surface)); border-color:color-mix(in srgb, var(--teal) 40%, var(--border)); }
.inquiry-message.theirs { align-self:flex-end; }
.inquiry-message-head { display:flex; justify-content:space-between; gap:1rem; align-items:center; margin-bottom:.55rem; font-size:.83rem; }
.inquiry-message-head span { color:var(--muted); font-size:.75rem; white-space:nowrap; }
.inquiry-message-body { line-height:1.9; overflow-wrap:anywhere; }
.inquiry-reply { padding:1.25rem 1.4rem; border-top:1px solid var(--border); background:var(--surface-2); }
@media (max-width: 991.98px) { .inquiry-summary { position:static; } }
@media (max-width: 575.98px) { .inquiry-message { width:94%; } .inquiry-message-head { align-items:flex-start; flex-direction:column; gap:.2rem; } }


/* ==========================================================
   Bilingual RTL/LTR foundation - reference build
   ========================================================== */
html[dir="rtl"] body { direction: rtl; text-align: right; }
html[dir="ltr"] body { direction: ltr; text-align: left; }
html[dir="ltr"]:not([data-font]) body { font-family: "Poppins", "Tajawal", sans-serif; }
html[dir="ltr"] .br-main-menu { margin-right: auto !important; margin-left: 0 !important; }
html[dir="rtl"] .br-main-menu { margin-left: auto !important; margin-right: 0 !important; }
html[dir="ltr"] .br-toolbar { margin-left: auto; margin-right: 0; }
html[dir="rtl"] .br-toolbar { margin-right: auto; margin-left: 0; }
html[dir="ltr"] .dropdown-menu { text-align: left; }
html[dir="rtl"] .dropdown-menu { text-align: right; }
html[dir="ltr"] .br-font-menu { right: 0; left: auto; }
html[dir="rtl"] .br-font-menu { left: 0; right: auto; }
html[dir="ltr"] .br-main-menu .nav-link::after { left: .7rem; right: .7rem; }
html[dir="ltr"] .boat-availability-chip { left: 16px; right: auto; }
html[dir="rtl"] .boat-availability-chip { right: 16px; left: auto; }
html[dir="ltr"] .br-footer-copyright { text-align: right; }
html[dir="rtl"] .br-footer-copyright { text-align: left; }
html[dir="ltr"] .icon-inline { margin-right: .5rem; }
html[dir="rtl"] .icon-inline { margin-left: .5rem; }
.br-language-btn { min-width: 74px; font-weight: 800; }
@media (max-width:1199.98px) {
  html[dir="ltr"] .br-toolbar, html[dir="rtl"] .br-toolbar { margin: 0; }
}
@media (max-width:767.98px) {
  html[dir="ltr"] .feature-item, html[dir="rtl"] .feature-item { text-align: start; }
}
