/* Related Posts Modern */

.rpm-related-posts {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 2px solid #eee;
}

.rpm-related-posts h3 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
  color: #222;
}

.rpm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.rpm-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,.07);
  transition: transform .25s ease, box-shadow .25s ease;
}

.rpm-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 35px rgba(0,0,0,.12);
}

.rpm-thumb img {
  width: 100%;
  height: clamp(150px, 40vw, 200px);
  object-fit: cover;
  object-position: center 35%;
}


.rpm-info {
  padding: 1rem;
}

.rpm-info h4 {
  font-size: 1.05rem;
  margin: .4rem 0;
  color: #111;
}

.rpm-cat {
  font-size: .8rem;
  font-weight: bold;
  color: #fff;
  background: #ef476f;
  padding: .35rem .7rem;
  border-radius: 20px;
}

/* CONTENEDOR DE LA IMAGEN */
.rpm-thumb {
  width: 100%;
  height: 150px;              /* 👈 AJUSTA AQUÍ LA ALTURA */
  overflow: hidden;
  background: #eee;
}

/* IMAGEN */
.rpm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* 🔥 CLAVE */
  display: block;
}



/* Quitar subrayado y heredar color */
.rpm-related-posts a {
  text-decoration: none;
  color: inherit;
}

.rpm-related-posts a:hover {
  text-decoration: none;
}

/* Estilo base */
.rpm-cat {
  font-size: .75rem;
  font-weight: 700;
  padding: .35rem .7rem;
  border-radius: 20px;
  color: #fff;
  display: inline-block;
  margin-bottom: .5rem;
}



/* Forzar quitar subrayado en TODA la card */
.rpm-related-posts,
.rpm-related-posts * {
  text-decoration: none !important;
}

.rpm-related-posts a,
.rpm-related-posts a:hover,
.rpm-related-posts a:visited {
  text-decoration: none !important;
  color: inherit;
}

/* TÍTULO EN NEGRITA */
.rpm-info h4 {
  font-weight: 700;        /* Negrita */
  font-size: 1.0rem;      /* Puedes ajustar si quieres más grande */
  margin: 0.3rem 0;
  color: #111;
}

/* EXCERPT PEQUEÑO */
.rpm-excerpt {
  font-size: 0.75rem;      /* Mucho más pequeño */
  line-height: 1.3;        /* Mejor lectura */
  color: #555;             /* Gris suave */
  margin-top: 0.15rem;
  margin-bottom: 0.20rem;
}



.rpm-card {
  position: relative;
  overflow: hidden;
}

.rpm-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 15px;
  height: 100%;
  background: #ccc; /* color por defecto */
}

.rpm-related-posts .rpm-date {
    display: none;
}

/* boton mas historias */


.rpm-load-more-wrapper {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem 0;
}

.rpm-load-more-btn {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.rpm-load-more-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.rpm-load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.rpm-btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}



/* ========== HISTORIA / PATRIMONIO ========== */

