#nym-map {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    border: 1px solid #ddd;
    position: relative;
}

/* =========================
   POPUP MAPA
========================= */
.leaflet-popup-content {
    font-family: Arial, sans-serif;
    font-size: 14px;
    min-width: 220px;
    max-width: 260px;
    line-height: 1.4;
}

.leaflet-popup-content b {
    font-size: 15px;
    display: block;
    margin-bottom: 5px;
}

/* Botón dentro del popup */
.nym-popup-link {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 10px;
    background: #1e73be;
    color: #ffffff !important;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.2s ease;
}

.nym-popup-link:hover {
    background: #155a92;
}

/* BOTÓN A LA DERECHA */
.nym-popup-footer {
    display: flex;
    justify-content: flex-end;
}

/* =========================
   BRANDING GLOBAL
========================= */
#nym-branding {
    margin-top: 8px;
    display: inline-block;
    background: rgba(255,255,255,0.9);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 9px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

#nym-branding a {
    color: #1e73be;
    text-decoration: none;
    font-weight: bold;
}

/* =========================
   ADMIN INPUTS
========================= */
#nym_meta input[type="text"],
#nym_meta input[type="number"],
#nym_meta select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border-radius: 6px;
    border: 1px solid #dcdcde;
}

/* =========================
   NUEVO LAYOUT ADMIN
========================= */

.nym-admin-wrapper {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.nym-admin-left {
    flex: 1;
    min-width: 0;
}

.nym-admin-right {
    width: 260px;
    flex-shrink: 0;
}

.nym-admin-ad {
    position: sticky;
    top: 20px;
}

.nym-admin-ad img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* =========================
   FILAS ADMIN
========================= */

.nym-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.nym-col {
    flex: 1;
}

.nym-col label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

/* =========================
   URL EXTERNA
========================= */

.nym-url-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.nym-url-check {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    margin-top: 22px;
}

.nym-url-disabled {
    background: #f5f5f5 !important;
    opacity: 0.7;
    cursor: not-allowed;
}

/* =========================
   PREVIEW IMAGENES
========================= */

.nym-gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.nym-gallery-preview img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    display: block;
}

/* =========================
   ADMIN MAPA
========================= */
#nym-admin-map {
    width: 100%;
    height: 300px;
    margin-top: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* Botón admin */
#nym_meta button {
    transition: 0.2s ease;
}

#nym_meta button:hover {
    opacity: 0.9;
}

/* =========================
   CUADRICULA PUBLICACIONES
========================= */
.nym-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.nym-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.nym-card:hover {
    transform: translateY(-3px);
}

/* =========================
   IMAGEN TARJETA INMUEBLE
========================= */

.nym-card-image{
    width:100%;
    height:220px;
    overflow:hidden;
    border-radius:10px;
    margin-bottom:12px;
    background:#f5f5f5;
}

.nym-card-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .35s ease;
    display:block;
}

/* efecto zoom elegante */

.nym-card:hover .nym-card-image img{
    transform:scale(1.06);
}

.nym-title {
    font-size: 16px;
    margin: 0 0 10px 0;
}

.nym-price {
    font-size: 14px;
    font-weight: bold;
    color: #1e73be;
    margin-bottom: 10px;
}

.nym-button {
    display: inline-block;
    padding: 8px 12px;
    background: #1e73be;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
}

.nym-button:hover {
    background: #155a92;
}

/* =========================
   POPUP INMOBILIARIO
========================= */
.nym-popup-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.nym-popup-price {
    font-size: 18px;
    font-weight: bold;
    color: #1e73be;
    margin: 8px 0;
}

.nym-popup-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 8px 0;
    font-size: 13px;
    color: #555;
}

.nym-popup-meta span {
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 6px;
}

.nym-popup-phone {
    margin-top: 8px;
    font-size: 14px;
    font-weight: bold;
}

/* =========================
   PAGINACION
========================= */

.nym-pagination{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    margin-top:35px;
    flex-wrap:wrap;
}

.nym-pagination a,
.nym-pagination span{
    min-width:38px;
    height:38px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0 12px;
    border-radius:8px;
    text-decoration:none;
    font-size:14px;
    border:1px solid #ddd;
    background:#fff;
    color:#333;
    transition:.2s ease;
}

.nym-pagination a:hover{
    background:#1e73be;
    color:#fff;
    border-color:#1e73be;
}

.nym-pagination .current{
    background:#1e73be;
    color:#fff;
    border-color:#1e73be;
    font-weight:600;
}

/* =========================
   RESPONSIVE MOVIL
========================= */
@media (max-width: 900px) {

    .nym-admin-wrapper {
        flex-direction: column;
    }

    .nym-admin-right {
        width: 100%;
    }

    .nym-admin-ad {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {

    #nym-map {
        height: 420px;
    }

    .nym-grid {
        grid-template-columns: 1fr;
    }

    .nym-card {
        padding: 14px;
    }

    .nym-title {
        font-size: 15px;
    }

    .nym-popup-price {
        font-size: 16px;
    }

    .leaflet-popup-content {
        min-width: 180px;
        max-width: 220px;
    }

    .nym-row {
        flex-direction: column;
        gap: 0;
    }
}

/* =========================
   FIX CHECKBOX BACKEND
========================= */
#nym_meta input[type="checkbox"]{
    appearance: checkbox !important;
    -webkit-appearance: checkbox !important;

    width: 16px !important;
    height: 16px !important;

    min-width: 16px !important;
    max-width: 16px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: inline-block !important;
    vertical-align: middle !important;
    flex: 0 0 16px !important;
}

/* LABELS CHECKBOX */

.nym-checkbox-label,
.nym-checkbox-inline{
    display: inline-flex;
    align-items: center;
    gap: 8px;
}