/* =========================================================
   RC DIAMOND HOUSE
   DETALLE DE PROPIEDAD
   ========================================================= */


/* =========================================================
   PAGE
   ========================================================= */

.detalle-page {
    width: 100%;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;

    min-height: calc(100vh - 140px);

    background: var(--color-background);
}


/* =========================================================
   PROPERTY DETAIL
   ========================================================= */

.property-detail {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    padding:
        45px
        clamp(25px, 4vw, 60px)
        70px;
}


/* =========================================================
   GALLERY
   ========================================================= */

.detail-gallery {
    width: 100%;

    margin-bottom: 30px;
}

.main-image {
    position: relative;

    width: 100%;

    overflow: hidden;

    border-radius: var(--radius-lg);

    background: #eef1f5;

    box-shadow: var(--shadow-md);
}

.main-image > img {
    width: 100%;

    aspect-ratio: 16 / 8.5;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}

.main-image:hover > img {
    transform: scale(1.015);
}


/* Gallery button */

.gallery-button {
    position: absolute;

    right: 20px;
    bottom: 20px;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.95);

    box-shadow: var(--shadow-md);

    cursor: pointer;

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.gallery-button:hover {
    transform: scale(1.06);

    box-shadow: var(--shadow-lg);
}

.gallery-button img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* Gallery indicator */

.gallery-indicator {
    position: absolute;

    left: 50%;
    bottom: 15px;

    transform: translateX(-50%);

    display: flex;
    justify-content: center;

    padding: 5px 9px;

    border-radius: 20px;

    background: rgba(0, 0, 0, 0.25);

    backdrop-filter: blur(5px);
}

.gallery-indicator img {
    width: 65px;
    height: auto;
}


/* =========================================================
   DETAIL HEADER
   ========================================================= */

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    margin-bottom: 25px;
}

