/* --- style.css --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

#navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 65px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    z-index: 1000;
}
.full-logo {
    margin-top: 18px;
    height: 40px;
    width: auto;
} 

.logo-area { flex: 1; }
.logo-area a { text-decoration: none; }
.logo-area h1 {
    font-family: 'Oleo Script Swash Caps', cursive;
    color: #EB6753;
    font-size: 32px;
    margin: 0;
    white-space: nowrap;
}

.logo-area h1:hover {
    transform: translateY(-3px) scale(1.05);
    transition: all 0.3s ease;
    filter: drop-shadow(0 5px 15px rgba(235, 103, 83, 0.4));
}

.nav-wrapper { display: contents; }

.nav-center {
    flex: 2; 
    display: flex;
    justify-content: space-evenly;
    margin-left: 100px;
}

.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 30px; 
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    width: 100%; 
    justify-content: space-evenly;
}

/* --- LINKS & UNDERLINE --- */
.nav-links li a {
    display: inline-block;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    position: relative;
    transition: all 0.3s ease; /* CONTROL SPEED HERE */
}
.signin-btn {
    background: #EB6753;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}

.signin-btn:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 5px 15px rgba(235, 103, 83, 0.4));
}

/* Hide elements by default for the JS toggle */
.hidden {
    display: none !important;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: #EB6753;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links li a:hover{
    color: #EB6753;
    transform: translateY(-3px) scale(1.1); 
    filter: drop-shadow(0 5px 15px rgba(235, 103, 83, 0.4));
}
.nav-links li a.active {
    color: #EB6753;
    transform: scale(1.03); /* CONTROL MOVEMENT & SIZE HERE */
    filter: drop-shadow(0 5px 15px rgba(235, 103, 83, 0.4));
}

.nav-links li a.active:hover {
    transform: translateY(-3px) scale(1.1); /* CONTROL MOVEMENT & SIZE HERE */
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 50%; 
}

/* --- ICON LINKS FIX --- */
.icon-link {
    display: inline-block;
    text-decoration: none;
    /* Remove transition from here, it's the wrapper */
}

.icon-link i {
    font-size: 24px;
    color: #EB6753;
    display: inline-block;
    /* The transition must be on the element that is actually moving */
    transition: all 0.3s ease; 
}

.logo-area {
    flex: 0 1 auto; /* Don't let it hog space */
}
.logo-area a {
    display: inline-block; /* Crucial: restricts link area to the text only */
}

/* Apply the hover effect to the 'i' tag when the 'a' is hovered */
.icon-link:hover i {
    transform: translateY(-3px) scale(1.1); /* CONTROL ICON GROWTH HERE */
    filter: drop-shadow(0 5px 15px rgba(235, 103, 83, 0.4));
}

.icon-link:hover .fa-heart::before { content: "\f004"; font-weight: 900; }
.icon-link:hover .fa-circle-user::before { content: "\f2bd"; font-weight: 900; }


/* --- MOBILE VIEW --- */

.menu-open, .menu-close { display: none;}

.menu-open, .menu-close { display: none;}


