:root {
    --bg: #f8f5ef;
    --text: #24211e;
    --hover: #8b6f47;

    --serif: 'Playfair Display', serif;
    --sans: 'Plus Jakarta Sans', sans-serif;
}


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

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;

    background: var(--bg);
    color: var(--text);

    font-family: var(--sans);
}


/* ========================================
   HEADER
======================================== */

header {
    position: relative;

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

    margin: 0 auto;

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

    z-index: 100;
}


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

.logo {
    position: absolute;

    left: 0;
    top: 50%;

    transform: translateY(-50%);

    font-family: var(--serif);

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

    letter-spacing: 1.5px;

    cursor: pointer;
}


/* ========================================
   NAVIGATION
======================================== */

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

    gap: 55px;
}

nav a {
    position: relative;

    padding: 8px 0;

    color: #171512;

    text-decoration: none;

    font-family: var(--serif);

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

    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--hover);
}

nav a.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 1px;

    background: var(--text);
}


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

.nav-icons {
    position: absolute;

    right: -90px;
    top: 50%;

    transform: translateY(-50%);
}

.profile-btn {
    width: 30px;
    height: 30px;

    padding: 0;

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

    background: transparent;

    border: none;

    text-decoration: none;

    cursor: pointer;
}

.profile-btn svg {
    width: 22px;
    height: 22px;

    fill: none;

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

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

.profile-btn:hover svg {
    stroke: var(--hover);
}


/* ========================================
   MAIN FIGMA GRID
======================================== */

.plans-grid {
    position: relative;

    width: 88%;
    max-width: 1050px;

    height: 600px;

    margin: 50px auto 40px;

    background: var(--bg);

    overflow: hidden;

    border-radius: 15px;
}


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

.plan-card {
    position: absolute;

    display: flex;

    overflow: hidden;

    color: #ffffff;
    text-decoration: none;

    background-size: cover;
    background-repeat: no-repeat;

    transition:
        filter 0.25s ease,
        transform 0.25s ease;
}

.plan-card:hover {
    filter: brightness(0.96);
}


/* ========================================
   RELAX
======================================== */

.relax {
    left: 0;
    top: 0;

    width: 61%;
    height: 52%;

    background-image: url("./images/relaxx.avif");
    background-position: center;

    clip-path: polygon(
        round 15px,
        0% 0%,
        100% 0%,
        82% 100%,
        0% 76%
    );
}


/* ========================================
   CULTURE
======================================== */

.culture {
    right: 0;
    top: 0;

    width: 43%;
    height: 59%;

    background-image: url("images/culture.jpg");
    background-position: center;

    clip-path: polygon(
        round 15px,
        26% 0%,
        100% 0%,
        100% 100%,
        0% 79%
    );
}


/* ========================================
   ADVENTURE
======================================== */

.adventure {
    left: 0;
    bottom: 0;

    width: 48%;
    height: 51%;

    background-image: url("images/adventure-cover-v2.png");
    background-position: center bottom;

    clip-path: polygon(
        round 15px,
        0% 0%,
        100% 18%,
        81% 100%,
        0% 100%
    );
}


/* ========================================
   SOMETHING TO DO
======================================== */

.activities {
    right: 0;
    bottom: 0;

    width: 56%;
    height: 45%;

    background-image: url("images/something to do.jpeg");
    background-position: center;

    clip-path: polygon(
        round 15px,
        18% 0%,
        100% 20%,
        100% 100%,
        0% 100%
    );
}


/* ========================================
   IMAGE OVERLAY
======================================== */

.plan-card::before {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 1;

    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.40) 0%,
        rgba(0, 0, 0, 0.17) 35%,
        rgba(0, 0, 0, 0.03) 70%,
        transparent 85%
    );
}


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

.card-content {
    position: relative;

    z-index: 2;

    align-self: center;

    max-width: 300px;
}


/* RELAX */

.relax .card-content {
    margin-left: 55px;
    margin-top: 15px;
}


/* CULTURE */

.culture .card-content {
    margin-left: 105px;
    margin-top: 0;
}


/* ADVENTURE */

.adventure .card-content {
    margin-left: 32px;
    margin-top: 25px;
}


