/**
 * CSS for Single Playa Template
 * -------------------------------------------------------------------------- */

.playa-single-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.playa-main-content {
    flex: 1;
    min-width: 65%;
}

.playa-sidebar {
    flex-basis: 300px; /* Ancho fijo para la barra lateral */
    flex-grow: 1;
}

.playa-featured-image {
    margin-bottom: 20px;
}

.playa-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.playa-data-card {
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.playa-data-card h3 {
    margin-top: 0;
    font-size: 1.2em;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.playa-data-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.95em;
}

.playa-data-item .icon {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    fill: #555;
}

.playa-data-item strong {
    font-weight: 600;
    color: #333;
}

#playa-map {
    height: 250px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.playa-taxonomies .tax-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.playa-taxonomies .tax-list li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .playa-main-content {
        min-width: 100%;
    }

    .playa-sidebar {
        flex-basis: 100%;
    }
}

/* === START: Styles moved from style.css === */

.playa-single-entry .playa-content-wrap {
    max-width: 1200px;
    margin: 24px auto 16px;
    padding: 0 16px;
    font-family: 'Roboto', sans-serif;
    color: #222;
}

/* Breadcrumb */
.playa-breadcrumb {
    margin-bottom: 0;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
}

.playa-breadcrumb a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease;
}

.playa-breadcrumb a:hover {
    color: #F5A623;
    text-decoration: underline;
}

.playa-breadcrumb .separator {
    color: #999;
    margin: 0 0.5em;
}

/* Header */
.playa-single-entry .playa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.playa-single-entry .playa-header .entry-title {
    margin-top: 0;
    margin-bottom: 0;
}

.playa-single-entry .playa-header-actions {
    display: flex;
    gap: 20px;
}

.playa-single-entry .action-button {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #222;
    font-weight: 500;
}

.playa-single-entry .action-button svg {
    width: 20px;
    height: 20px;
}

/* Main Column & Sections */
.playa-single-entry .playa-main-column {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.playa-single-entry .playa-section {
    padding-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.playa-single-entry .playa-section:last-child {
    border-bottom: none;
}

.playa-single-entry .section-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Description */
.playa-single-entry .playa-description .entry-content {
    font-size: 1rem;
    line-height: 1.6;
}

.playa-single-entry .servicios-grid,
.playa-single-entry .actividades-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.playa-single-entry .servicio-item,
.playa-single-entry .actividad-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1rem;
}

.playa-single-entry .servicio-item svg,
.playa-single-entry .actividad-item svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
    color: #333;
    flex-shrink: 0;
}

/* Additional Details */
.playa-single-entry .details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.playa-single-entry .detail-item h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.playa-single-entry .detail-item p {
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
    margin: 0;
}

/* Map */
.playa-single-entry .playa-map-section #playa-map-container {
    border-radius: 16px;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .playa-single-entry .playa-gallery {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .playa-single-entry .playa-gallery .secondary-image {
        display: none; /* Hide secondary on mobile for simplicity */
    }

    .playa-single-entry .details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Header móvil: título arriba, botones debajo */
    .playa-single-entry .playa-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .playa-single-entry .playa-header .entry-title {
        font-size: 2rem;
        width: 100%;
        margin-bottom: 0;
    }
    
    .playa-single-entry .playa-header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .playa-single-entry .section-title {
        font-size: 1.5rem;
    }
}

/* Map & Location Section */
.playa-single-entry .playa-map-location-section .map-location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
}

.playa-single-entry .playa-map-location-section #playa-map-container {
    border-radius: 16px;
    overflow: hidden;
}

.playa-single-entry .location-details-card {
    background-color: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.playa-single-entry .location-detail-item strong {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.playa-single-entry .location-detail-item span,
.playa-single-entry .location-detail-item p {
    margin: 0;
    line-height: 1.5;
    color: #555;
}

.playa-single-entry .google-maps-link {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.2s;
}

.playa-single-entry .google-maps-link:hover {
    background-color: #333;
}

/* Features (Services, etc) */
.playa-single-entry .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.playa-single-entry .feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.playa-single-entry .feature-item svg {
    width: 24px;
    height: 24px;
    max-width: 24px;
    stroke-width: 1.5;
    color: #333;
    flex-shrink: 0;
}


/* Recommendations */
.playa-single-entry .recommendations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.playa-single-entry .recommendation-item h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 12px;
}
.playa-single-entry .recommendation-item p,
.playa-single-entry .recommendation-item ul {
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
    margin: 0;
    padding-left: 18px; /* For ul */
}
.playa-single-entry .recommendation-item ul li {
    margin-bottom: 8px;
}


/* Responsive Adjustments for new sections */
@media (max-width: 900px) {
    .playa-single-entry .map-location-grid,
    .playa-single-entry .recommendations-grid {
        grid-template-columns: 1fr;
    }

    .playa-single-entry .map-location-grid .location-details-card {
        order: -1; /* Move card above map on mobile */
    }
}

/* Location Breadcrumb */
.playa-location-subtitle,
.location-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.playa-location-subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    text-decoration: underline;
}

