/*
|--------------------------------------------------------------------------
| ADONDE LiveSearch Inline Detail Preview
|--------------------------------------------------------------------------
| Version: v0.8.4-preview-polish
|--------------------------------------------------------------------------
*/

.adls-detail-card-preview {
    overflow: hidden;
    margin-top: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(15, 33, 31, .14);
}

.adls-detail-image {
    width: 100%;
    max-height: 210px;
    object-fit: cover;
    display: block;
}

.adls-detail-body {
    padding: 16px;
}

.adls-detail-body h3 {
    margin: 0 0 12px;
    color: #12211f;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
}

.adls-detail-info {
    margin-bottom: 10px;
    color: #63716e;
    font-size: 14px;
    line-height: 1.45;
}

.adls-detail-info strong {
    display: block;
    margin-bottom: 2px;
    color: #12211f;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.adls-detail-info a {
    color: #0f766e;
    font-weight: 700;
    text-decoration: none;
}

.adls-detail-description {
    margin-top: 12px;
    color: #34413e;
    font-size: 14px;
    line-height: 1.55;
}

.adls-detail-description p {
    margin: 0 0 10px;
}

.adls-detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.adls-detail-primary,
.adls-detail-close {
    display: inline-flex;
    min-height: 42px;
    flex: 1;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.adls-detail-primary {
    border: 0;
    background: #0f766e;
    color: #ffffff;
}

.adls-detail-close {
    border: 1px solid rgba(15, 118, 110, .18);
    background: #ffffff;
    color: #0f766e;
    cursor: pointer;
}

/*
|--------------------------------------------------------------------------
| ADONDE LiveSearch Inline Detail Hotfix
|--------------------------------------------------------------------------
| Version: v0.8.6-preview-layout-fix
|--------------------------------------------------------------------------
*/

/* CARD GENERAL */
.adls-place-detail-card {
    position: relative;
    overflow: hidden;
    margin-top: 18px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(0,0,0,.12);
}

/* HERO IMAGE */
.adls-place-hero {
    width: 100%;
    height: 220px;
    max-height: 220px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* FALLBACK */
.adls-place-hero-empty {
    background: linear-gradient(135deg,#0f766e,#134e4a);
}

/* BODY */
.adls-place-content {
    padding: 18px;
}

/* TITLE */
.adls-place-content h2 {
    margin: 0 0 12px;
    color: #12211f;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
}

/* META */
.adls-place-meta {
    display: inline-block;
    margin-bottom: 10px;
    color: #0f766e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* INFO LINES */
.adls-place-line {
    margin-bottom: 10px;
    color: #41504d;
    font-size: 14px;
    line-height: 1.55;
}

.adls-place-line strong {
    color: #12211f;
}

/* DESCRIPTION */
.adls-place-description {
    margin-top: 18px;
    color: #33413e;
    font-size: 15px;
    line-height: 1.7;
}

.adls-place-description p {
    margin: 0 0 14px;
}

/* ACTIONS */
.adls-place-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    margin-bottom: 18px;
}

/* VISIT BUTTON */
.adls-place-full {
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    background: #0f766e;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: .2s ease;
}

.adls-place-full:hover {
    transform: translateY(-1px);
}

/* CLOSE BUTTON */
.adls-detail-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid rgba(15,118,110,.18);
    border-radius: 999px;
    background: #ffffff;
    color: #0f766e;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
}

.adls-detail-close:hover {
    background: #f5f7f7;
}

/* DIVIDER */
.adls-place-divider {
    height: 1px;
    margin-top: 8px;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0),
        rgba(0,0,0,.10),
        rgba(0,0,0,0)
    );
}

/* MOBILE FIX */
@media (max-width: 640px) {

    .adls-place-detail-card {
        border-radius: 18px;
    }

    .adls-place-hero {
        height: 190px;
        max-height: 190px;
    }

    .adls-place-actions {
        flex-direction: column;
    }

    .adls-detail-close,
    .adls-place-full {
        width: 100%;
    }
}

/* DESTACADOS */
/*
|--------------------------------------------------------------------------
| ADONDE LiveSearch Featured Section Restore
|--------------------------------------------------------------------------
| Version: v0.8.7-featured-style-restore
|--------------------------------------------------------------------------
*/

.adonde-live-search-embed .adls-featured-section {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.adonde-live-search-embed .adls-featured-section h2 {
    margin: 0;
    color: #101828;
    font-size: clamp(18px, 4vw, 24px);
    line-height: 1.15;
    letter-spacing: -0.035em;
    font-weight: 850;
}

.adonde-live-search-embed .adls-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.adonde-live-search-embed .adls-featured-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: stretch;
    overflow: hidden;
    min-height: 98px;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255,255,255,0.92);
    color: #101828;
    text-decoration: none;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.adonde-live-search-embed .adls-featured-card:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 23, 42, 0.16);
    color: #101828;
    text-decoration: none;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.13);
}

.adonde-live-search-embed .adls-featured-thumb {
    display: block;
    width: 86px;
    min-height: 98px;
    background:
        radial-gradient(circle at 25% 25%, rgba(45, 212, 191, 0.24), transparent 34%),
        linear-gradient(135deg, #eef2f7, #dfe7ee);
    background-size: cover;
    background-position: center;
}

.adonde-live-search-embed .adls-featured-body {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 13px 14px;
}

.adonde-live-search-embed .adls-featured-body small {
    color: #667085;
    font-size: 11px;
    line-height: 1;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.adonde-live-search-embed .adls-featured-body strong {
    color: #101828;
    font-size: 15px;
    line-height: 1.15;
    font-weight: 850;
    letter-spacing: -0.02em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.adonde-live-search-embed .adls-featured-body em {
    color: #667085;
    font-size: 12px;
    line-height: 1.2;
    font-style: normal;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 860px) {
    .adonde-live-search-embed .adls-featured-grid {
        grid-template-columns: 1fr;
    }

    .adonde-live-search-embed .adls-featured-card {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .adonde-live-search-embed .adls-featured-thumb {
        width: 92px;
    }
}

/* v0.8.6.3 - Geo detection pill pulse */
.adonde-live-search-embed .adls-location-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 10px 0 8px;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.10);
    border: 1px solid rgba(16, 185, 129, 0.18);
    color: #047857;
    box-shadow: 0 10px 26px rgba(16, 185, 129, 0.12);
}

.adonde-live-search-embed .adls-location-pill strong {
    font-size: 13px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: -0.01em;
}

.adonde-live-search-embed .adls-location-dot {
    position: relative;
    width: 11px;
    height: 11px;
    min-width: 11px;
    border-radius: 999px;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.52);
}

.adonde-live-search-embed .adls-location-dot::after {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: inherit;
    border: 2px solid rgba(16, 185, 129, 0.36);
    animation: adlsGeoPulse 1.55s ease-out infinite;
}

@keyframes adlsGeoPulse {
    0% { transform: scale(0.62); opacity: 0.9; }
    70% { transform: scale(1.55); opacity: 0; }
    100% { transform: scale(1.55); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .adonde-live-search-embed .adls-location-dot::after {
        animation: none;
    }
}
