.btn-voltar{
    color: #ff1e1e;
	text-decoration: none;
}

.btn-voltar:hover{
	color: #d83a1f; 
	text-decoration: none;
}

.registro-bicicleta-miniaturas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.registro-bicicleta-miniatura {
    width: 100px !important;
    height: 100px;
    object-fit: cover;
    display: block;
}

.registro-bicicleta-imagem {
    width: 100%;
}

.registro-bicicleta-imagem > img:not(.registro-bicicleta-miniatura) {
    width: 100%;
    height: 500px;
    object-fit: contain;
    display: block;
}

.registro-bicicleta-miniaturas {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    clear: both;
}

.registro-bicicleta-miniatura {
    width: 100px;
    height: 100px;
    object-fit: cover;
    display: block;
    flex: 0 0 100px;
    cursor: pointer;
}


.registro-busqueda {
    max-width: 600px;
    margin: 30px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.registro-foto {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.registro-busqueda h2 {
    text-align: center;
    color: #222;
    margin-bottom: 20px;
}


.registro-busqueda label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}


.registro-busqueda input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 15px;
    box-sizing: border-box;
}


.registro-busqueda button {
    background: #ff5151;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}


.registro-busqueda button:hover {
    background: #ff1e1e;
}


/* Resultado */

.registro-resultado {
    max-width: 600px;
    margin: 30px auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.10);
}


.registro-resultado img {
    width: 100%;
    height: auto;
    display: block;
}


.registro-conteudo {
    padding: 25px;
}


.registro-conteudo h3 {
    margin-top: 0;
    color: #333;
}


.registro-campo {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}


.registro-status {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
}

.etiqueta-status-robada {
    background: #e7f1d7;
    color: #d83a1f;
	margin: 10px 20px 0px 20px;
	text-transform: uppercase;
	display: inherit;
    width: auto;
    text-align: center;
	font-size: 1.4rem;
}


.etiqueta-status-recuperada {
    background: #e7f1d7;
    color: #999;
	margin: 10px 20px 0px 20px;
	text-transform: uppercase;
	display: inherit;
    width: auto;
    text-align: center;
	font-size: 1.4rem;
}

.etiqueta-status-perdida {
    background: #e7f1d7;
    color: #333;
	margin: 10px 20px 0px 20px;
	text-transform: uppercase;
	display: inherit;
    width: auto;
    text-align: center;
	font-size: 1.4rem;
}

.registro-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
    box-sizing: border-box;
}




.registro-card {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
    0 4px 15px rgba(0,0,0,.10);
}


.registro-card img {
    width: 100%;
    max-width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}


.registro-card-conteudo {

    padding: 20px;

}



.registro-card h3 {

    margin-top: 0;

}




.registro-detalhe {

    max-width: 800px;

    margin: 40px auto;

    background: white;

    padding: 30px;

    border-radius: 12px;

    box-shadow:
    0 4px 15px rgba(0,0,0,.10);

}


.registro-detalhe h1 {

    text-align:center;

    margin-bottom:30px;

}


.registro-detalhe-imagem img {

    width:100%;

    max-height:500px;

    object-fit:cover;

    border-radius:10px;

}


.registro-detalhe-info {

    margin-top:30px;

}


.registro-detalhe-info p {

    padding:12px 0;

    border-bottom:1px solid #eee;

}


/* Ajuste visual dos cards da listagem */

.registro-card {
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.registro-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.14);
}

.registro-card img {
    width: 100%;
    max-width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    box-sizing: border-box;
}

.registro-card-conteudo {
    padding: 20px;
}

.registro-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 20px;
}

.registro-card-conteudo p {
    margin: 8px 0;
}

.registro-card a {
    display: inline-block;
	width: 100%;
	text-align: center;
    margin-top: 15px;
    padding: 10px 18px;
    background: #d83a1f;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: opacity 0.2s ease;
}

.registro-card a:hover {
	background-color: #a71c05;
}

.registro-bicicleta {
    padding-bottom: 80px;
}

/* Ajuste para telas menores */

