/* =========================================================
   CUBE AROMA — BRANCHES
   ========================================================= */

:root {
    --cube-page: #fffdfb;
    --cube-card: #f8f1e8;
    --cube-dark: #4d4c50;
    --cube-muted: #77757a;
    --cube-line: rgba(77, 76, 80, 0.16);
}


/* =========================================================
   BASE
   ========================================================= */

.cube-branches-page,
.cube-branches-page * {
    box-sizing: border-box;
}


.cube-branches-page {
    width: 100%;
    min-height: 100vh;

    padding: 46px 24px 70px;

    background: var(--cube-page);

    color: var(--cube-dark);

    font-family: "Cairo", sans-serif;
}


.cube-branches-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}


/* =========================================================
   INTRO
   ========================================================= */

.cube-branches-intro {
    margin-bottom: 28px;

    text-align: right;
}


.cube-branches-intro h1 {
    margin: 0 0 4px;

    color: var(--cube-dark);

    font-size: clamp(
        30px,
        3vw,
        42px
    );

    font-weight: 500;
    line-height: 1.35;
}


.cube-branches-intro p {
    margin: 0;

    color: var(--cube-muted);

    font-size: 14px;
    font-weight: 400;
}


/* =========================================================
   MAIN CARD
   ========================================================= */

.cube-branch-main-card {
    display: grid;

    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(330px, .75fr);

    gap: 26px;

    padding: 22px;

    border:
        1px solid
        var(--cube-line);

    border-radius: 14px;

    background:
        var(--cube-card);
}


/* =========================================================
   BRANCH PHOTO — CONTROLLED HEIGHT
   ========================================================= */

.cube-branch-photo {
    position: relative;

    width: 100%;
    height: 460px;
    min-height: 0;

    overflow: hidden;

    border-radius: 11px;

    background: #eee7de;
}

.cube-branch-photo {
    position: relative;

    width: 100%;
    height: 460px;

    overflow: hidden;

    border-radius: 11px;

    background: var(--cube-card);
}

.cube-branch-photo img {
    display: block;

    width: 100% !important;
    height: 100% !important;

  object-fit: contain !important;
    object-position: center !important;
	
	 transform: scaleX(1.18);
    transform-origin: center;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;
}

.cube-branch-photo-placeholder {
    width: 100%;
    height: 460px;
    min-height: 0;

    display: grid;
    place-items: center;

    color: var(--cube-muted);

    font-size: 21px;
    font-weight: 500;
    letter-spacing: .16em;
}

/* =========================================================
   DETAILS COLUMN
   ========================================================= */

.cube-branch-details {
    display: flex;
    flex-direction: column;

    min-width: 0;

    padding: 30px 12px 12px;
}


.cube-branch-details > h2 {
    margin: 0 0 25px;

    color: var(--cube-dark);

    font-size: 31px;
    font-weight: 600;

    line-height: 1.3;
}


/* =========================================================
   DETAIL ROW
   ========================================================= */

.cube-branch-detail-row {
    display: grid;

    grid-template-columns:
        52px
        minmax(0, 1fr);

    gap: 18px;

    padding: 22px 0;

    border-bottom:
        1px solid
        var(--cube-line);
}


/* =========================================================
   ICON
   ========================================================= */

.cube-branch-detail-icon {
    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        rgba(
            255,
            253,
            251,
            .72
        );

    color:
        var(--cube-dark);
}


.cube-branch-detail-icon svg {
    width: 25px;
    height: 25px;
}


/* =========================================================
   DETAIL TEXT
   ========================================================= */

.cube-branch-detail-content {
    min-width: 0;
}


.cube-branch-detail-content h3 {
    margin: 0 0 10px;

    color: var(--cube-dark);

    font-size: 18px;
    font-weight: 600;
}


/* =========================================================
   ADDRESS
   ========================================================= */

.cube-branch-address {
    display: flex;
    flex-direction: column;

    gap: 3px;
}


.cube-branch-address span {
    color: var(--cube-muted);

    font-size: 14px;
    font-weight: 400;

    line-height: 1.75;
}


/* =========================================================
   HOURS
   ========================================================= */

.cube-branch-hours {
    display: flex;
    flex-direction: column;

    gap: 9px;
}


.cube-branch-hours-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 16px;

    color: var(--cube-muted);

    font-size: 13px;
}


.cube-branch-hours-row span,
.cube-branch-hours-row strong {
    font-weight: 400;
}


/* =========================================================
   MAP BUTTON
   ========================================================= */

.cube-branch-map-button {
    width: 100%;
    min-height: 54px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-top: 25px;

    padding: 12px 20px;

    border:
        1px solid
        var(--cube-dark);

    border-radius: 10px;

    background:
        var(--cube-dark);

    color: #fff !important;

    font-size: 14px;
    font-weight: 500;

    text-decoration: none !important;

    box-shadow: none !important;

    transition:
        background .2s ease,
        color .2s ease;
}


.cube-branch-map-button svg {
    width: 19px;
    height: 19px;

    flex: 0 0 19px;
}


.cube-branch-map-button:hover,
.cube-branch-map-button:focus {
    background:
        var(--cube-page);

    color:
        var(--cube-dark) !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .cube-branch-main-card {
        grid-template-columns: 1fr;
    }

    .cube-branch-photo,
    .cube-branch-photo img,
    .cube-branch-photo-placeholder {
        height: 380px;
        min-height: 0 !important;
    }

    .cube-branch-details {
        padding: 12px 8px 6px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .cube-branches-page {
        padding:
            22px
            12px
            50px;
    }


    .cube-branches-intro {
        margin-bottom: 18px;
    }


    .cube-branches-intro h1 {
        font-size: 27px;
    }


    .cube-branches-intro p {
        font-size: 12px;
    }


    .cube-branch-main-card {
        gap: 0;

        padding: 11px;

        border-radius: 12px;
    }


    .cube-branch-photo,
    .cube-branch-photo img,
    .cube-branch-photo-placeholder {
         height: 260px;
        min-height: 0 !important;
    }


    .cube-branch-photo {
        border-radius: 9px;
    }


    .cube-branch-details {
        padding:
            21px
            7px
            5px;
    }


    .cube-branch-details > h2 {
        margin-bottom: 12px;

        font-size: 23px;
    }


    .cube-branch-detail-row {
        grid-template-columns:
            42px
            minmax(0, 1fr);

        gap: 12px;

        padding: 17px 0;
    }


    .cube-branch-detail-icon {
        width: 42px;
        height: 42px;
    }


    .cube-branch-detail-icon svg {
        width: 21px;
        height: 21px;
    }


    .cube-branch-detail-content h3 {
        margin-bottom: 7px;

        font-size: 15px;
    }


    .cube-branch-address span {
        font-size: 12px;

        line-height: 1.7;
    }


    .cube-branch-hours-row {
        gap: 9px;

        font-size: 11px;
    }


    .cube-branch-map-button {
        min-height: 49px;

        margin-top: 19px;

        font-size: 13px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .cube-branch-hours-row {
        flex-direction: column;

        align-items: flex-start;

        gap: 2px;
    }

}