.location-breadcrumb {
    color: #555;
}

.location-breadcrumb span,
.playa-location-subtitle span {
    text-decoration: underline;
    cursor: pointer;
}

.breadcrumb-separator {
    color: #666;
    font-weight: bold;
    text-decoration: none !important;
    cursor: default !important;
}

.playa-single-entry .location-detail-item .location-breadcrumb {
    margin-top: 4px;
}

.playa-single-entry .location-detail-item .location-breadcrumb span {
     text-decoration: none;
     cursor: default;
}

/* Botón flotante para galerías pequeñas */
.gallery-overlay-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 5;
}

.gallery-overlay-btn .show-all-photos-btn {
    position: static;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/*--------------------------------------------------------------
# Layout de 2 columnas con sidebar sticky
--------------------------------------------------------------*/


/* Layout de 2 columnas con sidebar sticky */
.playa-content-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    margin-top: 32px;
    align-items: start;
}

.playa-main-column {
    min-width: 0; /* Permite que el contenido se contraiga */
}

/* Sidebar sticky */
.playa-sidebar {
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}

.playa-sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Cards del sidebar */
.sidebar-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

.sidebar-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* Información del host/lugar */
.sidebar-host-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.host-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.host-details h3 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
}

.host-details p {
    margin: 0;
    color: #717171;
    font-size: 0.9rem;
}

/* Características destacadas */
.playa-highlights {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.highlight-item svg {
    width: 20px;
    height: 20px;
    color: #0073aa;
    flex-shrink: 0;
    margin-top: 2px;
}

.highlight-item strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 2px;
}

.highlight-item span {
    display: block;
    font-size: 0.85rem;
    color: #717171;
    line-height: 1.3;
}

/* Botones de acción */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-primary {
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.btn-primary:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,115,170,0.3);
    color: white;
}

.btn-secondary {
    background: white;
    color: #222;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: #f7f7f7;
    border-color: #bbb;
    transform: translateY(-1px);
}

/* Consejos útiles */
.sidebar-tips h4 {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.tip-item:last-child {
    margin-bottom: 0;
}

.tip-item svg {
    width: 16px;
    height: 16px;
    color: #0073aa;
    flex-shrink: 0;
    margin-top: 4px;
}

.tip-item strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
}

.tip-item p {
    margin: 0;
    font-size: 0.85rem;
    color: #717171;
    line-height: 1.4;
}

/* Botón de reporte */
.btn-report {
    background: none;
    border: none;
    color: #717171;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.btn-report:hover {
    color: #222;
}

.btn-report svg {
    width: 16px;
    height: 16px;
}

/* Responsive para el sidebar */
@media (max-width: 1200px) {
    .playa-content-layout {
        grid-template-columns: 1fr 320px;
        gap: 60px;
    }
}

@media (max-width: 1024px) {
    .playa-content-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .playa-sidebar {
        position: static;
        max-height: none;
        order: -1; /* Sidebar arriba en móvil */
    }
    
    .playa-sidebar-content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .sidebar-card {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .playa-content-layout {
        margin-top: 32px;
    }
    
    .playa-sidebar-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .sidebar-card {
        padding: 16px;
    }
    
    .sidebar-host-info {
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .host-avatar {
        width: 48px;
        height: 48px;
    }
}

/* Card de ubicación minimalista y compacta */
.playa-location-card {
    margin-top: 32px;
}

.location-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

/* Información de ubicación */
.location-info {
    padding: 20px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.location-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.location-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.location-icon {
    width: 18px;
    height: 18px;
    color: #666;
    flex-shrink: 0;
    margin-top: 1px;
}

.location-icon svg {
    width: 18px;
    height: 18px;
}

.location-content h4 {
    margin: 0 0 3px 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}

.location-content p {
    margin: 0 0 6px 0;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.3;
}

/* Botón de Google Maps */
.maps-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.maps-button:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

.maps-button svg {
    width: 14px;
    height: 14px;
}

/* Mapa simple */
.location-map {
    background: #f5f5f5;
}

#playa-map-container {
    border: none;
    border-radius: 0;
}

/* Responsive minimalista y compacto */
@media (max-width: 768px) {
    .playa-content-layout {
        gap: 24px;
        margin-top: 24px;
    }
    
    .location-info {
        padding: 16px;
    }
    
    .location-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .playa-single-entry .playa-main-column {
        gap: 24px;
    }
    
    .playa-single-entry .section-title {
        font-size: 1.4rem;
        margin-bottom: 16px;
    }
    
    #playa-map-container {
        height: 280px !important;
    }
}

@media (max-width: 480px) {
    .location-info {
        padding: 12px;
    }
    
    .location-info-grid {
        gap: 10px;
    }
    
    #playa-map-container {
        height: 240px !important;
    }
}




