.detail-shell {
        padding-top: 20px;
    }

    .detail-back {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 18px;
        color: #172033;
        text-decoration: none;
        font-size: 14px;
        font-weight: 700;
    }

    .detail-gallery {
        position: relative;
        overflow: hidden;
        border-radius: 22px;
    }

    .detail-gallery-main {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 8.2;
        overflow: hidden;
        border-radius: 22px;
        background-color: #e9edf2;
    }

    .detail-gallery-main img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        object-position: center;
        transition: transform 0.35s ease;
    }

    .detail-gallery-main:hover img {
        transform: scale(1.015);
    }

    .detail-gallery-thumbnails {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
        margin-top: 10px;
    }

    .detail-gallery-thumbnail {
        width: 100%;
        height: 105px;
        display: block;
        border: 0;
        border-radius: 13px;
        object-fit: cover;
        object-position: center;
        background-color: #e9edf2;
        cursor: pointer;
        transition:
            transform 0.2s ease,
            opacity 0.2s ease;
    }

    .detail-gallery-thumbnail:hover {
        transform: translateY(-2px);
        opacity: 0.92;
    }

    .detail-gallery-placeholder {
        min-height: 410px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 22px;
        background:
            linear-gradient(
                135deg,
                #edf1f5,
                #dce3ea
            );
        color: #6b7280;
        font-size: 18px;
    }

    .detail-main-layout {
        display: grid;
        grid-template-columns:
            minmax(0, 1.45fr)
            minmax(330px, 0.75fr);
        gap: 26px;
        margin-top: 26px;
        align-items: start;
    }

    .detail-section {
        margin-bottom: 24px;
        padding: 24px;
        border: 1px solid #e4e8ee;
        border-radius: 20px;
        background-color: white;
        box-shadow:
            0 8px 24px rgba(19, 33, 68, 0.06);
    }

    .detail-category {
        display: inline-flex;
        margin-bottom: 12px;
        padding: 7px 12px;
        border-radius: 999px;
        background-color: #e9f8ee;
        color: #16833a;
        font-size: 12px;
        font-weight: 750;
    }

    .detail-title {
        margin-bottom: 12px;
        font-size: clamp(2.2rem, 5vw, 4rem);
        font-weight: 850;
        line-height: 1;
        letter-spacing: -0.055em;
    }

    .detail-short-description {
        margin-bottom: 15px;
        color: #596273;
        font-size: 1.05rem;
        line-height: 1.6;
    }

    .detail-rating-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        margin-bottom: 18px;
    }

    .detail-rating {
        color: #f59e0b;
        font-size: 1rem;
        font-weight: 800;
    }

    .detail-review-count {
        color: #6b7280;
        font-size: 13px;
    }

    .detail-open-status {
        display: inline-flex;
        align-items: center;
        padding: 6px 10px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 750;
    }

    .detail-open-status.is-open {
        background-color: #e9f8ee;
        color: #16833a;
    }

    .detail-open-status.is-closed {
        background-color: #fdecec;
        color: #c93c3c;
    }

    .detail-open-status.is-unknown {
        background-color: #eef1f5;
        color: #6b7280;
    }

    .detail-schedule-list {
        overflow: hidden;
        border: 1px solid #e4e8ee;
        border-radius: 14px;
    }

    .detail-schedule-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 13px 15px;
        border-bottom: 1px solid #edf0f4;
        color: #4b5563;
        font-size: 14px;
    }

    .detail-schedule-row:last-child {
        border-bottom: 0;
    }

    .detail-schedule-row.is-today {
        background-color: #eef9f1;
        color: #16833a;
        font-weight: 750;
    }

    .detail-schedule-day {
        font-weight: 750;
    }

    .detail-schedule-time {
        text-align: right;
    }

    .detail-meta-list {
        display: grid;
        gap: 10px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .detail-meta-item {
        display: flex;
        gap: 10px;
        color: #4b5563;
        font-size: 14px;
    }

    .detail-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 20px;
    }

    .detail-action-button {
        display: flex;
        min-height: 46px;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px 13px;
        border: 1px solid #dfe5ea;
        border-radius: 13px;
        background-color: white;
        color: #172033;
        text-decoration: none;
        font-size: 13px;
        font-weight: 750;
    }

    .detail-action-button:hover {
        border-color: #20a44b;
        color: #16833a;
    }

    .detail-sidebar {
        position: sticky;
        top: 96px;
    }

    .detail-cta-card {
        padding: 22px;
        border: 1px solid #e4e8ee;
        border-radius: 20px;
        background-color: white;
        box-shadow:
            0 10px 30px rgba(19, 33, 68, 0.09);
    }

    .detail-cta-price {
        margin-bottom: 3px;
        font-size: 1.7rem;
        font-weight: 850;
    }

    .detail-cta-label {
        margin-bottom: 16px;
        color: #6b7280;
        font-size: 12px;
    }

    .detail-cta-list {
        display: grid;
        gap: 11px;
        margin-bottom: 18px;
        padding: 0;
        list-style: none;
    }

    .detail-cta-list li {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        color: #4b5563;
        font-size: 13px;
    }

    .detail-cta-button {
        width: 100%;
        margin-bottom: 10px;
    }

    .detail-claim-box {
        margin-top: 15px;
        padding: 15px;
        border-radius: 14px;
        background-color: #eef9f1;
        text-align: center;
    }

    .detail-claim-box p {
        margin-bottom: 10px;
        color: #4b5563;
        font-size: 12px;
    }

    .detail-section-title {
        margin-bottom: 15px;
        font-size: 1.35rem;
        font-weight: 820;
        letter-spacing: -0.03em;
    }

    .detail-copy {
        color: #4b5563;
        line-height: 1.75;
    }

    .detail-stats-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .detail-stat-card {
        padding: 16px;
        border: 1px solid #e4e8ee;
        border-radius: 15px;
        background-color: #f8fafc;
    }

    .detail-stat-label {
        margin-bottom: 4px;
        color: #6b7280;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
    }

    .detail-stat-value {
        margin-bottom: 0;
        font-size: 1rem;
        font-weight: 800;
    }

    .detail-amenities-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .detail-amenity {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px;
        border: 1px solid #e4e8ee;
        border-radius: 14px;
        background-color: #f8fafc;
    }

    .detail-amenity-icon {
        font-size: 22px;
    }

    .detail-amenity-name {
        font-size: 13px;
        font-weight: 750;
    }

    .detail-amenity-note {
        color: #6b7280;
        font-size: 11px;
    }

    #detail-map {
        width: 100%;
        height: 360px;
        min-height: 360px;
        border-radius: 18px;
        z-index: 1;
    }

    .detail-review-card {
        padding: 17px 0;
        border-bottom: 1px solid #edf0f4;
    }

    .detail-review-card:last-child {
        border-bottom: 0;
    }

    .detail-review-header {
        display: flex;
        justify-content: space-between;
        gap: 12px;
    }

    .detail-review-author {
        margin-bottom: 3px;
        font-weight: 780;
    }

    .detail-review-date {
        color: #6b7280;
        font-size: 11px;
    }

    .detail-review-stars {
        color: #f59e0b;
        font-size: 13px;
    }

    .detail-review-title {
        margin-top: 10px;
        margin-bottom: 5px;
        font-size: 14px;
        font-weight: 780;
    }

    .detail-review-comment {
        margin-bottom: 0;
        color: #4b5563;
        font-size: 13px;
        line-height: 1.6;
    }

    .detail-form-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .detail-form-grid .full-width {
        grid-column: 1 / -1;
    }

    .related-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }

    .related-card {
        overflow: hidden;
        border: 1px solid #e4e8ee;
        border-radius: 16px;
        background-color: white;
    }

    .related-card img,
    .related-placeholder {
        width: 100%;
        height: 130px;
        object-fit: cover;
    }

    .related-placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #eef1f5;
        color: #6b7280;
    }

    .related-card-content {
        padding: 13px;
    }

    .related-card-title {
        margin-bottom: 5px;
        font-size: 14px;
        font-weight: 780;
    }

    .related-card-meta {
        margin-bottom: 0;
        color: #6b7280;
        font-size: 11px;
    }

