/* Estilos para el Panel de Detalle (Polyfill para Tailwind classes) */

.geofotos-detail-panel {
    position: absolute;
    top: 12px;
    bottom: 12rem;
    right: -380px;
    width: 360px;
    max-height: 760px;
    padding: 0 !important;
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    z-index: 99999;
    transition: right 0.3s ease-in-out;
}

.geofotos-detail-panel.geofotos-panel-open {
    right: 12px;
}

.geofotos-detail-panel.hidden {
    /*display: none !important;*/
}

/* Scrollbar personalizado */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #1e293b;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Utilidades básicas si Tailwind no está presente */
.text-white {
    color: #fff;
}

.text-\[\#94a3b8\] {
    color: #94a3b8;
}

.bg-\[\#0f172a\] {
    background-color: #0d1529db;
    backdrop-filter: blur(6px);
}

.bg-\[\#1e293b\] {
    background-color: #1e293b;
}

.border-\[\#334155\] {
    border-color: #334155;
}

.text-\[\#fbbf24\] {
    color: #fbbf24;
}

/* Fixes visuales solicitados */
.bg-cover {
    background-size: cover;
}

.bg-center {
    background-position: center;
}

.text-xl {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-xs {
    font-size: 0.85rem;
    line-height: 1.1rem;
}

.text-xxs {
    font-size: 0.65rem;
    line-height: 0.9rem;
}

#geofotos-detail-theme-dot {
    width: 10px;
    height: 10px;
}

#geofotos-detail-description {
    margin-bottom: 0.5rem;
    ;
}

#geofotos-detail-close {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 24px;
    height: 24px;
    padding: initial;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#geofotos-detail-close:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Contenedor de imagen cuadrado y adaptado */
#geofotos-detail-image-container {
    width: 100%;
    height: 25%;
    max-height: 200px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-color: transparent;
}

/* Utilidades Flexbox y Espaciado (Polyfill) */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-1 {
    flex: 1 1 0%;
}

.overflow-y-auto {
    overflow-y: auto;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.text-right {
    text-align: right;
}

.m-0 {
    margin: 0 !important;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-0\.5 {
    margin-bottom: 0.125rem;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.p-2 {
    padding: .5rem;
}

.p-4 {
    padding: 1rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.h-12 {
    height: 3rem;
}

.w-12 {
    width: 3rem;
}

.font-bold {
    font-weight: 700;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.leading-tight {
    line-height: 1.25;
}

.h-1-5 {
    height: 0.375rem;
}

.w-1-5 {
    width: 0.375rem;
}

.w-full {
    width: 100%;
}

.justify-around {
    justify-content: space-around;
}

.justify-end {
    justify-content: flex-end;
}

.text-decoration-none {
    text-decoration: none;
}

/* Dot del tema */
.w-1-5 {
    width: 0.375rem;
}

.h-1-5 {
    height: 0.375rem;
}

.h-12 {
    height: 3rem;
}

.border {
    border: 1px solid #334155;
}

/* Botones del panel inferior */
#geofotos-detail-center-map,
#geofotos-detail-directions,
#geofotos-detail-share {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
}

#geofotos-detail-center-map:hover,
#geofotos-detail-directions:hover,
#geofotos-detail-share:hover {
    background: #334155;
}

/* Theme Badge Styles */
.geofotos-theme-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: -moz-fit-content;
    width: fit-content;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 4px 10px;
    border-radius: 9999px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    background-color: rgba(102, 102, 102, 0.3);
    /* Color de fondo por defecto */
    /* El color del texto se establece dinámicamente a través de JS */
}

/* Lightbox is handled by assets/css/feed/lightbox.css */


/* flex-1 child needs min-height:0 so overflow-y:auto can actually scroll */
#geofotos-detail-panel > .flex-1 {
    min-height: 0;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* Responsive */
@media (max-width: 640px) {
    .geofotos-detail-panel {
        margin-left: 10px;
    }
}