@media (max-width: 900px) {
    #navbar {
        top: 0; left: 0; transform: none;
        width: 100%; border-radius: 0;
        height: 60px; padding: 0 20px;
        justify-content: space-between;
    }
    .full-logo {
        margin-left: 0; /* Reset */
        margin-top: 0; /* Reset desktop margin so it centers vertically */
        height: 32px; /* Slightly scaled down to fit the mobile navbar perfectly */
    }
    .logo-area {
        flex: none; /* Stops it from stretching */
        display: flex;
        align-items: center;
    }

    .nav-wrapper {
        position: fixed;
        right: -100%;
        top: 0;
        width: 280px;
        height: 100vh;
        background: #fff;
        display: flex;
        flex-direction: column;
        padding: 80px 30px;
        transition: 0.4s;
    }

    .nav-wrapper.active { right: 0; }

    .nav-center, .nav-right {
        flex: none;
        width: 100%;
        justify-content: flex-start;
        margin: 0;
        margin-top: -22px;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
        width: 100%;
    }

    /* FIX: ENABLING UNDERLINE ON MOBILE */
    .nav-links li a::after {
        display: block; /* Make sure it's not hidden */
    }

    .nav-right {
        flex-direction: row;
        justify-content: flex-start;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid #eee;
        display: flex;
        gap: 20px;
    }

    .menu-open { display: block; font-size: 24px; cursor: pointer; }
    .menu-close {
        display: block;
        position: relative; top: -60px; right: -200px;
        font-size: 24px; cursor: pointer;
    }
}
/* ───── SHARED PROPERTY CARDS ───── */
.property-card {
    background: #fff; border-radius: 20px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer; display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
    min-width: 320px; /* Important for home carousel */
    flex-shrink: 0;
}
.property-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.13); }
.card-image {
    position: relative; height: 210px; overflow: hidden;
    background: #f0f0f0;
}
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.property-card:hover .card-image img { transform: scale(1.06); }
.card-no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.cat-label {
    position: absolute; top: 14px; left: 14px;
    background: rgba(0,0,0,0.48); backdrop-filter: blur(6px);
    color: #fff; padding: 4px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 600; text-transform: uppercase;
}
/* ───── SHARED PROPERTY CARDS ───── */
.card-heart {
    position: absolute; 
    top: 12px; 
    right: 12px;
    background: transparent; 
    width: 36px; /* Slightly larger to give the icon room to bounce */
    height: 36px; 
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    cursor: pointer; 
    z-index: 2;
    /* Removed transition from here, just like .icon-link */
}

.card-heart i { 
    color: #EB6753; 
    font-size: 24px; /* Scaled slightly to fit the circle */
    display: inline-block;
    transition: all 0.3s ease; /* The transition lives on the moving element */
}

/* Apply the hover effect to the 'i' tag when the background is hovered */
.card-heart:hover i {
    transform: translateY(-2px) scale(1.15); /* Controlled growth and bounce */
    filter: drop-shadow(0 4px 10px rgba(235, 103, 83, 0.4));
}

/* Magically fill the heart to solid on hover, just like the nav link! */
.card-heart:hover .fa-heart::before { 
    content: "\f004"; 
    font-weight: 900; 
}
.avail-strip {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 5px 14px; font-size: 11px; font-weight: 700; color: #fff; text-align: right; text-transform: capitalize;
}
.avail-strip.available { background: rgba(46,204,113,0.82); }
.avail-strip.unavailable, .avail-strip.booked { background: rgba(231,76,60,0.82); }

.card-content { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.card-content h3 { font-size: 17px; font-weight: 700; color: #1a1a1a; line-height: 1.3; margin: 0; }
.card-location { display: flex; align-items: center; gap: 6px; color: #888; font-size: 13px; margin: 0; }
.card-location i { color: #EB6753; }
.card-features { display: flex; gap: 16px; margin: 0; padding: 0;}
.feature { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #777; }
.feature i { color: #EB6753; font-size: 12px; }
.card-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: auto; padding-top: 12px; border-top: 1px solid #f5f5f5;
}
.card-price { font-size: 20px; font-weight: 800; color: #EB6753; margin: 0; }
.card-price span { font-size: 13px; font-weight: 400; color: #aaa; text-transform: lowercase; }
.details-btn {
    background: #EB6753; color: #fff; border: none;
    padding: 9px 20px; border-radius: 20px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    transition: all 0.3s; font-family: 'Inter', sans-serif;
}
.details-btn:hover { transform: translateY(-2px); filter: drop-shadow(0 5px 12px rgba(235,103,83,0.4)); }
/* ───── TOAST NOTIFICATIONS ───── */
#toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none; /* Let clicks pass through */
}

.toast {
    background: rgba(26, 47, 30, 0.95); /* var(--green-dark) */
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast i { color: #EB6753; font-size: 16px; }
.toast a { color: #e8a94a; text-decoration: underline; pointer-events: auto; margin-left: 5px; }