/* SOMETHING */

.activities .card-content {
    margin-left: 110px;
    margin-top: 25px;
}


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

.category-icon {
    width: 19px;
    height: 19px;

    margin-bottom: 7px;

    fill: none;

    stroke: rgba(255, 255, 255, 0.95);

    stroke-width: 1;

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


/* ========================================
   TITLES - FIGMA STYLE
======================================== */

.plan-card h2 {
    margin: 0 0 3px;

    color: #ffffff;

    font-family: 'Playfair Display', Georgia, serif;

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

    line-height: 0.95;

    letter-spacing: -0.7px;

    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.28);
}


/* SOMETHING TO DO TITLE */

.activities h2 {
    font-family: 'Playfair Display', Georgia, serif;

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

    line-height: 1;

    letter-spacing: -0.7px;

    white-space: nowrap;
}


/* ========================================
   DESCRIPTION - FIGMA STYLE
======================================== */

.plan-card p {
    margin: 4px 0 9px;

    color: #ffffff;

    font-family: 'Playfair Display', Georgia, serif;

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

    line-height: 1.15;

    letter-spacing: -0.1px;

    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.30);
}


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

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

    margin-top: 7px;

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

    background: #ffffff;
    color: #111111;

    border-radius: 50%;

    font-family: Arial, sans-serif;

    font-size: 16px;
}


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

@media (max-width: 768px) {

    header {
        width: calc(100% - 30px);
        height: 65px;
    }

    .logo {
        font-size: 18px;
    }

    nav {
        display: none;
    }

    .nav-icons {
        right: 0;
    }

    .plans-grid {
        width: calc(100% - 30px);

        height: auto;

        margin-top: 30px;

        display: flex;
        flex-direction: column;

        gap: 10px;

        overflow: visible;

        background: transparent;
    }

    .plan-card {
        position: relative;

        left: auto;
        right: auto;
        top: auto;
        bottom: auto;

        width: 100%;
        height: 240px;

        clip-path: none;

        border-radius: 15px;
    }

    .relax .card-content,
    .culture .card-content,
    .adventure .card-content,
    .activities .card-content {
        margin-left: 30px;
        margin-top: 0;
    }

    .plan-card h2 {
        font-size: 32px;
    }

    .activities h2 {
        font-size: 28px;
    }
}
/* ========================================
   MY TRIPS
======================================== */

.my-trips-section {
    width: min(1100px, 90%);
    margin: 80px auto 100px;
    padding-top: 50px;
    border-top: 1px solid #d8d3c8;
}

.my-trips-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 35px;
}

.section-label {
    display: block;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 8px;
    color: #817b70;
}

.my-trips-header h2 {
    font-family: "Playfair Display", serif;
    font-weight: 500;
    font-size: 42px;
    margin: 0 0 7px;
    color: #171713;
}

.my-trips-header p {
    font-family: "Plus Jakarta Sans", sans-serif;
    margin: 0;
    font-size: 14px;
    color: #777268;
}

.create-trip-btn {
    text-decoration: none;
    background: #17392d;
    color: white;
    padding: 14px 24px;
    border-radius: 6px;

    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 13px;

    display: flex;
    align-items: center;
    gap: 18px;

    transition: 0.25s;
}

.create-trip-btn:hover {
    transform: translateY(-2px);
    background: #102b22;
}


/* TRIPS GRID */

.saved-trips-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}


/* EMPTY STATE */

.no-trips {
    grid-column: 1 / -1;

    min-height: 190px;

    border: 1px solid #d9d5cb;
    border-radius: 10px;

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

    text-align: center;

    padding: 30px;

    background: #faf9f5;
}

.no-trips h3 {
    font-family: "Playfair Display", serif;
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 8px;
}

.no-trips p {
    font-family: "Plus Jakarta Sans", sans-serif;
    color: #777268;
    font-size: 13px;
    margin: 0 0 18px;
}

