:root {
    --bg: #f8f5ef;
    --text: #24211e;
    --serif: 'Playfair Display', serif;
    --sans: 'Plus Jakarta Sans', sans-serif;
}


/* ================= GENERAL ================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);

    /* الصفحة كاملة بدون Scroll */
    overflow: hidden;
}


/* ================= HERO ================= */

.hero {
    position: relative;

    width: 100%;
    height: 38vh;

    background-image: url("images/relax-cover-dead-sea-v1.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* ================= NAVBAR ================= */

nav {
    position: relative;

    width: 94%;
    max-width: 1250px;
    height: 70px;

    margin: 0 auto;

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

    z-index: 10;
}


/* ================= LOGO ================= */

.logo {
    position: absolute;
    left: 0;

    font-family: var(--serif);
    font-size: 25px;
    letter-spacing: 2px;

    color: var(--text);
}


/* ================= NAV LINKS ================= */

.nav-links {
    display: flex;
    align-items: center;
    gap: 60px;
}

.nav-links a {
    color: var(--text);

    text-decoration: none;

    font-family: var(--serif);
    font-size: 16px;

    transition: 0.2s;
}

.nav-links a:hover {
    opacity: 0.6;
}


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

.profile-icon {
    position: absolute;
    right: -90px;

    width: 27px;
    height: 27px;

    cursor: pointer;

    transition: 0.2s;
}

.profile-icon svg {
    display: block;

    width: 100%;
    height: 100%;

    fill: none;

    stroke: var(--text);
    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.profile-icon:hover {
    opacity: 0.6;
}


/* ================= HERO TEXT ================= */

.hero-text {
    position: absolute;

    left: 5%;
    bottom: 30px;

    color: var(--text);

    z-index: 2;
}


.hero-text h1 {
    margin: 0;

    font-family: var(--serif);

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

    color: var(--text);
}


.hero-text p {
    margin: 0;
    margin-top: -3px;

    font-family: var(--serif);

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

    color: var(--text);
}


/* ================= PLACES ================= */

.places {
    position: relative;

    width: 100%;
    height: 64vh;

    margin-top: -2vh;

    background: var(--bg);

    border-radius: 22px 22px 0 0;

    padding: 22px 4% 18px;

    z-index: 5;
}


/* ================= CARDS ================= */

.cards {
    width: 100%;
    height: 100%;

    display: grid;

    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);

    column-gap: 45px;
    row-gap: 18px;
}


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

.card {
    width: 100%;
    min-height: 0;

    display: flex;
    flex-direction: column;
}


/* ================= CARD IMAGE ================= */

.card > img {
    display: block;

    width: 100%;
    height: calc(100% - 55px);

    min-height: 0;

    object-fit: cover;

    border-radius: 16px;
}


/* ================= CARD INFORMATION ================= */

.card-info {
    flex: 1;

    display: flex;

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

    gap: 10px;

    padding: 6px 4px 0;
}


.card-info h2 {
    margin: 0 0 2px;

    font-family: var(--serif);

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


.card-info p {
    margin: 0;

    max-width: 290px;

    font-family: var(--serif);

    font-size: 11px;

    line-height: 1.2;
}


/* ================= ARROW ================= */

.arrow {
    flex-shrink: 0;

    width: 34px;
    height: 34px;

    border: none;
    border-radius: 50%;

    background: white;

    color: var(--text);

    font-size: 17px;

    cursor: pointer;

    transition: 0.25s;
}


.arrow:hover {
    background: #111;
    color: white;

    transform: translateX(3px);
}


/* ================= SMALL LAPTOP ================= */

@media (max-height: 750px) {

    .hero {
        height: 36vh;
    }

    .places {
        height: 66vh;
    }

    .hero-text {
        bottom: 25px;
    }

    .hero-text h1 {
        font-size: 42px;
    }

    .cards {
        row-gap: 10px;
    }

    .card > img {
        height: calc(100% - 48px);
    }

    .card-info h2 {
        font-size: 16px;
    }

    .card-info p {
        font-size: 9px;
    }

    .arrow {
        width: 30px;
        height: 30px;
    }
}


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

@media (max-width: 900px) {

    body {
        overflow: auto;
    }

    .hero {
        height: 350px;
    }

    .places {
        height: auto;

        margin-top: -20px;

        padding: 25px 4%;
    }

    .cards {
        height: auto;

        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;

        column-gap: 30px;
        row-gap: 25px;
    }

    .card > img {
        height: 160px;
    }

    .nav-links {
        gap: 25px;
    }
}


/* ================= MOBILE ================= */
.card > img {
    border-radius: 16px;

    transition:
        transform 0.4s ease,
        filter 0.4s ease,
        opacity 0.4s ease;

    cursor: pointer;
}
.card > img:hover {
    transform: scale(1.04);
    filter: brightness(0.88);
    border-radius: 16px;
}
/* Card text interaction */

.card-info h2,
.card-info p,
.card-info .arrow {
    transition: transform 0.3s ease;
}

.card:hover .card-info h2,
.card:hover .card-info p {
    transform: translateY(-2px);
}

.card:hover .card-info .arrow {
    transform: translateX(4px);
}
@media (max-width: 600px) {

    body {
        overflow: auto;
    }

    .hero {
        height: 350px;
    }

    .nav-links {
        display: none;
    }

    .hero-text h1 {
        font-size: 42px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .card > img {
        height: 190px;
    }

    .profile-icon {
        width: 25px;
        height: 25px;
    }
}

/* Keep location metadata compact and the image close to its caption. */
.relax-page .card-info .relax-location { display: flex; align-items: center; gap: 4px; margin: 0 0 4px; font-size: 10px; line-height: 1.4; color: #6f786f; }
.relax-page .relax-location svg { display: block; flex: 0 0 12px; width: 12px; height: 12px; }
.relax-page .cards .card { display: flex; flex-direction: column; justify-content: flex-start; gap: 0; }
.relax-page .cards .card-info { margin-top: 0; padding-top: 8px; }
.relax-page .card-image-link { flex: none; transform-origin: center; transition: transform .35s ease; position: relative; isolation: isolate; }
.relax-page .card-image-link img { filter: saturate(.86) contrast(.97) sepia(.055); }
.relax-page .card-image-link:hover, .relax-page .card-image-link:focus-visible { transform: scale(1.035); }
.relax-page .card-image-link:hover img { transform: none; }
.relax-page .card > img { transition: transform .35s ease; filter: saturate(.86) contrast(.97) sepia(.055); }
.relax-page .card > img:hover { filter: saturate(.86) contrast(.97) sepia(.055); transform: scale(1.035); }
@media (prefers-reduced-motion: reduce) { .relax-page .card-image-link, .relax-page .card > img { transition: none; } }