.detail-gallery-count {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    border: 0;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.95);
    color: #172033;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    box-shadow:
        0 7px 20px rgba(0, 0, 0, 0.18);
}

.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    overflow-y: auto;
    padding: 70px 20px 30px;
    background-color: rgba(6, 17, 31, 0.96);
}

.gallery-modal.is-open {
    display: block;
}

.gallery-modal-close {
    position: fixed;
    top: 18px;
    right: 22px;
    z-index: 2010;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background-color: white;
    color: #172033;
    font-size: 24px;
    cursor: pointer;
}

.gallery-modal-grid {
    width: min(100%, 1150px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0 auto;
}

.gallery-modal-image {
    width: 100%;
    max-height: 650px;
    border-radius: 14px;
    object-fit: cover;
}

.detail-video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.detail-video-card {
    overflow: hidden;
    border: 1px solid #e4e8ee;
    border-radius: 16px;
    background-color: #f8fafc;
}

.detail-video-card video,
.detail-video-card iframe {
    width: 100%;
    min-height: 260px;
    display: block;
    border: 0;
    background-color: #000;
}

.detail-video-title {
    margin: 0;
    padding: 13px;
    font-size: 14px;
    font-weight: 780;
}

@media (max-width: 768px) {
    .gallery-modal-grid,
    .detail-video-grid {
        grid-template-columns: 1fr;
    }

    .gallery-modal {
        padding-inline: 10px;
    }

    .detail-gallery-count {
        right: 12px;
        bottom: 12px;
    }
}

    @media (max-width: 1050px) {
        .detail-main-layout {
            grid-template-columns: 1fr;
        }

        .detail-sidebar {
            position: static;
        }

        .related-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (max-width: 768px) {
        .detail-gallery-main {
            aspect-ratio: 4 / 3;
            min-height: 0;
        }

        .detail-gallery-thumbnails {
            display: flex;
            overflow-x: auto;
            padding-bottom: 4px;
            scrollbar-width: thin;
        }

        .detail-gallery-thumbnail {
            width: 120px;
            height: 82px;
            flex: 0 0 120px;
        }

        .detail-section {
            padding: 18px;
        }

        .detail-title {
            font-size: 2.35rem;
        }

        .detail-actions {
            grid-template-columns: 1fr;
        }

        .detail-stats-grid,
        .detail-amenities-grid,
        .detail-form-grid {
            grid-template-columns: 1fr;
        }

        .detail-form-grid .full-width {
            grid-column: auto;
        }

        .related-grid {
            display: flex;
            overflow-x: auto;
        }

        .related-card {
            width: 230px;
            flex: 0 0 230px;
        }
    }

    .detail-open-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
}

.detail-open-status.is-open {
    background-color: #e9f8ee;
    color: #16833a;
}

.detail-open-status.is-closed {
    background-color: #fdecec;
    color: #c93c3c;
}

.detail-open-status.is-unknown {
    background-color: #eef1f5;
    color: #6b7280;
}

.detail-schedule-list {
    display: grid;
    gap: 8px;
}

.detail-schedule-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 11px 13px;
    border-radius: 12px;
    color: #4b5563;
    font-size: 13px;
}

