/* =======================================================================
   GUIAZONA REVIEWS — TARJETAS DEL DASHBOARD DEL PROPIETARIO
   Archivo: gz-owner-response-card.css
   Úsalo en: modules/reviews/presentation/assets/css/
   ======================================================================= */

.gz-owner-responses {
    max-width: 760px;
    margin: 0 auto;
    font-family: inherit;
    color: #1f2328;
}

.gz-owner-responses__header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.gz-owner-responses__title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.gz-owner-responses__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 13px;
    font-weight: 600;
}

.gz-owner-responses__message {
    padding: 24px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    color: #6b7280;
    text-align: center;
}

.gz-owner-responses__list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* -----------------------------------------------------------------------
   TARJETA INDIVIDUAL — cada reseña queda claramente separada
----------------------------------------------------------------------- */

.gz-owner-response-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    transition: box-shadow 0.15s ease;
}

.gz-owner-response-card:hover {
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.08);
}

.gz-owner-response-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.gz-owner-response-card__author {
    font-weight: 600;
    font-size: 15px;
    color: #111827;
}

.gz-owner-response-card__date {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 2px;
}

.gz-owner-response-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 13px;
    white-space: nowrap;
}

.gz-owner-response-card__rating span {
    color: #f59e0b;
}

.gz-owner-response-card__title {
    font-size: 16px;
    font-weight: 600;
    margin: 4px 0 6px;
    color: #111827;
}

.gz-owner-response-card__comment {
    font-size: 14px;
    line-height: 1.55;
    color: #374151;
    margin-bottom: 12px;
    white-space: pre-line;
}

/* -----------------------------------------------------------------------
   ACCIONES (botón Responder / Editar respuesta)
----------------------------------------------------------------------- */

.gz-owner-response-card__actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 4px;
}

.gz-owner-response-card__reply {
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 8px;
    border: 1px solid #d6336c;
    background: transparent;
    color: #d6336c;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.gz-owner-response-card__reply:hover {
    background: #d6336c;
    color: #ffffff;
}

/* -----------------------------------------------------------------------
   RESPUESTA GUARDADA — se distingue claramente de la reseña original
----------------------------------------------------------------------- */

.gz-owner-response-card__saved {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f4f6ff;
    border-left: 3px solid #4f46e5;
}

.gz-owner-response-card__saved-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #4f46e5;
    margin-bottom: 4px;
}

.gz-owner-response-card__saved-date {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 6px;
}

.gz-owner-response-card__saved-text {
    font-size: 14px;
    line-height: 1.5;
    color: #1f2937;
    white-space: pre-line;
}

/* -----------------------------------------------------------------------
   FORMULARIO DE RESPUESTA
----------------------------------------------------------------------- */

.gz-owner-response-card__form {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #e5e7eb;
}

.gz-owner-response-form__field {
    margin-bottom: 10px;
}

.gz-owner-response-form__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.gz-owner-response-form__textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 90px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.gz-owner-response-form__textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.gz-owner-response-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

.gz-owner-response-form__cancel,
.gz-owner-response-form__submit {
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid transparent;
}

.gz-owner-response-form__cancel {
    background: transparent;
    color: #6b7280;
    border-color: #d1d5db;
}

.gz-owner-response-form__cancel:hover {
    background: #f3f4f6;
}

.gz-owner-response-form__submit {
    background: #4f46e5;
    color: #ffffff;
}

.gz-owner-response-form__submit:hover {
    background: #4338ca;
}

.gz-owner-response-form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* =======================================================================
   BURBUJA DE RESPUESTA — VISTA PÚBLICA (dentro de gz-review-card)
   ======================================================================= */

.gz-review-card__owner-response {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f9fafb;
    border-left: 3px solid #9333ea;
}

.gz-review-card__owner-response-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #9333ea;
    margin-bottom: 4px;
}

.gz-review-card__owner-response-date {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 6px;
}

.gz-review-card__owner-response-text {
    font-size: 14px;
    line-height: 1.5;
    color: #1f2937;
    white-space: pre-line;
}


/* =======================================================================
   LISTADO DE RESEÑAS — [gz_reviews]
   ======================================================================= */

.gz-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 760px;
}

.gz-reviews-list__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    border-radius: 14px;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    max-width: 760px;
}

.gz-reviews-list__empty-icon {
    font-size: 28px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef2ff;
    margin-bottom: 12px;
}

.gz-reviews-list__empty-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.gz-reviews-list__empty-subtitle {
    font-size: 14px;
    color: #4f46e5;
    font-weight: 600;
}

.gz-reviews-list-wrapper {
    max-width: 760px;
}

.gz-reviews-list__header {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 14px;
}

.gz-reviews-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}

.gz-reviews-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.gz-reviews-pagination__link:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.gz-reviews-pagination__link.is-active {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #ffffff;
}

.gz-reviews-pagination__prev,
.gz-reviews-pagination__next {
    font-weight: 600;
    padding: 0 14px;
}


/* =======================================================================
   LIGHTBOX / CARRUSEL DE FOTOS
   ======================================================================= */

body.gz-lightbox-open {
    overflow: hidden;
}

.gz-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gz-lightbox[hidden] {
    display: none;
}

.gz-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.92);
}

.gz-lightbox__content {
    position: relative;
    z-index: 1;
    max-width: min(92vw, 1100px);
    max-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gz-lightbox__image {
    max-width: min(92vw, 1100px);
    max-height: 92vh;
    object-fit: contain;
    border-radius: 8px;
    -webkit-user-select: none;
    user-select: none;
}

.gz-lightbox__close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gz-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.24);
}

.gz-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gz-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.24);
}

.gz-lightbox__nav[hidden] {
    display: none;
}

.gz-lightbox__prev {
    left: -60px;
}

.gz-lightbox__next {
    right: -60px;
}

.gz-lightbox__counter {
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {

    .gz-lightbox__prev {
        left: 8px;
    }

    .gz-lightbox__next {
        right: 8px;
    }

    .gz-lightbox__close {
        top: 8px;
        right: 8px;
    }

    .gz-lightbox__counter {
        bottom: 12px;
    }
}

/* =======================================================================
   FIX: el atributo hidden debe ganarle a cualquier display de clase
   ======================================================================= */

.gz-review-card__comment-preview[hidden],
.gz-review-card__comment-full[hidden] {
    display: none !important;
}

