/* ==========================================================================
   Catálogo de inmuebles (Nocnok)
   Reutiliza la paleta y las clases de styles.css: azul #002855, lima #E3F938,
   botón info #062A4B, tipografía Verdana.
   ========================================================================== */

#inmuebles {
    background-color: #002855;
    padding: 60px 0;
}

#inmuebles .inm-heading {
    color: #fff;
    font-size: 2.25rem;
    font-weight: 500;
    text-align: left;
    margin-bottom: 0;
}

#inmuebles .inm-heading span {
    color: #E3F938;
    font-weight: 700;
}

#inmuebles .inm-subheading {
    color: #cfd8e3;
    font-size: 15px;
    margin-bottom: 0;
}

/* ---------- Barra de filtros ---------- */

.inm-filtros {
    background: #f5f5f5;
    padding: 24px;
    border-radius: 20px;
    margin-bottom: 32px;
}

.inm-filtros label {
    color: #002855;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.inm-filtros .form-select,
.inm-filtros .form-control {
    font-size: 14px;
    border-radius: 10px;
    border-color: #d7dde5;
}

.inm-filtros .form-select:focus,
.inm-filtros .form-control:focus {
    border-color: #002855;
    box-shadow: 0 0 0 .2rem rgba(0, 40, 85, .15);
}

.inm-filtros .btn {
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
}

.inm-orden {
    color: #002855;
    font-size: 13px;
    font-weight: 700;
}

/* Sugerencias de ubicación */
.inm-autocomplete {
    position: relative;
}

.inm-sugerencias {
    position: absolute;
    z-index: 20;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #d7dde5;
    border-radius: 10px;
    margin-top: 4px;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
    list-style: none;
    padding: 4px 0;
}

.inm-sugerencias li {
    padding: 8px 12px;
    font-size: 13px;
    color: #002855;
    cursor: pointer;
}

.inm-sugerencias li:hover,
.inm-sugerencias li.activo {
    background: #E3F938;
}

/* Chips de filtros activos */
.inm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.inm-chip {
    background: #E3F938;
    color: #002855;
    border: 0;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
}

.inm-chip::after {
    content: " \00d7";
    font-weight: 700;
}

/* ---------- Mosaico ---------- */

.inm-mosaico {
    --bs-gutter-y: 1.5rem;
}

.inm-card {
    height: 100%;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease;
}

.inm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
}

.inm-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #0b3a68;
    overflow: hidden;
}

.inm-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.inm-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(6, 42, 75, .92);
    color: #E3F938;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 5px;
}

.inm-tag-op {
    left: auto;
    right: 10px;
    background: #E3F938;
    color: #002855;
}

.inm-card .card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.inm-card .card-title {
    color: #002855;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    margin-bottom: 2px;
    line-height: 1.3;
}

.inm-card .inm-zona {
    color: #5a6b7d;
    font-size: 13px;
    text-align: left;
    margin-bottom: 10px;
}

.inm-precio {
    color: #002855;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 2px;
}

.inm-precio small {
    font-size: 12px;
    font-weight: 400;
    color: #5a6b7d;
}

.inm-card .card-text {
    text-align: left;
    font-size: 13px;
    color: #5a6b7d;
    margin-bottom: 12px;
}

.inm-features {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    text-align: center;
    border-top: 1px solid #e6eaef;
    padding-top: 12px;
    margin-top: auto;
}

.inm-features .feature-item span {
    font-size: 12px;
    color: #002855;
}

.inm-features .divider {
    height: 44px;
    margin: 0 8px;
}

/* La foto es un botón: hay que quitarle la apariencia de botón. */
button.inm-card-media {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    cursor: pointer;
    text-align: left;
}

button.inm-card-media:focus-visible {
    outline: 3px solid #E3F938;
    outline-offset: -3px;
}

.inm-ver-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 40, 85, .55);
    color: #E3F938;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity .18s ease;
}

.inm-card:hover .inm-ver-overlay,
button.inm-card-media:focus-visible .inm-ver-overlay {
    opacity: 1;
}

.inm-acciones {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.inm-card .btn-ver,
.inm-card .btn-interes {
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
}

.inm-card .btn-interes {
    background-color: #062A4B;
    border-color: #062A4B;
    color: #E3F938;
    flex: 1 1 auto;
}

.inm-card .btn-interes:hover {
    background-color: #E3F938;
    border-color: #E3F938;
    color: #002855;
}

.inm-card .btn-ver {
    background-color: transparent;
    border: 2px solid #062A4B;
    color: #062A4B;
    flex: 0 0 auto;
    padding-left: 18px;
    padding-right: 18px;
}

.inm-card .btn-ver:hover {
    background-color: #062A4B;
    color: #E3F938;
}

/* ---------- Modal de detalle ---------- */

#modalDetalle .modal-content {
    border-radius: 20px;
    border: 0;
}

#modalDetalle .modal-header {
    background: #002855;
    color: #fff;
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
}

#modalDetalle .modal-title {
    font-size: 18px;
    font-weight: 700;
}