.detail-schedule-row:nth-child(odd) {
    background-color: #f8fafc;
}

.detail-schedule-row.is-today {
    background-color: #e9f8ee;
    color: #16833a;
    font-weight: 750;
}

.detail-schedule-day {
    font-weight: 700;
}

.detail-schedule-time {
    text-align: right;
}
/* =========================================================
   CIUDAD VIVA — MEJORA PREMIUM DEL ENCABEZADO DE PLACE DETAIL
   Pegar al final de static/css/place_detail.css
   ========================================================= */

/* Fondo general más limpio y con mayor profundidad */
body {
    background:
        radial-gradient(circle at top left, rgba(32, 164, 75, 0.07), transparent 32%),
        linear-gradient(180deg, #f7faf8 0%, #f4f7fb 100%);
}

.detail-shell {
    padding-top: 24px;
    padding-bottom: 56px;
}

/* Volver */
.detail-back {
    padding: 9px 13px;
    border: 1px solid #e3e8ee;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 24px rgba(19, 33, 68, 0.06);
    backdrop-filter: blur(10px);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        box-shadow 180ms ease;
}

.detail-back:hover {
    color: #16833a;
    border-color: rgba(32, 164, 75, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(19, 33, 68, 0.1);
}

/* Galería: se conserva la estructura, solo se eleva el diseño */
.detail-gallery {
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        0 24px 60px rgba(12, 33, 63, 0.16),
        0 2px 8px rgba(12, 33, 63, 0.08);
}

.detail-gallery-main {
    border-radius: 24px;
}

.detail-gallery-main::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(8, 25, 48, 0.02) 50%,
            rgba(8, 25, 48, 0.28) 100%
        );
}

