
.gtr-catalog {
    color: #18181b;
    font-family: inherit;
}

.gtr-catalog-heading {
    margin-bottom: 30px;
}

.gtr-catalog-heading > p {
    color: #d69b00;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0 0 8px;
}

.gtr-catalog-heading h2 {
    color: #18181b;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin: 0 0 8px;
}

.gtr-catalog-heading > span {
    color: #71717a;
    font-size: 14px;
}

.gtr-vehicle-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.gtr-vehicle-card {
    display: flex;
flex-direction: column;
    flex: 0 1 calc((100% - 48px) / 3);
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .055);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.gtr-vehicle-card:hover {
    transform: translateY(-4px);
    border-color: #d6a000;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .10);
}

.gtr-vehicle-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f4f4f5;
}

.gtr-vehicle-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.gtr-vehicle-card:hover .gtr-vehicle-image img {
    transform: scale(1.045);
}

.gtr-featured {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 7px 12px;
    border-radius: 5px;
    background: #d9a300;
    color: #111;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
}

.gtr-vehicle-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
}

.gtr-vehicle-make {
    display: block;
    color: #71717a;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.gtr-vehicle-content h3 {
    color: #18181b;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin: 6px 0 10px;
}

.gtr-vehicle-price {
    color: #946800;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 18px;
}

.gtr-vehicle-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    margin-bottom: 20px;
}

.gtr-vehicle-specs > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    font-size: 13px;
}

.gtr-vehicle-specs span {
    color: #71717a;
    font-size: 11px;
}

.gtr-vehicle-specs strong {
    color: #27272a;
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.gtr-view-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 0 0;
    border: 0;
    border-top: 1px solid #e4e4e7;
    border-radius: 0;
    background: transparent;
    color: #18181b;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
}

.gtr-view-details::after {
    content: "\2192";
    color: #c39200;
    font-size: 21px;
    font-weight: 400;
}

.gtr-view-details:disabled {
    opacity: .65;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .gtr-vehicle-card {
        flex-basis: calc((100% - 24px) / 2);
    }
}

@media (max-width: 600px) {
    .gtr-vehicle-grid {
        gap: 20px;
    }

    .gtr-vehicle-card {
        flex-basis: 100%;
    }

    .gtr-vehicle-content {
        padding: 18px;
    }
}

.gtr-catalog .gtr-view-details {
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 40px;
    padding: 12px 0 0;
    margin: auto 0 0;
    border: 0;
    border-top: 1px solid #e4e4e7;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #18181b;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
}

.gtr-catalog .gtr-view-details:disabled {
    background: transparent;
    color: #18181b;
    opacity: 1;
    cursor: not-allowed;
}

.gtr-catalog-heading {
    text-align: center;
}

.gtr-catalog .gtr-modal[hidden],
.gtr-catalog .gtr-modal [hidden] {
    display: none !important;
}

/* GTR Inventory Modal */

.gtr-catalog .gtr-modal:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.85);
}

.gtr-catalog .gtr-modal-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: auto;
    padding: 30px;
    border: 1px solid #333;
    border-radius: 16px;
    background: #111;
    color: #fff;
}

.gtr-catalog .gtr-modal-close {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 1000000;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;
    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;

    background: rgba(15, 15, 15, 0.95);
    color: #fff;

    font-family: Arial, sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: background 0.2s, color 0.2s;
}

.gtr-catalog .gtr-modal-close:hover {
    background: #e0a800;
    color: #111;
}

@media (max-width: 767px) {
    .gtr-catalog .gtr-modal-close {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
    }
}

.gtr-catalog .gtr-modal-header h2,
.gtr-catalog .gtr-modal-information h3 {
    color: #fff;
}


/* ========================================
   GTR Vehicle Modal - Layout
======================================== */

.gtr-catalog .gtr-modal-container {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 0;
    padding: 0;
    overflow: hidden;
    max-width: 1120px;
    background: #111;
}

/* Vehicle heading - right column */
.gtr-catalog .gtr-modal-header {
    grid-column: 2;
    grid-row: 1;
    padding: 32px 32px 16px;
}

.gtr-catalog .gtr-modal-featured {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 9px;
    border-radius: 4px;
    background: #e0a800;
    color: #111;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
}

.gtr-catalog .gtr-modal-make {
    margin: 0 0 8px;
    color: #a1a1aa;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.gtr-catalog .gtr-modal-title {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.15;
}

.gtr-catalog .gtr-modal-price {
    margin: 14px 0 0;
    color: #f5b900;
    font-size: 25px;
    font-weight: 700;
}

/* Gallery - left column */
.gtr-catalog .gtr-modal-gallery {
    grid-column: 1;
    grid-row: 1 / span 2;
    min-width: 0;
    padding: 22px;
    background: #080808;
    border-right: 1px solid #27272a;
}

.gtr-catalog .gtr-modal-main-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background: #18181b;
}