#modalDetalle .modal-footer {
    border-top: 1px solid #e6e6e6;
    justify-content: space-between;
}

#modalDetalle .det-clave {
    color: #6b7a8d;
    font-size: 13px;
}

#modalDetalle .btn-enviar {
    background-color: #062A4B;
    border-color: #062A4B;
    color: #E3F938;
    font-weight: 700;
    border-radius: 10px;
}

#modalDetalle .btn-enviar:hover {
    background-color: #E3F938;
    border-color: #E3F938;
    color: #002855;
}

.det-galeria-principal {
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: #0b3a68;
}

.det-galeria-principal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.det-galeria-minis {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    align-items: center;
    overflow-x: auto;
    padding-bottom: 4px;
}

.det-mini {
    flex: 0 0 84px;
    height: 62px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: #0b3a68;
    cursor: pointer;
}

.det-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.det-mini.activa {
    border-color: #E3F938;
}

.det-mini-oculta {
    display: none;
}

.det-mas-fotos {
    flex: 0 0 auto;
    color: #002855;
    background: #E3F938;
    border: 0;
    border-radius: 8px;
    height: 62px;
    font-size: 13px;
    font-weight: 700;
    padding: 0 12px;
    cursor: pointer;
}

.det-mas-fotos:hover,
.det-mas-fotos:focus-visible {
    background: #d3e92a;
}

.det-encabezado {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
}

.det-titulo {
    color: #002855;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.det-ubicacion {
    color: #6b7a8d;
    font-size: 14px;
    margin-bottom: 0;
}

/* Un inmueble puede estar en Venta y en Renta: caben los dos precios. */
.det-precios {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.det-precios .det-precio + .det-precio {
    font-size: 19px;
    opacity: .8;
}

.det-precio {
    color: #002855;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 0;
    text-align: right;
}

.det-precio small {
    font-size: 14px;
    font-weight: 400;
}

.det-operacion {
    display: block;
    background: #E3F938;
    color: #002855;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    padding: 3px 12px;
    margin-top: 6px;
}

#modalDetalle .inm-features {
    margin-top: 16px;
}

.det-bloque {
    margin-top: 24px;
}

.det-bloque h5 {
    color: #002855;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.det-descripcion p {
    color: #3d4a5c;
    font-size: 14px;
    margin-bottom: 8px;
}

.det-generales {
    margin-bottom: 0;
}

.det-generales > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #ececec;
    padding: 7px 0;
}

.det-generales dt {
    color: #6b7a8d;
    font-size: 14px;
    font-weight: 400;
}

.det-generales dd {
    color: #002855;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 0;
    text-align: right;
}

.det-caracteristicas {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.det-grupo h6 {
    color: #6b7a8d;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.det-grupo ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.det-grupo li {
    color: #3d4a5c;
    font-size: 14px;
    padding-left: 20px;
    position: relative;
    margin-bottom: 4px;
}

.det-grupo li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #062A4B;
    font-weight: 700;
}

@media (max-width: 575.98px) {
    .det-encabezado { flex-direction: column; }
    .det-precio { text-align: left; }
    .det-operacion { display: inline-block; }
}

/* ---------- Estados ---------- */

.inm-estado {
    color: #fff;
    text-align: center;
    padding: 48px 16px;
}

.inm-estado .btn {
    margin-top: 16px;
}

.inm-skeleton {
    border-radius: 14px;
    background: linear-gradient(90deg, #0b3a68 25%, #14477d 37%, #0b3a68 63%);
    background-size: 400% 100%;
    animation: inm-shimmer 1.3s ease-in-out infinite;
    height: 330px;
}

@keyframes inm-shimmer {
    0%   { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

.inm-paginacion {
    margin-top: 32px;
}

.inm-paginacion .btn {
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
}

.inm-contador {
    color: #cfd8e3;
    font-size: 13px;
}

/* ---------- Modal de contacto ---------- */

#modalInteres .modal-content {
    border-radius: 20px;
    border: 0;
}

#modalInteres .modal-header {
    background: #002855;
    color: #fff;
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
}

#modalInteres .modal-title {
    font-size: 18px;
    font-weight: 700;
}

#modalInteres .inm-modal-prop {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 13px;
    color: #002855;
}

#modalInteres label {
    font-size: 13px;
    font-weight: 700;
    color: #002855;
}

#modalInteres .form-control,
#modalInteres .form-select {
    border-radius: 10px;
}

#modalInteres .btn-enviar {
    background-color: #002855;
    border-color: #002855;
    color: #fff;
    font-weight: 700;
    border-radius: 10px;
}

#modalInteres .btn-enviar:hover {
    background-color: #E3F938;
    border-color: #E3F938;
    color: #002855;
}

/* ---------- Responsive ---------- */

@media (max-width: 991.98px) {
    #inmuebles .inm-heading { font-size: 1.75rem; text-align: center; }
    #inmuebles .inm-subheading { text-align: center; }
}

@media (max-width: 575.98px) {
    #inmuebles { padding: 40px 0; }
    .inm-filtros { padding: 18px; border-radius: 16px; }
    .inm-features .divider { margin: 0 4px; }
}