.detail-gallery-main img {
    transition:
        transform 420ms ease,
        filter 420ms ease;
}

.detail-gallery-main:hover img {
    transform: scale(1.025);
    filter: saturate(1.04) contrast(1.02);
}

.detail-gallery-thumbnail {
    border: 2px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 20px rgba(12, 33, 63, 0.12);
}

.detail-gallery-count {
    right: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    background: rgba(10, 26, 51, 0.82);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 10px 26px rgba(6, 20, 40, 0.25);
    backdrop-filter: blur(12px);
    transition:
        transform 180ms ease,
        background-color 180ms ease;
}

.detail-gallery-count:hover {
    background: rgba(10, 26, 51, 0.94);
    transform: translateY(-2px);
}

/* Encabezado principal */
.detail-main-layout {
    margin-top: 30px;
    gap: 30px;
}

.detail-main-layout > div:first-child > .detail-section:first-child {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border: 1px solid rgba(222, 229, 236, 0.9);
    border-radius: 24px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.98),
            rgba(249, 252, 250, 0.98)
        );
    box-shadow:
        0 20px 45px rgba(19, 33, 68, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.detail-main-layout > div:first-child > .detail-section:first-child::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    content: "";
    background:
        linear-gradient(
            90deg,
            #20a44b 0%,
            #4fd678 48%,
            #1f6f4a 100%
        );
}