.no-trips a {
    font-family: "Plus Jakarta Sans", sans-serif;
    color: #17392d;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}


/* SAVED TRIP CARD - سنستخدمها بالخطوة التالية */

.saved-trip-card {
    border: 1px solid #d9d5cb;
    border-radius: 10px;
    padding: 22px;
    background: #faf9f5;
}

.saved-trip-card h3 {
    font-family: "Playfair Display", serif;
    font-size: 23px;
    font-weight: 500;
    margin: 0 0 8px;
}

.saved-trip-card p {
    font-family: "Plus Jakarta Sans", sans-serif;
    color: #777268;
    font-size: 13px;
}


/* RESPONSIVE */

@media (max-width: 850px) {

    .saved-trips-container {
        grid-template-columns: 1fr 1fr;
    }

}

@media (max-width: 600px) {

    .my-trips-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .saved-trips-container {
        grid-template-columns: 1fr;
    }

}
/* ===== FINAL FIX: MY TRIPS BELOW CARDS ===== */

.plans-grid {
    display: block !important;
    position: relative !important;
    height: 600px !important;
    min-height: 600px !important;
    overflow: visible !important;
    margin-bottom: 120px !important;
}

.my-trips-section {
    display: block !important;
    position: relative !important;
    clear: both !important;

    width: 88% !important;
    max-width: 1050px !important;

    margin: 0 auto 100px !important;
    padding: 50px 0 !important;

    visibility: visible !important;
    opacity: 1 !important;

    border-top: 1px solid #d8d3c8 !important;
}

html,
body {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}
/* ========================================
   SAVED TRIP CARD IMAGE
======================================== */

.saved-trip-card {
    padding: 0;
    overflow: hidden;
    background: #faf9f5;
}


/* IMAGE AREA */

.saved-trip-image {
    position: relative;

    width: 100%;
    height: 190px;

    overflow: hidden;

    background: #ddd7cb;
}


/* ACTUAL IMAGE */

.saved-trip-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 0.35s ease;
}


/* SMALL HOVER EFFECT */

.saved-trip-card:hover .saved-trip-image img {
    transform: scale(1.03);
}


/* DAYS BADGE */

.trip-days-badge {
    position: absolute;

    top: 14px;
    left: 14px;

    padding: 7px 11px;

    background: rgba(250, 249, 245, 0.92);
    color: #24211e;

    border-radius: 4px;

    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 11px;
    font-weight: 500;

    backdrop-filter: blur(4px);
}


/* CONTENT UNDER IMAGE */

.saved-trip-content {
    padding: 20px 22px 22px;
}


/* TOP ROW */

.saved-trip-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 8px;
}


/* JORDAN JOURNEY LABEL */

.trip-label {
    font-family: "Plus Jakarta Sans", sans-serif;

    font-size: 10px;
    letter-spacing: 1.5px;

    color: #817b70;
}


/* DELETE BUTTON */

.delete-trip-btn {
    width: 27px;
    height: 27px;

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

    border: 1px solid #d8d3c8;
    border-radius: 50%;

    background: transparent;
    color: #6e695f;

    font-size: 16px;

    cursor: pointer;
}


/* TRIP TITLE */

.saved-trip-card h3 {
    margin: 0 0 10px;

    font-family: "Playfair Display", serif;

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

    color: #24211e;
}


/* PLACES */

.trip-places {
    min-height: 38px;

    margin: 0 0 14px;

    line-height: 1.5;
}


/* META */

.trip-meta {
    display: flex;
    gap: 10px;

    margin-bottom: 18px;

    font-family: "Plus Jakarta Sans", sans-serif;

    font-size: 11px;

    color: #817b70;
}


/* VIEW PLAN */

.view-trip-btn {
    width: 100%;

    padding: 11px 14px;

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

    border: none;
    border-radius: 4px;

    background: #17392d;
    color: white;

    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 12px;

    cursor: pointer;

    transition: 0.25s ease;
}


.view-trip-btn:hover {
    background: #102b22;
}


/* FALLBACK IF THERE IS NO IMAGE */

.saved-trip-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;

    background: #e4ded2;
}


.trip-placeholder {
    font-family: "Playfair Display", serif;

    font-size: 25px;
    letter-spacing: 2px;

    color: #8b8377;
}


/* MOBILE */

@media (max-width: 600px) {

    .saved-trip-image {
        height: 210px;
    }
}