.detail-eyebrow {
    display: inline-block;

    margin-bottom: 7px;

    color: var(--color-accent);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.detail-header h1 {
    margin: 0 0 8px;

    color: var(--color-primary);

    font-size: clamp(25px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.15;
}

.detail-location {
    display: flex;
    align-items: center;

    gap: 7px;

    margin: 0;

    color: var(--color-text-light);

    font-size: 14px;
}


/* =========================================================
   FEATURES
   ========================================================= */

.detail-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 12px;

    margin-bottom: 35px;
}

.detail-feature {
    display: flex;
    align-items: center;

    gap: 13px;

    min-height: 78px;

    padding: 15px;

    background: var(--color-white);

    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.detail-feature:hover {
    transform: translateY(-3px);

    border-color: rgba(0, 155, 222, 0.35);

    box-shadow: var(--shadow-md);
}

.detail-feature > img {
    width: 35px;
    height: 35px;

    flex-shrink: 0;

    object-fit: contain;
}

.detail-feature div {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.detail-feature strong {
    color: var(--color-primary);

    font-size: 15px;
    font-weight: 800;
}

.detail-feature span {
    color: var(--color-text-light);

    font-size: 11px;
    line-height: 1.3;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.detail-description {
    display: flex;
    flex-direction: column;

    gap: 35px;
}

.content-section {
    width: 100%;
}

.content-section h2 {
    position: relative;

    margin: 0 0 18px;
    padding-bottom: 10px;

    color: var(--color-primary);

    font-size: 23px;
    font-weight: 800;
}

.content-section h2::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 45px;
    height: 3px;

    border-radius: 5px;

    background: var(--color-accent);
}

.content-section p {
    margin: 0 0 15px;

    color: var(--color-text-light);

    font-size: 14px;
    line-height: 1.8;
    text-align: justify;
}

.content-section p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   CHARACTERISTICS LIST
   ========================================================= */

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 12px 30px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.features-list li {
    position: relative;

    margin: 0;
    padding-left: 22px;

    color: var(--color-text-light);

    font-size: 13px;
    line-height: 1.5;
}

.features-list li::before {
    content: "✓";

    position: absolute;

    left: 0;
    top: 0;

    color: var(--color-accent);

    font-weight: 800;
}


/* =========================================================
   BOOKING SIDEBAR
   ========================================================= */

.booking-sidebar {
    position: relative;

    min-height: 100%;

    overflow: hidden;

    padding:
        45px
        35px
        190px;

    background:
        linear-gradient(
            180deg,
            var(--color-accent) 0%,
            #008bc8 100%
        );
}


/* =========================================================
   BOOKING CARD
   ========================================================= */

.booking-card {
    position: relative;
    z-index: 5;

    width: 100%;

    overflow: hidden;

    border-radius: var(--radius-lg);

    background: var(--color-white);

    box-shadow: var(--shadow-lg);
}


/* =========================================================
   BOOKING HEADER
   ========================================================= */

.booking-header {
    padding: 27px 28px 22px;

    background: var(--color-primary);

    color: var(--color-white);
}

.booking-eyebrow {
    display: block;

    margin-bottom: 5px;

    color: rgba(255, 255, 255, 0.7);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.booking-header h2 {
    margin: 0 0 10px;

    font-size: 25px;
    font-weight: 800;
}

.booking-header p {
    margin: 0;

    color: rgba(255, 255, 255, 0.88);

    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   BOOKING FORM
   ========================================================= */

.booking-form {
    display: flex;
    flex-direction: column;

    gap: 15px;

    padding: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;

    gap: 6px;
}

.form-group label {
    color: var(--color-text);

    font-size: 11px;
    font-weight: 700;
}

.form-group label span {
    color: #dc2626;
}

.form-group input,
.form-group textarea {
    width: 100%;

    padding: 10px 11px;

    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);

    background: #fbfcfe;

    color: var(--color-text);

    font-size: 12px;

    transition:
        border-color var(--transition),
        background-color var(--transition),
        box-shadow var(--transition);
}

.form-group input {
    height: 40px;
}

.form-group textarea {
    min-height: 105px;

    resize: vertical;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #cbd5e1;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);

    background: var(--color-white);

    box-shadow:
        0 0 0 3px rgba(0, 155, 222, 0.12);
}


/* =========================================================
   BOOKING BUTTON
   ========================================================= */

.booking-button {
    width: 100%;

    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    margin-top: 5px;

    border: 0;
    border-radius: var(--radius-sm);

    background: var(--color-primary);
    color: var(--color-white);

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 8px 18px rgba(1, 0, 128, 0.2);

    transition:
        background-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.booking-button span {
    font-size: 18px;
}

.booking-button:hover {
    background: var(--color-accent);

    transform: translateY(-2px);

    box-shadow:
        0 10px 22px rgba(0, 155, 222, 0.25);
}

.booking-button:active {
    transform: translateY(0);
}


/* =========================================================
   BUILDINGS
   ========================================================= */

.booking-buildings {
    position: absolute;

    right: 0;
    bottom: 0;

    width: 100%;

    z-index: 2;

    pointer-events: none;
}

.booking-buildings img {
    width: 100%;
    height: auto;

    object-fit: contain;

    opacity: 0.85;
}


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (min-width: 1450px) {

    .detalle-page {
        grid-template-columns:
            minmax(0, 1fr)
            450px;
    }

    .property-detail {
        max-width: 1200px;

        padding:
            60px
            65px
            80px;
    }

    .main-image > img {
        aspect-ratio: 16 / 8;
    }

    .booking-sidebar {
        padding:
            55px
            40px
            210px;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .detalle-page {
        grid-template-columns:
            minmax(0, 1fr)
            340px;
    }

    .property-detail {
        padding:
            40px
            25px
            60px;
    }

    .booking-sidebar {
        padding:
            40px
            20px
            170px;
    }

    .detail-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-list {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .detalle-page {
        display: block;

        min-height: auto;
    }

    .property-detail {
        width: 100%;

        padding:
            35px
            18px
            45px;
    }

    .main-image > img {
        aspect-ratio: 16 / 10;
    }

    .gallery-button {
        width: 42px;
        height: 42px;

        right: 14px;
        bottom: 14px;

        padding: 9px;
    }

    .gallery-indicator {
        bottom: 10px;
    }

    .gallery-indicator img {
        width: 55px;
    }

    .detail-header h1 {
        font-size: 26px;
    }

    .detail-location {
        font-size: 13px;
    }

    .detail-features {
        grid-template-columns: repeat(2, 1fr);

        gap: 10px;

        margin-bottom: 30px;
    }

    .detail-feature {
        min-height: 70px;

        padding: 12px;

        gap: 9px;
    }

    .detail-feature > img {
        width: 30px;
        height: 30px;
    }

    .detail-feature strong {
        font-size: 13px;
    }

    .detail-feature span {
        font-size: 10px;
    }

    .content-section h2 {
        font-size: 21px;
    }

    .content-section p {
        font-size: 13px;

        line-height: 1.7;
    }

    .features-list {
        grid-template-columns: 1fr;

        gap: 10px;
    }

    .booking-sidebar {
        min-height: auto;

        padding:
            40px
            18px
            170px;
    }

    .booking-card {
        max-width: 500px;

        margin: 0 auto;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 500px) {

    .property-detail {
        padding:
            28px
            14px
            38px;
    }

    .detail-gallery {
        margin-bottom: 24px;
    }

    .main-image {
        border-radius: 14px;
    }

    .main-image > img {
        aspect-ratio: 4 / 3;
    }

    .detail-eyebrow {
        font-size: 10px;
    }

    .detail-header h1 {
        font-size: 22px;
    }

    .detail-location {
        font-size: 12px;
    }

    .detail-features {
        gap: 8px;
    }

    .detail-feature {
        min-height: 65px;

        padding: 10px;
    }

    .detail-feature > img {
        width: 26px;
        height: 26px;
    }

    .detail-feature strong {
        font-size: 12px;
    }

    .detail-feature span {
        font-size: 9px;
    }

    .content-section h2 {
        font-size: 20px;
    }

    .content-section p {
        font-size: 12px;
        text-align: left;
    }

    .features-list li {
        font-size: 12px;
    }

    .booking-sidebar {
        padding:
            30px
            14px
            145px;
    }

    .booking-header {
        padding: 23px 20px 20px;
    }

    .booking-header h2 {
        font-size: 22px;
    }

    .booking-form {
        padding: 20px;

        gap: 13px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .booking-buildings {
        width: 120%;
        right: -10%;
    }

}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.gallery-button:focus-visible,
.booking-button:focus-visible {
    outline: 3px solid rgba(0, 155, 222, 0.35);
    outline-offset: 3px;
}