/* Categoría */
.detail-category {
    gap: 6px;
    margin-bottom: 14px;
    padding: 8px 13px;
    border: 1px solid rgba(32, 164, 75, 0.16);
    background:
        linear-gradient(
            135deg,
            #edf9f1,
            #e5f6ea
        );
    box-shadow: 0 6px 16px rgba(32, 164, 75, 0.08);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Título */
.detail-title {
    max-width: 900px;
    margin-bottom: 14px;
    color: #10233f;
    font-size: clamp(2.45rem, 5vw, 4.45rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-wrap: balance;
}

.detail-short-description {
    max-width: 780px;
    margin-bottom: 20px;
    color: #536173;
    font-size: 1.08rem;
    line-height: 1.7;
}

/* Calificación y estados */
.detail-rating-row {
    gap: 9px;
    margin-bottom: 22px;
}

.detail-rating {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff8e6;
    color: #d78b00;
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.18);
}

.detail-review-count {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 11px;
    border-radius: 999px;
    background: #f2f5f8;
    color: #667085;
    font-weight: 700;
}

.detail-open-status {
    min-height: 34px;
    padding: 0 12px;
    box-shadow: inset 0 0 0 1px rgba(20, 40, 70, 0.05);
}

.detail-open-status.is-open {
    background: #e9f9ef;
    color: #0f7a33;
}

.detail-open-status.is-closed {
    background: #fff0f0;
    color: #b72f2f;
}

/* Metadatos */
.detail-meta-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.detail-meta-item {
    min-height: 50px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #e7ecf1;
    border-radius: 14px;
    background: #fbfcfd;
    color: #425066;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease;
}

.detail-meta-item:hover {
    border-color: rgba(32, 164, 75, 0.22);
    background: #f8fcf9;
    transform: translateY(-1px);
}

.detail-meta-item > span:first-child {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eef8f1;
    font-size: 16px;
}

/* Botones de acción */
.detail-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.detail-action-button {
    position: relative;
    min-height: 54px;
    overflow: hidden;
    border: 1px solid #dce5e0;
    border-radius: 15px;
    background:
        linear-gradient(
            180deg,
            #ffffff,
            #f8fbf9
        );
    color: #18304d;
    box-shadow: 0 8px 18px rgba(19, 33, 68, 0.06);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        color 180ms ease;
}

.detail-action-button::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    content: "";
    background:
        linear-gradient(
            90deg,
            #20a44b,
            #59d47f
        );
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.detail-action-button:hover {
    border-color: rgba(32, 164, 75, 0.4);
    color: #0f7a33;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(19, 33, 68, 0.11);
}

.detail-action-button:hover::after {
    transform: scaleX(1);
}

/* Sidebar más premium, sin cambiar HTML */
.detail-sidebar {
    top: 90px;
}

.detail-cta-card {
    overflow: hidden;
    padding: 24px;
    border: 1px solid rgba(221, 228, 235, 0.95);
    border-radius: 24px;
    background:
        linear-gradient(
            150deg,
            #ffffff 0%,
            #f8fcf9 100%
        );
    box-shadow:
        0 22px 50px rgba(19, 33, 68, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.detail-cta-card::before {
    display: block;
    width: 54px;
    height: 5px;
    margin-bottom: 20px;
    border-radius: 999px;
    content: "";
    background:
        linear-gradient(
            90deg,
            #20a44b,
            #62d889
        );
}

.detail-cta-price {
    color: #10233f;
    font-size: 2rem;
    letter-spacing: -0.04em;
}

.detail-cta-list {
    overflow: hidden;
    border: 1px solid #e7ecf1;
    border-radius: 15px;
    background: #fbfcfd;
}

.detail-cta-list li {
    padding: 13px 14px;
    border-bottom: 1px solid #edf1f4;
}

.detail-cta-list li:last-child {
    border-bottom: 0;
}

.detail-cta-button {
    min-height: 48px;
    border-radius: 13px;
    font-weight: 800;
}

.detail-claim-box {
    border: 1px solid rgba(32, 164, 75, 0.12);
    background:
        linear-gradient(
            135deg,
            #eef9f1,
            #e7f7ec
        );
}

/* Responsive */
@media (max-width: 1080px) {
    .detail-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .detail-shell {
        padding-top: 14px;
    }

    .detail-gallery {
        border-radius: 18px;
    }

    .detail-gallery-main {
        aspect-ratio: 4 / 3;
        border-radius: 18px;
    }

    .detail-gallery-thumbnails {
        grid-template-columns: repeat(4, 110px);
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: thin;
    }

    .detail-gallery-thumbnail {
        height: 82px;
    }

    .detail-main-layout > div:first-child > .detail-section:first-child {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .detail-title {
        font-size: clamp(2rem, 11vw, 3.1rem);
    }

    .detail-meta-list {
        grid-template-columns: 1fr;
    }

    .detail-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 460px) {
    .detail-actions {
        grid-template-columns: 1fr;
    }

    .detail-action-button {
        justify-content: flex-start;
        padding-left: 16px;
    }
}