.gtr-catalog .gtr-modal-main-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
}

/* Gallery navigation */
.gtr-catalog .gtr-modal-prev,
.gtr-catalog .gtr-modal-next {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    background: rgba(0,0,0,.75);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.gtr-catalog .gtr-modal-prev {
    left: 12px;
}

.gtr-catalog .gtr-modal-next {
    right: 12px;
}

.gtr-catalog .gtr-modal-prev:hover,
.gtr-catalog .gtr-modal-next:hover {
    background: #e0a800;
    color: #111;
}

/* Horizontal thumbnails */
.gtr-catalog .gtr-modal-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    padding-bottom: 8px;
    overflow-x: auto;
}

.gtr-catalog .gtr-modal-thumbnails button {
    flex: 0 0 100px;
    width: 100px;
    height: 75px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #18181b;
    cursor: pointer;
}

.gtr-catalog .gtr-modal-thumbnails button.is-active {
    border-color: #e0a800;
}

.gtr-catalog .gtr-modal-thumbnails img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact buttons */
.gtr-catalog .gtr-modal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.gtr-catalog .gtr-modal-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
}

.gtr-catalog .gtr-modal-call {
    background: #e0a800;
    color: #111;
}

.gtr-catalog .gtr-modal-whatsapp {
    border: 1px solid #52525b;
    background: #18181b;
    color: #fff;
}

/* Vehicle information - right column */
.gtr-catalog .gtr-modal-information {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    padding: 8px 32px 32px;
}

.gtr-catalog .gtr-modal-information h3 {
    margin: 0 0 16px;
    font-size: 18px;
}

.gtr-catalog .gtr-modal-description {
    margin-bottom: 28px;
}

.gtr-catalog .gtr-modal-description p {
    color: #a1a1aa;
    line-height: 1.65;
}

.gtr-catalog .gtr-modal-specifications {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 16px;
    margin: 0;
}

.gtr-catalog .gtr-modal-specifications dt {
    color: #a1a1aa;
    font-size: 13px;
}

.gtr-catalog .gtr-modal-specifications dd {
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* Tablet and mobile */
@media (max-width: 900px) {
    .gtr-catalog .gtr-modal-container {
        display: flex;
        flex-direction: column;
    }

    .gtr-catalog .gtr-modal-header {
        order: 1;
        padding: 24px 20px 16px;
    }

    .gtr-catalog .gtr-modal-gallery {
        order: 2;
        padding: 16px;
        border-right: 0;
        border-bottom: 1px solid #27272a;
    }

    .gtr-catalog .gtr-modal-information {
        order: 3;
        padding: 24px 20px;
    }

    .gtr-catalog .gtr-modal-main-image img {
        max-height: 70vh;
    }
}

@media (max-width: 600px) {
    .gtr-catalog .gtr-modal:not([hidden]) {
        padding: 0;
    }

    .gtr-catalog .gtr-modal-container {
        border-radius: 0;
        border: 0;
        min-height: 100%;
    }

    .gtr-catalog .gtr-modal-actions {
        grid-template-columns: 1fr;
    }

    .gtr-catalog .gtr-modal-title {
        font-size: 30px;
    }

    .gtr-catalog .gtr-modal-gallery {
        padding: 12px;
    }
}

.gtr-catalog button.gtr-vehicle-image {
    display: block;
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
}

.gtr-catalog button.gtr-vehicle-image:focus-visible {
    outline: 3px solid #e0a800;
    outline-offset: 3px;
}

/* GTR Lightbox - Overlay global */

#gtr-image-lightbox:not([hidden]) {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483647 !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    width: 100vw;
    height: 100dvh;

    background: rgba(0, 0, 0, 0.97);
}

#gtr-image-lightbox[hidden] {
    display: none !important;
}

/* GTR Lightbox - Controles siempre visibles */

#gtr-image-lightbox {
    isolation: isolate;
}

/* Barra superior */
#gtr-image-lightbox .gtr-lightbox-toolbar {
    position: fixed !important;
    top: 16px;
    right: 16px;
    z-index: 100 !important;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 8px;
    border-radius: 12px;

    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(10px);
}

/* Fotografía debajo de los controles */
#gtr-image-lightbox .gtr-lightbox-stage {
    position: relative;
    z-index: 1;
}

/* Flechas siempre por encima */
#gtr-image-lightbox .gtr-lightbox-prev,
#gtr-image-lightbox .gtr-lightbox-next {
    position: fixed !important;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100 !important;
}

#gtr-image-lightbox .gtr-lightbox-prev {
    left: 16px;
}

#gtr-image-lightbox .gtr-lightbox-next {
    right: 16px;
}