/* Navegación entre posts - nueva versión elegante */
.playa-post-navigation {
    margin-top: 60px;
    padding: 0;
    background: none;
    border: none;
}

.nav-posts-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 40px;
    max-width: 100%;
}

.nav-post {
    flex: 1;
    max-width: 48%;
}

.nav-post-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 16px;
    gap: 16px;
    height: 100%;
}

.nav-post-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Post anterior - imagen a la izquierda */
.nav-post-prev .nav-post-link {
    flex-direction: row;
}

/* Post siguiente - imagen a la derecha */
.nav-post-next .nav-post-link {
    flex-direction: row-reverse;
}

.nav-post-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-post-image img,
.nav-post-default-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
}

.nav-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0; /* Para permitir text overflow */
}

.nav-direction {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Alineación específica para cada dirección */
.nav-post-prev .nav-direction {
    justify-content: flex-start;
}

.nav-post-next .nav-direction {
    justify-content: flex-end;
}

.nav-post-next .nav-post-content {
    text-align: right;
}

.nav-title {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Efectos hover en los iconos */
.nav-post-link:hover .nav-direction svg {
    transform: translateX(3px);
}

.nav-post-prev .nav-post-link:hover .nav-direction svg {
    transform: translateX(-3px);
}

/* Cuando solo hay un post (anterior o siguiente) */
.nav-posts-container:has(.nav-post:only-child) .nav-post {
    max-width: 60%;
}

.nav-posts-container:has(.nav-post-prev:only-child) {
    justify-content: flex-start;
}

.nav-posts-container:has(.nav-post-next:only-child) {
    justify-content: flex-end;
}

/* Sección de comentarios */
.playa-comments-section {
    margin-top: 32px;
    padding: 24px;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
}

.comments-area {
    max-width: none;
}

.comments-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    margin-bottom: 20px;
    padding: 16px;
    background: #fafafa;
    border-radius: 6px;
    border-left: 3px solid #0073aa;
}

.comment-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    color: #333;
}

.comment-content {
    font-size: 0.9rem;
    line-height: 1.5;
}

.reply {
    margin-top: 8px;
}

.comment-reply-link {
    font-size: 0.8rem;
    color: #0073aa;
    text-decoration: none;
    padding: 4px 8px;
    border: 1px solid #0073aa;
    border-radius: 3px;
}

.comment-reply-link:hover {
    background: #0073aa;
    color: white;
}

/* Responsive para navegación y comentarios */
@media (max-width: 768px) {
    .playa-post-navigation {
        margin-top: 40px;
    }
    
    .nav-posts-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-post {
        max-width: 100%;
    }
    
    .nav-post-link {
        padding: 12px;
        gap: 12px;
    }
    
    .nav-post-image {
        width: 60px;
        height: 60px;
    }
    
    .nav-direction {
        font-size: 0.75rem;
    }
    
    .nav-title {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    /* En móvil, todos los posts se alinean a la izquierda */
    .nav-post-next .nav-post-content {
        text-align: left;
    }
    
    .nav-post-next .nav-direction {
        justify-content: flex-start;
    }
    
    /* Cuando solo hay un post en móvil */
    .nav-posts-container:has(.nav-post:only-child) .nav-post {
        max-width: 100%;
    }
    
    .nav-posts-container:has(.nav-post-prev:only-child),
    .nav-posts-container:has(.nav-post-next:only-child) {
        justify-content: stretch;
    }
    
    .playa-comments-section {
        margin-top: 24px;
        padding: 16px;
    }
    
    .comments-title {
        font-size: 1.2rem;
        margin-bottom: 16px;
    }
    
    .comment {
        padding: 12px;
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .nav-posts-container {
        gap: 16px;
    }
    
    .nav-post-link {
        padding: 10px;
        gap: 10px;
        border-radius: 8px;
    }
    
    .nav-post-image {
        width: 50px;
        height: 50px;
        border-radius: 6px;
    }
    
    .nav-direction {
        font-size: 0.7rem;
        gap: 4px;
    }
    
    .nav-direction svg {
        width: 12px;
        height: 12px;
    }
    
    .nav-title {
        font-size: 0.85rem;
    }
}



@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