@media (max-width: 768px) {

    .registro-grid {
        grid-template-columns: 1fr;
        padding: 0 5px;
    }

    .registro-card {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .registro-bicicleta {
        padding-top: 100px;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Hierarquia das informações do card */

.registro-card-conteudo h3 {
    margin: 0 0 6px 0;
    font-size: 21px;
    line-height: 1.3;
}

.registro-card-conteudo > p:first-of-type {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 500;
}

.registro-card-conteudo p {
    margin: 8px 0;
    line-height: 1.4;
}

.registro-filtros {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1100px;
    margin: 30px auto;
}

.registro-filtros select,
.registro-filtros input {
    height: 44px;
    padding: 0 12px;
    border: 1px solid #d5d5d5;
    border-radius: 6px;
    box-sizing: border-box;
}

.registro-filtros input {
    flex: 1;
}

.registro-filtros button {
	background-color: #d83a1f;
}

.registro-filtros button:hover {
    background: #a71c05;
}

@media (max-width: 768px) {
    .registro-filtros {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-top: 0px;
    }

    .registro-filtros select,
    .registro-filtros input,
    .registro-filtros button {
        width: 100%;
        flex: none;
    }
}

.registro-card {
    min-width: 0;
}

.registro-card-conteudo {
    min-width: 0;
    box-sizing: border-box;
}

.registro-card h3,
.registro-card p {
    overflow-wrap: break-word;
}


/* Paginação da listagem de bicicletas */
.registro-paginacao {
    width: 100%;
    margin: 30px auto 40px;
    text-align: center;
}

.registro-paginacao-lista {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.registro-paginacao-lista li {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.registro-paginacao-lista a,
.registro-paginacao-lista .pagina-atual {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    box-sizing: border-box;
    border-radius: 6px;
}

.registro-paginacao-lista a {
    background: #d83a1f;
    color: #ffffff;
    text-decoration: none;
}

.registro-paginacao-lista a:hover {
    background: #a71c05;
}

.registro-paginacao-lista .pagina-atual {
    background: #eeeeee;
    color: #222222;
    font-weight: 700;
}


/* Galeria de fotos da bicicleta */
.registro-bicicleta-imagem .registro-foto-principal {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

.registro-fotos-miniaturas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin-top: 15px;
}

.registro-foto-miniatura {
    width: 100px;
    height: 100px;
    flex: 0 0 100px;
    overflow: hidden;
    cursor: pointer;
}

.registro-foto-miniatura-imagem {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* =========================================================
 * Lightbox da galeria de bicicletas
 * ========================================================= */

.registro-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.88);
}

.registro-lightbox.aberto {
    display: flex;
}

.registro-lightbox-conteudo {
    position: relative;
    width: min(90vw, 1100px);
    height: min(85vh, 800px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.registro-lightbox-imagem {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.registro-lightbox-fechar,
.registro-lightbox-anterior,
.registro-lightbox-proxima {
    position: fixed;
    z-index: 100000;
    border: 0;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.registro-lightbox-fechar {
    top: 20px;
    right: 25px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 34px;
}

.registro-lightbox-anterior,
.registro-lightbox-proxima {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 70px;
    border-radius: 8px;
    font-size: 48px;
}

.registro-lightbox-anterior {
    left: 20px;
}

.registro-lightbox-proxima {
    right: 20px;
}

.registro-lightbox-fechar:hover,
.registro-lightbox-anterior:hover,
.registro-lightbox-proxima:hover {
    background: rgba(0, 0, 0, 0.8);
}

body.registro-lightbox-aberto {
    overflow: hidden;
}

@media (max-width: 768px) {

    .registro-lightbox {
        padding: 15px;
    }

    .registro-lightbox-conteudo {
        width: 94vw;
        height: 78vh;
    }

    .registro-lightbox-fechar {
        top: 12px;
        right: 12px;
        width: 42px;
        height: 42px;
        font-size: 30px;
    }

    .registro-lightbox-anterior,
    .registro-lightbox-proxima {
        width: 42px;
        height: 58px;
        font-size: 38px;
    }

    .registro-lightbox-anterior {
        left: 8px;
    }

    .registro-lightbox-proxima {
        right: 8px;
    }
}

/* inicio teste etiqueta */

.registro-status .etiqueta-status-recuperada {
    background-color: #ff9900;
    color: #fff;
    position: absolute;
	margin-top: -50px;
}


/* ============================================================
   ETIQUETA DE ESTADO - PÁGINA DE DETALHES
   ============================================================ */

.registro-bicicleta-informacoes .registro-estado {
    display: inline-block;
    margin-top: 15px;
    margin-bottom: 10px;
    padding: 12px 20px 12px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    background: #e7f1d7;
    color: #333;
}


/* ROBADA */

.registro-bicicleta-informacoes .registro-estado:has(
    span
) {
    /* Mantém a estrutura atual do campo */
}