/* Adaptación para celulares */
@media (max-width: 640px) {
    #gtr-image-lightbox .gtr-lightbox-toolbar {
        top: 10px;
        right: 10px;
        left: 10px;
        justify-content: flex-end;
        gap: 6px;
    }

    #gtr-image-lightbox .gtr-lightbox-prev {
        left: 8px;
    }

    #gtr-image-lightbox .gtr-lightbox-next {
        right: 8px;
    }
}

/* Gestos táctiles del lightbox */
#gtr-image-lightbox .gtr-lightbox-image {
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

@media (max-width: 640px) {

    /* Ocultar zoom en celulares */
    #gtr-image-lightbox .gtr-lightbox-zoom-in,
    #gtr-image-lightbox .gtr-lightbox-zoom-out,
    #gtr-image-lightbox .gtr-lightbox-zoom-reset {
        display: none !important;
    }

    /* Ocultar flechas: navegación por gestos */
    #gtr-image-lightbox .gtr-lightbox-prev,
    #gtr-image-lightbox .gtr-lightbox-next {
        display: none !important;
    }

    /* Conservar la X arriba a la derecha */
    #gtr-image-lightbox .gtr-lightbox-toolbar {
        top: 12px !important;
        right: 12px !important;
        left: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: auto !important;
    }
}

/* Contenedor de tamaño fijo */
.gtr-modal-main-image {
    position: relative;
    width: 100%;
    height: 440px;
    overflow: hidden;
    background: #000;
}

/* Imagen que cubre todo el espacio */
.gtr-modal-main-image > img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover !important;
    object-position: center center;
}

/* Respetar imágenes ocultas */
.gtr-modal-main-image > img[hidden] {
    display: none;
}

/* Tablets */
@media (max-width: 1024px) {
    .gtr-modal-main-image {
        height: 360px;
    }
}

/* Celulares */
@media (max-width: 767px) {
    .gtr-modal-main-image {
        height: 280px;
    }
}

/* View All Vehicles */

.gtr-catalog-footer {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

.gtr-catalog-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 15px 28px;
    border-radius: 8px;
    background: #e5a900;
    color: #111111;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.gtr-catalog-view-all:hover {
    background: #f5bd18;
    color: #111111;
    transform: translateY(-2px);
}

.gtr-catalog-view-all span {
    font-size: 20px;
    line-height: 1;
}

.gtr-catalog-view-all:focus-visible {
    outline: 3px solid #111111;
    outline-offset: 3px;
}


/* ========================================
   GTR VEHICLE GALLERY
======================================== */

.gtr-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

.gtr-gallery-item {
    overflow: hidden;
    border-radius: 10px;
    background: #f3f3f3;
    aspect-ratio: 4 / 3;
}

.gtr-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gtr-gallery-item:hover img {
    transform: scale(1.05);
}

/* Tablet */
@media (max-width: 1024px) {
    .gtr-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 767px) {
    .gtr-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .gtr-gallery-item {
        border-radius: 6px;
    }
}


/* ========================================
   GTR GALLERY LIGHTBOX
======================================== */

.gtr-gallery-item img {
    cursor: zoom-in;
}

.gtr-gallery-lightbox[hidden] {
    display: none !important;
}

.gtr-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.94);
}

.gtr-gallery-lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.gtr-gallery-lightbox-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 6px;
}

.gtr-gallery-close,
.gtr-gallery-prev,
.gtr-gallery-next {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.gtr-gallery-close {
    top: 0;
    right: 0;
}

.gtr-gallery-prev {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.gtr-gallery-next {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.gtr-gallery-close:hover,
.gtr-gallery-prev:hover,
.gtr-gallery-next:hover {
    background: #e0a500;
    color: #111;
}

.gtr-gallery-counter {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    letter-spacing: 1px;
}

.gtr-gallery-prev[hidden],
.gtr-gallery-next[hidden] {
    display: none !important;
}

@media (max-width: 767px) {
    .gtr-gallery-lightbox {
        padding: 12px;
    }

    .gtr-gallery-lightbox-image {
        max-width: 100%;
        max-height: 78vh;
    }

    .gtr-gallery-close,
    .gtr-gallery-prev,
    .gtr-gallery-next {
        width: 38px;
        height: 38px;
        font-size: 28px;
    }
}

/* ========================================
   GTR GALLERY - VEHICLE GROUP TITLES
======================================== */

.gtr-gallery-group h2 {
    color: #171717;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 20px;
}

@media (max-width: 767px) {
    .gtr-gallery-group h2 {
        font-size: 22px;
        margin-bottom: 16px;
    }
}

/* ========================================
   GTR GALLERY - VEHICLE GROUP SPACING
======================================== */

.gtr-gallery-group {
    margin-bottom: 48px;
}

.gtr-gallery-group h2 {
    color: #171717;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 18px;
}

@media (max-width: 767px) {
    .gtr-gallery-group {
        margin-bottom: 32px;
    }

    .gtr-gallery-group h2 {
        font-size: 22px;
        margin-bottom: 14px;
    }
}