/**
 * itc-ota ▸ Complementos de estilo (enfileirado SÓ nas rotas do plugin).
 *
 * O VISUAL-base é do tema BookYourTravel (Poppins, .cruise_item, .item_price,
 * .gradient-button, .promo-ribbon, .inner-nav...). Aqui só entra o que o tema
 * não cobre: grid/imagem dos cards, formulário de filtros, carrossel da galeria,
 * tabela de itinerário, lista de cabines, grid de instalações, accordion de
 * FAQs, sidebar e pager. Tom neutro; verde da casa #006303.
 */

/* ── Botões: garante o verde da casa nos contextos do plugin ───────────── */

.itc-archive .gradient-button,
.itc-single .gradient-button,
.itc-sidebar .gradient-button,
.itc-filters input[type="submit"].gradient-button {
    background: #006303;
    background-image: none;
    color: #fff;
    border: 0;
    cursor: pointer;
    text-decoration: none;
}

.itc-archive .gradient-button:hover,
.itc-single .gradient-button:hover,
.itc-sidebar .gradient-button:hover,
.itc-filters input[type="submit"].gradient-button:hover {
    background: #004d02;
    color: #fff;
}

/* ── Archive: título, contagem, vazio ──────────────────────────────────── */

.itc-archive__title {
    margin: 20px 0 4px;
}

.itc-archive__count {
    margin: 0 0 16px;
    color: #6b7177;
    font-size: 0.875em;
}

.itc-empty {
    margin: 30px 0;
    padding: 18px 20px;
    background: #f6f7f8;
    border: 1px solid #e3e6e8;
    border-radius: 4px;
    color: #444;
}

/* ── Archive: formulário de filtros (GET puro) ─────────────────────────── */

.itc-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin: 0 0 24px;
    padding: 16px;
    background: #f6f7f8;
    border: 1px solid #e3e6e8;
    border-radius: 4px;
}

.itc-filters__field {
    display: flex;
    flex-direction: column;
    flex: 1 1 170px;
    min-width: 150px;
}

.itc-filters__field label {
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #555b60;
    margin: 0 0 4px;
}

.itc-filters__field select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #cfd4d8;
    border-radius: 3px;
    background: #fff;
    color: #333;
    font: inherit;
    line-height: 1.4;
}

.itc-filters__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.itc-filters input[type="submit"].gradient-button {
    padding: 9px 22px;
    border-radius: 3px;
    font: inherit;
    font-weight: 600;
}

.itc-filters__clear {
    font-size: 0.875em;
    color: #6b7177;
    text-decoration: underline;
}

.itc-filters__clear:hover {
    color: #006303;
}

/* ── Cards (complemento ao .cruise_item do tema) ───────────────────────── */

.itc-deals .row {
    display: flex;
    flex-wrap: wrap;
}

.itc-card {
    display: flex;
    flex-direction: column;
}

.itc-card > div {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
}

.itc-card figure {
    position: relative;
    margin: 0;
    overflow: hidden;
}

.itc-card figure img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.itc-card .details {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.itc-card .details .address {
    display: block;
    font-size: 0.8125em;
    color: #6b7177;
    line-height: 1.45;
}

.itc-card .item_price.itc-consult {
    color: #6b7177;
    font-weight: 600;
}

.itc-card .actions {
    margin-top: auto;
}

/* Link-véu do card (padrão do tema); CTA e título ficam por cima. */
.itc-card .overlay-link {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    font-size: 0;
}

.itc-card .details h3,
.itc-card .details .actions {
    position: relative;
    z-index: 2;
}

/* ── Pager ─────────────────────────────────────────────────────────────── */

.itc-pagination {
    margin: 24px 0 8px;
}

.itc-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.itc-pager .page-numbers {
    display: inline-block;
    min-width: 36px;
    padding: 7px 10px;
    text-align: center;
    border: 1px solid #dfe3e6;
    border-radius: 3px;
    background: #fff;
    color: #333;
    text-decoration: none;
    line-height: 1.2;
}

.itc-pager a.page-numbers:hover {
    border-color: #006303;
    color: #006303;
}

.itc-pager .page-numbers.current {
    background: #006303;
    border-color: #006303;
    color: #fff;
}

.itc-pager .page-numbers.dots {
    border: 0;
    background: transparent;
}

/* ── Single: galeria (carrossel scroll-snap, CSS puro) ─────────────────── */

.itc-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin: 0 0 22px;
    padding-bottom: 6px;
}

.itc-gallery__item {
    position: relative;
    flex: 0 0 72%;
    max-width: 720px;
    margin: 0;
    scroll-snap-align: center;
    border-radius: 4px;
    overflow: hidden;
}

.itc-gallery__img {
    display: block;
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.itc-gallery__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px 14px 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
    color: #fff;
    font-size: 0.8125em;
    line-height: 1.35;
}

.itc-gallery::-webkit-scrollbar {
    height: 8px;
}

.itc-gallery::-webkit-scrollbar-thumb {
    background: #cfd4d8;
    border-radius: 4px;
}

/* ── Single: nav de abas âncora (herda .inner-nav do tema) ─────────────── */

.itc-anchor-nav {
    margin: 0 0 20px;
}

.itc-anchor-nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 2px solid #e3e6e8;
}