.rpm-cat-alhambra-y-generalife { background:#7b1e1e; }
.rpm-card-cat-alhambra-y-generalife::before { background:#7b1e1e; }

.rpm-cat-monumentos-historicos,
.rpm-cat-monumentos-historicos-de-granada-ciudad,
.rpm-cat-monumentos-historicos-de-la-provincia { background:#8b5e3c; }

.rpm-card-cat-monumentos-historicos::before,
.rpm-card-cat-monumentos-historicos-de-granada-ciudad::before,
.rpm-card-cat-monumentos-historicos-de-la-provincia::before { background:#8b5e3c; }

.rpm-cat-museos { background:#6d597a; }
.rpm-card-cat-museos::before { background:#6d597a; }

.rpm-cat-torres-y-atalayas { background:#5c4033; }
.rpm-card-cat-torres-y-atalayas::before { background:#5c4033; }


/* ========== CUENTOS / LEYENDAS ========== */

.rpm-cat-cuentos,
.rpm-cat-cuentos-de-canarias,
.rpm-cat-cuentos-de-granada { background:#3a0ca3; }

.rpm-card-cat-cuentos::before,
.rpm-card-cat-cuentos-de-canarias::before,
.rpm-card-cat-cuentos-de-granada::before { background:#3a0ca3; }

.rpm-cat-cuentos-y-leyendas,
.rpm-cat-concurso-cuentos-y-leyendas,
.rpm-cat-cuentos-y-leyendas-de-europa { background:#560bad; }

.rpm-card-cat-cuentos-y-leyendas::before,
.rpm-card-cat-concurso-cuentos-y-leyendas::before,
.rpm-card-cat-cuentos-y-leyendas-de-europa::before { background:#560bad; }

.rpm-cat-leyendas-de-canarias,
.rpm-cat-leyendas-de-castilla-la-mancha,
.rpm-cat-leyendas-de-castilla-leon,
.rpm-cat-leyendas-de-extremadura,
.rpm-cat-leyendas-de-granada,
.rpm-cat-leyendas-de-hispanoamerica,
.rpm-cat-leyendas-de-madrid,
.rpm-cat-leyendas-de-malaga,
.rpm-cat-leyendas-de-sevilla,
.rpm-cat-leyendas-gallegas { background:#7209b7; }

.rpm-card-cat-leyendas-de-canarias::before,
.rpm-card-cat-leyendas-de-castilla-la-mancha::before,
.rpm-card-cat-leyendas-de-castilla-leon::before,
.rpm-card-cat-leyendas-de-extremadura::before,
.rpm-card-cat-leyendas-de-granada::before,
.rpm-card-cat-leyendas-de-hispanoamerica::before,
.rpm-card-cat-leyendas-de-madrid::before,
.rpm-card-cat-leyendas-de-malaga::before,
.rpm-card-cat-leyendas-de-sevilla::before,
.rpm-card-cat-leyendas-gallegas::before { background:#7209b7; }


/* ========== NATURALEZA ========== */

.rpm-cat-espacios-naturales,
.rpm-cat-altiplano-granadino { background:#2d6a4f; }

.rpm-card-cat-espacios-naturales::before,
.rpm-card-cat-altiplano-granadino::before { background:#2d6a4f; }

.rpm-cat-playas-de-granada { background:#0077b6; }
.rpm-card-cat-playas-de-granada::before { background:#0077b6; }


/* ========== GRANADA CIUDAD ========== */

.rpm-cat-miradores { background:#ff7b00; }
.rpm-card-cat-miradores::before { background:#ff7b00; }

.rpm-cat-lugares-imprescindibles { background:#e63946; }
.rpm-card-cat-lugares-imprescindibles::before { background:#e63946; }

.rpm-cat-lugares-pintorescos { background:#f4a261; }
.rpm-card-cat-lugares-pintorescos::before { background:#f4a261; }

.rpm-cat-pasear-por-granada { background:#00b4d8; }
.rpm-card-cat-pasear-por-granada::before { background:#00b4d8; }

.rpm-cat-fuentes-y-pilares-de-granada { background:#219ebc; }
.rpm-card-cat-fuentes-y-pilares-de-granada::before { background:#219ebc; }


/* ========== BARRIOS ========== */

.rpm-cat-barrio-del-albaicin { background:#c1121f; }
.rpm-card-cat-barrio-del-albaicin::before { background:#c1121f; }

.rpm-cat-barrio-de-figares,
.rpm-cat-barrio-de-ronda,
.rpm-cat-barrio-pajaritos,
.rpm-cat-barrio-san-ildefonso,
.rpm-cat-barrio-centro-sagrario { background:#6c757d; }

.rpm-card-cat-barrio-de-figares::before,
.rpm-card-cat-barrio-de-ronda::before,
.rpm-card-cat-barrio-pajaritos::before,
.rpm-card-cat-barrio-san-ildefonso::before,
.rpm-card-cat-barrio-centro-sagrario::before { background:#6c757d; }

.rpm-cat-barrio-san-matias-realejo { background:#9d0208; }
.rpm-card-cat-barrio-san-matias-realejo::before { background:#9d0208; }

.rpm-cat-barrio-del-sacromonte { background:#8338ec; }
.rpm-card-cat-barrio-del-sacromonte::before { background:#8338ec; }

.rpm-cat-barrio-zaidin-vergeles { background:#2a9d8f; }
.rpm-card-cat-barrio-zaidin-vergeles::before { background:#2a9d8f; }

.rpm-cat-que-ver-en-la-chana { background:#adb5bd; }
.rpm-card-cat-que-ver-en-la-chana::before { background:#adb5bd; }


/* ========== PROVINCIA / COMARCAS ========== */

.rpm-cat-granada,
.rpm-cat-granada-capital { background:#d62828; }

.rpm-card-cat-granada::before,
.rpm-card-cat-granada-capital::before { background:#d62828; }

.rpm-cat-alpujarra-granadina { background:#588157; }
.rpm-card-cat-alpujarra-granadina::before { background:#588157; }

.rpm-cat-costa-granadina { background:#0096c7; }
.rpm-card-cat-costa-granadina::before { background:#0096c7; }

.rpm-cat-valle-de-lecrin { background:#80b918; }
.rpm-card-cat-valle-de-lecrin::before { background:#80b918; }

.rpm-cat-baza,
.rpm-cat-huescar,
.rpm-cat-guadix-el-marquesado,
.rpm-cat-montes-orientales,
.rpm-cat-granada-y-vega-de-granada,
.rpm-cat-alhama-temple,
.rpm-cat-loja { background:#6a994e; }

.rpm-card-cat-baza::before,
.rpm-card-cat-huescar::before,
.rpm-card-cat-guadix-el-marquesado::before,
.rpm-card-cat-montes-orientales::before,
.rpm-card-cat-granada-y-vega-de-granada::before,
.rpm-card-cat-alhama-temple::before,
.rpm-card-cat-loja::before { background:#6a994e; }


/* ========== OTROS ========== */

.rpm-cat-blog { background:#495057; }
.rpm-card-cat-blog::before { background:#495057; }

.rpm-cat-esculturas { background:#2a9d8f; }
.rpm-card-cat-esculturas::before { background:#2a9d8f; }

.rpm-cat-excursiones-en-coche-de-alquiler-por-granada-dfmrentacar-es { background:#1d3557; }
.rpm-card-cat-excursiones-en-coche-de-alquiler-por-granada-dfmrentacar-es::before { background:#1d3557; }

.rpm-cat-comer-en-granada { background:#e76f51; }
.rpm-card-cat-comer-en-granada::before { background:#e76f51; }