.itc-anchor-nav li a {
    display: block;
    padding: 10px 16px;
    color: #444;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.itc-anchor-nav li a:hover,
.itc-anchor-nav li.active a {
    color: #006303;
    border-bottom-color: #006303;
}

/* Seções sempre visíveis (abas de âncora, sem JS) + alvo de âncora folgado. */
.itc-section {
    display: block !important;
    margin: 0 0 34px;
    scroll-margin-top: 90px;
}

.itc-section > article > h2 {
    margin: 0 0 16px;
}

/* ── Single: disponibilidade (famílias → categorias) ───────────────────── */

.itc-cabin-family {
    margin: 0 0 22px;
}

.itc-cabin-family__title {
    margin: 0 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e3e6e8;
}

.itc-cabin-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.itc-cabin-cat {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    margin: 0 0 10px;
    background: #fff;
    border: 1px solid #e3e6e8;
    border-radius: 4px;
}

.itc-cabin-cat--soldout {
    opacity: 0.65;
    background: #f6f7f8;
}

.itc-cabin-cat__meta {
    flex: 1 1 260px;
}

.itc-cabin-cat__name {
    margin: 0 0 4px;
    font-size: 1em;
}

.itc-cabin-cat__code {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: #eef1f2;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: 600;
    color: #555b60;
    vertical-align: middle;
}

.itc-cabin-cat__fare {
    margin: 0;
    font-size: 0.8125em;
    color: #6b7177;
}

.itc-cabin-cat__status {
    margin: 4px 0 0;
    font-size: 0.8125em;
    font-weight: 600;
    color: #a33;
}

.itc-cabin-cat__price {
    flex: 0 0 auto;
    text-align: right;
}

.itc-cabin-cat__price .item_price {
    margin: 0;
}

.itc-cabin-cat__pp,
.itc-sidebar-card__pp {
    display: block;
    font-size: 0.75em;
    color: #6b7177;
}

.itc-cabin-cat__tax {
    display: block;
    margin-top: 2px;
    font-size: 0.8125em;
    color: #444;
}

.itc-consult {
    color: #6b7177;
    font-weight: 600;
}

.itc-note {
    margin: 14px 0 0;
    font-size: 0.8125em;
    color: #6b7177;
}

/* ── Single: tabela de itinerário ──────────────────────────────────────── */

.itc-table-wrap {
    overflow-x: auto;
}

.itc-itin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.9375em;
}

.itc-itin-table th,
.itc-itin-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecee;
    white-space: nowrap;
}

.itc-itin-table th {
    background: #f6f7f8;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #555b60;
}

.itc-itin-table td:nth-child(3) {
    white-space: normal;
}

.itc-itin-row--sea td {
    color: #8a9096;
    font-style: italic;
}

/* ── Single: instalações (grid) ────────────────────────────────────────── */

.itc-ents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
}

.itc-ent-card {
    background: #fff;
    border: 1px solid #e3e6e8;
    border-radius: 4px;
    overflow: hidden;
}

.itc-ent-card__media img {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.itc-ent-card__body {
    padding: 10px 12px;
}

.itc-ent-card__name {
    margin: 0 0 2px;
    font-size: 0.9375em;
}

.itc-ent-card__cat {
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7177;
}

/* ── Single: FAQs (accordion nativo) ───────────────────────────────────── */

.itc-faq-item {
    margin: 0 0 8px;
    background: #fff;
    border: 1px solid #e3e6e8;
    border-radius: 4px;
}

.itc-faq-item__q {
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 600;
    list-style-position: inside;
}

.itc-faq-item__q:hover {
    color: #006303;
}

.itc-faq-item[open] .itc-faq-item__q {
    border-bottom: 1px solid #eef1f2;
}

.itc-faq-item__a {
    padding: 10px 16px 14px;
    color: #444;
}

.itc-faq-item__a p {
    margin: 0;
}

/* ── Single: sidebar ───────────────────────────────────────────────────── */

.itc-sidebar > ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.itc-sidebar-card {
    position: sticky;
    top: 20px;
    padding: 18px;
    background: #fff;
    border: 1px solid #e3e6e8;
    border-radius: 4px;
}

.itc-sidebar-card h1 {
    margin: 0 0 8px;
    font-size: 1.25em;
    line-height: 1.3;
}

.itc-sidebar-card .address {
    display: block;
    margin: 0 0 12px;
    font-size: 0.875em;
    color: #6b7177;
}

.itc-sidebar-card .item_price {
    margin: 0;
}

.itc-fact-tags {
    margin: 12px 0;
}

.itc-fact-tags ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.itc-fact-tags li span {
    display: inline-block;
    padding: 4px 10px;
    background: #eef6ee;
    border: 1px solid #cfe3cf;
    border-radius: 999px;
    font-size: 0.75em;
    font-weight: 600;
    color: #006303;
}

.itc-sidebar .itc-cta-whatsapp {
    display: block;
    margin: 14px 0 0;
    padding: 12px 16px;
    text-align: center;
    border-radius: 3px;
    font-weight: 600;
}

.itc-sidebar-card__note {
    margin: 10px 0 0;
    font-size: 0.75em;
    color: #6b7177;
    line-height: 1.45;
}

/* ── Responsivo ────────────────────────────────────────────────────────── */

@media (max-width: 991px) {
    .itc-gallery__img {
        height: 280px;
    }
}

@media (max-width: 767px) {
    .itc-filters__field {
        flex-basis: 100%;
    }

    .itc-filters__actions {
        flex-basis: 100%;
    }

    .itc-gallery__item {
        flex-basis: 86%;
    }

    .itc-gallery__img {
        height: 210px;
    }

    .itc-cabin-cat__price {
        flex-basis: 100%;
        text-align: left;
    }

    .itc-sidebar-card {
        position: static;
    }
}
