:root {
    --primary: #007bff; --secondary: #28a745; --dark: #1a1a1b;
    --grey: #5f6368; --light: #f4f7f6; --white: #ffffff;
    --accent: #ff5722;
}

body { font-family: 'Poppins', sans-serif; margin: 0; background-color: var(--light); color: var(--dark); line-height: 1.6; }
    .header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid #ddd;position: relative; }

        .logo { font-size: 24px; font-weight: 800; color: var(--primary-blue); justify-content: center;align-items: center;text-decoration-line: none;position: absolute;left: 30%;}

        .menu-trigger { background: none; border: none; font-size: 24px; cursor: pointer; }

@media (max-width: 768px) {

    .logo {

        left: 20%;

        font-size: 20px;

    }

}



@media (max-width: 480px) {

    .logo {

        left: 15%;

        font-size: 18px;

    }

}

       #l1 { color: var(--primary); }

#l2 { color: var(--secondary); }



      /* #sideDrawer {

    position: fixed;

    top: 0;

    left: -300px; 

    width: 300px;

    height: 100%;

    background-color: #ffffff;

    transition: 0.3s ease;

    z-index: 9999; 

    box-shadow: 2px 0 5px rgba(0,0,0,0.2);

}
*/

/* የተደበቀ (Default) */
#sideDrawer {
    position: fixed;
    top: 0;
    left: -300px; /* ከስክሪኑ ውጭ */
    transition: 0.3s ease; /* ለስላሳ እንቅስቃሴ እንዲኖረው */
    z-index: 9999;
background-color: #ffffff;
 height: 100%;
 box-shadow: 2px 0 5px rgba(0,0,0,0.2);
width: 300px;
}

/* የሚታይ (Active) */
#sideDrawer.active {
    left: 0; /* ወደ ስክሪኑ ሲገባ */
}

/* የጀርባው ጨለማ (Overlay) - ሲዘጋ አይታይም */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
}

/* Overlay-ው ሲከፈት እንዲታይ */
.overlay.active {
    display: block;
}
/* ይህ ክፍል ነው ሜኑውን ወደ ስክሪኑ የሚያመጣው */

#sideDrawer.active {

    left: 0;

}

        .drawer-header { padding: 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; }



    /* --- Zillow Style Menu Items --- */

        .menu-section { border-bottom: 1px solid #eee; }

        .toggle-btn {

            width: 100%; padding: 20px; background: none; border: none;

            display: flex; justify-content: space-between; align-items: center;

            font-size: 18px; font-weight: 500; cursor: pointer; color: var(--dark-text);

        }

        /* Zillow arrow style */

        .arrow-icon { color: var(--primary-blue); font-size: 16px; transition: 0.3s; }

        .menu-section.active .arrow-icon { transform: rotate(180deg); }



        .submenu { background: #f9f9f9; display: none; padding: 10px 0; }

        .menu-section.active .submenu { display: block; }

        .sub-link { padding: 15px 40px; display: block; text-decoration: none; color: #555; font-size: 16px; }

.nav-right {

    display: flex;

    align-items: center;

    gap: 20px; /* በመካከላቸው ያለ ክፍተት */

}



/* የአዝራር እና ሊንክ ስታይል */

#lang-btn, .dash-link {

    padding: 4px 10px;

    border-radius: 10px;

    border: 1px solid #0056b3;

    background: #fff;

    color: #0056b3;

    text-decoration: none;

    cursor: pointer;

    font-weight: 300;

}



.dash-link:hover {

    background: #0056b3;

    color: #fff;

}

/* ለሞባይል እና ለጠባብ ስክሪኖች */

@media (max-width: 600px) {

    /* የHeader የጎን ክፍተትን (Padding) ይቀንሳል */

    .main-header {

        padding: 10px 15px !important;

    }



    /* በመካከላቸው ያለውን ክፍተት ይቀንሳል */

    .nav-right {

        gap: 8px;

    }



    /* የአዝራር እና የሊንክ መጠን ይቀንሳል */

    .dash-link, #langBtn {

        padding: 6px 10px;

        font-size: 12px;

    }



    /* ሎጎው በስልክ ሲያንስ እንዲያምር */

    .logo {

        font-size: 18px;

    }

}

/* ስልክ ላይ ሙሉ ስክሪን እንዲሆን */

@media (max-width: 600px) {

    .side-drawer { width: 85%; }

}



/* ይህ Class በJS ሲጨመር ሜኑ ይከፈታል */

.side-drawer.open { left: 0; }



.drawer-header { padding: 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; }



/* Menu Items */

.menu-section { border-bottom: 1px solid #eee; }



.toggle-bttn {
    background-color:#007bff; /* ግልጽነት ያለው */
    backdrop-filter: blur(10px); /* ብርጭቆ መሰል ተጽዕኖ */
    
    border: 3px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 15px;
    border-radius: 10px; /* ክብ ቅርጽ */
    cursor: pointer;
font-size: 18px;
    font-weight: 800;
    transition: all 0.3s ease; /* ለስላሳ እንቅስቃሴ */
    
}



/* Arrow Rotation */

.arrow-icon { color: var(--primary-blue); font-size: 16px; transition: 0.3s; }

.menu-section.active .arrow-icon { transform: rotate(180deg); }



.submenu { background: #f9f9f9; display: none; padding: 10px 0; }

.menu-section.active .submenu { display: block; }

.sub-link { padding: 12px 40px; display: block; text-decoration: none; color: #555; font-size: 15px; }

.sub-link:hover { color: var(--primary-blue); background: #eee; }

#overlay {

    display: none;

    position: fixed;

    top: 0; left: 0; width: 100%; height: 100%;

    background: rgba(0,0,0,0.5);

}

#overlay.active {

    display: block;

}
/* MODALS */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); }
.modal-content { background: var(--white); margin: 5% auto; padding: 30px; border-radius: 20px; width: 90%; max-width: 450px; position: relative; text-align: center; }
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 1.5rem; cursor: pointer; }

/* HERO */
.hero { background: linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1582407947304-fd86f028f716?auto=format&fit=crop&w=1200'); height: 300px; background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: center; align-items: center; color: white; text-align: center; }

/* SEARCH & FILTERS */
.search-wrapper { max-width: 800px; margin: -30px auto 20px; padding: 0 20px; }
.search-input { width: 100%; padding: 18px 30px; border-radius: 50px; border: none; box-shadow: 0 10px 25px rgba(0,0,0,0.1); outline: none; box-sizing: border-box; }

/* GRIDS & CARDS */
.section-container { max-width: 1200px; margin: 40px auto; padding: 0 5%; }
.section-title { font-size: 1.8rem; margin-bottom: 25px; border-left: 5px solid var(--primary); padding-left: 15px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { background: white; border-radius: 15px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.05); padding: 15px; position: relative; }

.tag { position: absolute; top: 15px; right: 15px; padding: 5px 10px; border-radius: 5px; color: white; font-size: 0.8rem; font-weight: bold; }
.tag-sale { background: var(--accent); }
.tag-rent { background: var(--secondary); }

.btn-call { display: block; background: var(--secondary); color: white; text-align: center; padding: 10px; border-radius: 5px; text-decoration: none; font-weight: bold; margin-top: 15px; }
/* Developer Card Styles */
.dev-logo-container {
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.dev-logo {
    max-height: 100%;
    max-width: 150px;
    object-fit: contain;
    mix-blend-mode: multiply; /* Removes white boxes if logos are PNG/JPG with white bg */
}

/* Info Modal Styling */
.info-popup {
    max-width: 450px !important;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.btn-info {
    background: #006aff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 5px;
    width: 100%;
    font-weight: bold;
    transition: 0.3s;
}
.btn-info:hover {
    background: #0056d2;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.btn-submit {
    background-color: #d4af37; /* Gold color */
    color: black;
    border: none;
    padding: 12px 20px;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.btn-submit:hover {
    background-color: #000;
    color: #d4af37;
}
/* Agent Registration Specific Styles */


.modal {
    display: none; /* መጀመሪያ ተደብቆ ይቆያል */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* የጀርባው ጨለም እንዲል */
    backdrop-filter: blur(5px); /* ጀርባውን ትንሽ ያደበዝዘዋል (ዘመናዊ ያደርገዋል) */
    
    /* SCROLL እንዲያደርግ የሚያስችለው ዋናው ኮድ */
    overflow-y: auto; 
    padding: 20px 10px;
}

/* 2. የፎርሙ ካርድ (The White Box) */
.modal-content.profile-card {
    background-color: #ffffff;
    margin: 20px auto;
    padding: 30px;
    border-radius: 15px;
    width: 100%;
    max-width: 550px; /* የሳጥኑ ስፋት */
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.4s ease-out; /* ሲመጣ ስሙዝ እንዲሆን */
}

/* 3. የመዝጊያ (X) ምልክት */
.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover {
    color: #e74c3c;
}

/* 4. የፎርሙ ራስጌ (Header) */
.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-header i {
    font-size: 40px;
    color: #27ae60;
    margin-bottom: 10px;
}

.modal-header h2 {
    margin: 5px 0;
    color: #333;
}

.modal-header p {
    color: #777;
    font-size: 14px;
}

/* 5. የፎርሙ ግብአቶች (Input Groups) */
.input-group {
    margin-bottom: 15px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #444;
}

.input-group label i {
    margin-right: 5px;
    color: #27ae60;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: 0.3s;
    box-sizing: border-box; /* Padding ስፋቱን እንዳይጨምረው */
}

.input-group input:focus {
    border-color: #27ae60;
    outline: none;
    box-shadow: 0 0 5px rgba(39, 174, 96, 0.2);
}

/* 6. ጎን ለጎን ለሚቀመጡ ግብአቶች (Full Name & Company) */
.form-row {
    display: flex;
    gap: 15px;
}

.form-row .input-group {
    flex: 1;
}

/* 7. ዋናው በተን (Submit Button) */
.btn-main {
    width: 100%;
    padding: 14px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: 0.3s;
}

.btn-main:hover {
    background-color: #219150;
    transform: translateY(-2px);
}

/* 8. አኒሜሽን (Slide Down) */
@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 9. ለስልክ ማስተካከያ (Responsive) */
@media screen and (max-width: 600px) {
    .form-row {
        flex-direction: column; /* በስልክ ጊዜ አንዱ በሌላው ስር እንዲሆን */
        gap: 0;
    }
    
    .modal-content.profile-card {
        padding: 20px;
        margin: 10px;
    }
}
/* 1. የሞዳሉ ዋና መሸፈኛ (ከቀድሞው ጋር ተመሳሳይ) */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    overflow-y: auto; /* ረጅም ከሆነ Scroll እንዲያደርግ */
    padding: 20px 10px;
}

/* 2. የፎርሙ ነጭ ካርድ (Modal Content) */
.modal-content {
    background-color: #ffffff;
    margin: 20px auto;
    padding: 30px;
    border-radius: 15px;
    width: 100%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.4s ease-out;
}

/* 3. ርዕስ እና መስመር */
.modal-content h2 {
    color: #333;
    text-align: center;
    margin-bottom: 10px;
    font-size: 24px;
}

.modal-content hr {
    border: 0;
    border-top: 1px solid #eee;
    margin-bottom: 20px;
}

/* 4. የመዝጊያ (X) ምልክት */
.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover {
    color: #e74c3c;
}

/* 5. የፎርሙ ግሩፖች (Form Groups) */
.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #444;
}

/* 6. ኢንፑቶች፣ ሰሌክቶች እና ቴክስት ኤሪያዎች */
.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="file"],
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* ፎከስ ሲደረግ ከለሩ እንዲቀየር */
.form-group input:focus,
.form-group select:focus {
    border-color: #27ae60;
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 8px rgba(39, 174, 96, 0.15);
}

/* 7. ፖስት ማድረጊያ በተን (Submit Button) */
.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: #27ae60; /* የ Agent Registration አይነት ከለር */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s ease;
}

.btn-submit:hover {
    background-color: #219150;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 8. ልዩ ለሆኑ የፋይል ኢንፑቶች */
input[type="file"] {
    background: #eee;
    padding: 10px;
    cursor: pointer;
}

/* 9. አኒሜሽን */
@keyframes slideDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 10. ለስልክ ማስተካከያ */
@media screen and (max-width: 600px) {
    .modal-content {
        padding: 20px;
        margin: 10px;
    }
    
    .modal-content h2 {
        font-size: 20px;
    }
}
 /* FOOTER */
footer { background: var(--dark); color: white; padding: 50px 5% 20px; margin-top: 50px; text-align: center; }
.social-links { margin: 20px 0; display: flex; justify-content: center; gap: 25px; font-size: 1.4rem; }
.social-links i { cursor: pointer; transition: 0.3s; }
.social-links i:hover { color: var(--primary); }
/* 1. የጀርባው ክፍል (Overlay) */
.modal {
    display: none; /* መጀመሪያ ተደብቆ እንዲቆይ */
    position: fixed;
    z-index: 2000; /* ከሁሉም በላይ እንዲሆን */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* የጀርባው ጨለም እንዲል */
    backdrop-filter: blur(5px); /* በስተጀርባ ያለውን ነገር እንዲያደበዝዝ (ዘመናዊ ያደርገዋል) */
}

/* 2. የPop-up ሳጥኑ (Modal Content) */
.modal-content {
    background-color: #fff;
    margin: 10% auto; /* ከላይ 10% ዝቅ ብሎ መሃል ላይ */
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s ease-out; /* ሲመጣ እንዲንሸራተት */
}

/* የመምጫ አኒሜሽን */
@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 3. የመዝጊያ ምልክቱ (Close Button) */
.close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #888;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover {
    color: #e74c3c;
}

/* 4. የፎርሙ አቀማመጥ */
.modal h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 24px;
}

.modal form input, 
.modal form select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box; /* ፎርሙ ከሳጥኑ እንዳይወጣ */
    font-size: 16px;
}

.modal form input:focus {
    border-color: #27ae60;
    outline: none;
    box-shadow: 0 0 5px rgba(39, 174, 96, 0.2);
}

/* 5. የተግባር በተን (Action Button) */
.btn-action {
    width: 100%;
    padding: 14px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-action:hover {
    background-color: #219150;
    transform: translateY(-2px);
}

/* 6. ሊንኮች (Switch between Login/Signup) */
.modal p {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.link {
    color: #3498db;
    cursor: pointer;
    font-weight: bold;
    text-decoration: underline;
}

.link:hover {
    color: #2980b9;
}
.pricing-banner {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fff9db 0%, #fff3bf 100%);
    border: 1px solid #fab005;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(252, 196, 25, 0.2);
    animation: slideIn 0.5s ease;
}

.banner-icon {
    background: #fab005;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.banner-text span {
    display: block;
    font-size: 12px;
    font-weight: bold;
    color: #8a6d3b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.premium-link {
    color: #27ae60;
    font-weight: 700;
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.premium-link:hover {
    color: #219150;
    gap: 12px; /* ቀስቷ ትንሽ ወደ ፊት ትንቀሳቀሳለች */
}

.premium-link i {
    font-size: 13px;
}

/* ለመግቢያ የሚሆን አኒሜሽን */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* ቤቶቹን ጎን ለጎን ያደርጋል */
    gap: 20px;
    padding: 20px;
}

/* ማስታወቂያው ብቻ ሙሉ ስፋት እንዲኖረው ያደርጋል */
.banner-ad {
    grid-column: 1 / -1; 
    width: 100%;
}
/* --- Premium Ad Card — glass / native placements (homepage grid + legacy) --- */

.premium-ad-card {
    grid-column: 1 / -1;
    width: 100%;
    position: relative;
    overflow: hidden;
    margin: clamp(14px, 2vw, 22px) 0;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    border: 1px solid rgb(226 232 240 / 0.85);
    background: rgb(255 255 255 / 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
        0 1px 0 rgb(255 255 255 / 0.75) inset,
        0 12px 40px -12px rgb(15 23 42 / 0.12),
        0 4px 12px rgb(0 106 255 / 0.06);
    color: #0f172a;
    padding: clamp(1.75rem, 3vw, 2.35rem);
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.38s ease;
}

@media (prefers-reduced-motion: reduce) {
    .premium-ad-card {
        transition: none;
    }
}

/* subtle brand halo (no palette variables added) */
.premium-ad-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background:
        radial-gradient(120% 80% at 0% 100%, rgb(0 106 255 / 0.11), transparent 55%),
        radial-gradient(80% 60% at 100% 0%, rgb(232 242 255 / 0.8), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.premium-ad-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 1px 0 rgb(255 255 255 / 0.8) inset,
        0 20px 50px -16px rgb(15 23 42 / 0.16),
        0 8px 20px rgb(0 106 255 / 0.1);
}

.premium-ad-card > *,
.premium-ad-card .ad-content-wrapper {
    position: relative;
    z-index: 1;
}

/* Sponsored Badge (generic premium layout — light glass cards) */
.ad-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0053b3;
    border: 1px solid rgb(0 106 255 / 0.28);
    background: rgb(255 255 255 / 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgb(255 255 255 / 0.75) inset;
    z-index: 2;
}

/* Content Layout */
.ad-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    z-index: 2;
}

.ad-text-section {
    flex: 1;
}

.ad-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.ad-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 24px;
    max-width: 400px;
}

/* Button Styling */
.ad-cta-btn {
    background: linear-gradient(135deg, #006aff 0%, #0053b3 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, filter 0.3s ease;
    box-shadow: 0 6px 18px rgb(0 106 255 / 0.28);
}

.ad-cta-btn:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgb(0 106 255 / 0.35);
}

/* Image Section */
.ad-image-section {
    flex: 0 0 300px;
}

.ad-side-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 14px 32px -10px rgb(15 23 42 / 0.18);
    border: 1px solid rgb(255 255 255 / 0.75);
}

/* --- Responsive Design (ለሞባይል) --- */

@media (max-width: 900px) {
    .ad-content-wrapper {
        flex-direction: column-reverse;
        text-align: center;
    }

    .ad-badge {
        margin: 0 auto 20px auto;
    }

    .ad-text-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .ad-title {
        font-size: 1.5rem;
    }

    .ad-image-section {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
    }
    
    .ad-side-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .premium-ad-card:not(.premium-ad-sponsor) {
        padding: 24px;
        margin: 15px;
    }

    .ad-title {
        font-size: 1.25rem;
    }

    .ad-subtitle {
        font-size: 0.95rem;
    }
}

/* —— Native sponsored strip (glass; markup from main.js) —— */
.premium-ad-card.premium-ad-sponsor {
    grid-column: 1 / -1;
    width: 100%;
    margin: clamp(12px, 1.5vw, 20px) 0;
    padding: 0;
    border-radius: 22px;
    border: 1px solid rgb(226 232 240 / 0.92);
    background: rgb(255 255 255 / 0.48);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    color: #0f172a;
    box-shadow:
        0 1px 0 rgb(255 255 255 / 0.88) inset,
        0 10px 42px -14px rgb(15 23 42 / 0.12),
        0 2px 10px rgb(0 106 255 / 0.06);
    overflow: hidden;
    display: block;
}

.premium-ad-card.premium-ad-sponsor::before {
    display: block;
    background:
        radial-gradient(95% 95% at 8% 92%, rgb(0 106 255 / 0.1), transparent 58%),
        radial-gradient(72% 72% at 92% 12%, rgb(232 242 255 / 0.82), transparent 52%);
}

.premium-ad-sponsor .ad-sponsor-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: clamp(20px, 3vw, 32px);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.premium-ad-sponsor .ad-sponsor-text {
    flex: 1 1 0;
    min-width: 0;
}

.premium-ad-sponsor .ad-sponsor-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0053b3;
    border: 1px solid rgb(0 106 255 / 0.28);
    background: rgb(255 255 255 / 0.58);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgb(255 255 255 / 0.85) inset;
}

.premium-ad-sponsor .ad-sponsor-pill-icon {
    font-size: 0.68rem;
    opacity: 0.88;
}

.premium-ad-sponsor .ad-sponsor-title {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: clamp(1.35rem, 2.6vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin: 0 0 0.65rem 0;
    color: #0f172a;
}

.premium-ad-sponsor .ad-sponsor-desc {
    font-size: clamp(0.9rem, 1.55vw, 1.02rem);
    line-height: 1.65;
    color: #475569;
    margin: 0 0 1.35rem 0;
    max-width: 38rem;
}

.premium-ad-sponsor .ad-sponsor-desc strong {
    font-weight: 700;
    color: #0f172a;
}

.premium-ad-sponsor .ad-sponsor-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.55rem;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #006aff 0%, #0053b3 100%);
    box-shadow: 0 6px 22px rgb(0 106 255 / 0.34);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, filter 0.3s ease;
}

.premium-ad-sponsor .ad-sponsor-cta:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgb(0 106 255 / 0.42);
}

@media (prefers-reduced-motion: reduce) {
    .premium-ad-sponsor .ad-sponsor-cta:hover {
        transform: none;
    }
}

.premium-ad-sponsor .ad-sponsor-cta-icon {
    margin-left: 0.2rem;
    font-size: 0.82em;
}

.premium-ad-sponsor .ad-sponsor-image-wrap {
    flex: 0 1 300px;
    position: relative;
    width: 300px;
    max-width: 100%;
    align-self: center;
}

.premium-ad-sponsor .ad-sponsor-img {
    width: 100%;
    height: 300px;
    border-radius: 18px;
    object-fit: cover;
    display: block;
    border: 1px solid rgb(255 255 255 / 0.75);
    box-shadow: 0 16px 42px -14px rgb(15 23 42 / 0.22);
}

.premium-ad-sponsor .ad-discount-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    transform: rotate(12deg);
    box-sizing: border-box;
    pointer-events: none;
    z-index: 3;
    color: #b91c1c;
    background: linear-gradient(160deg, rgb(255 255 255 / 0.95), rgb(254 243 243 / 0.94));
    border: 1px solid rgb(252 165 165 / 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 1px 0 rgb(255 255 255 / 0.9) inset,
        0 10px 24px rgb(239 68 68 / 0.2);
}

.premium-ad-sponsor .ad-discount-badge span:first-child {
    font-size: 19px;
    line-height: 1;
}

.premium-ad-sponsor .ad-discount-badge span:last-child {
    font-size: 9px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .premium-ad-sponsor .ad-sponsor-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.25rem 1rem 1.5rem;
        gap: 1.15rem;
    }

    .premium-ad-sponsor .ad-sponsor-text {
        order: 1;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .premium-ad-sponsor .ad-sponsor-pill {
        margin-bottom: 0.65rem;
        max-width: 100%;
    }

    .premium-ad-sponsor .ad-sponsor-title {
        font-size: 1.32rem;
        margin-bottom: 0.55rem;
    }

    .premium-ad-sponsor .ad-sponsor-desc {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        max-width: 100%;
    }

    .premium-ad-sponsor .ad-sponsor-cta {
        padding: 0.75rem 1.35rem;
        font-size: 0.875rem;
    }

    .premium-ad-sponsor .ad-sponsor-image-wrap {
        order: 2;
        width: 100%;
        flex: none;
    }

    .premium-ad-sponsor .ad-sponsor-img {
        width: 100%;
        height: auto;
        min-height: 200px;
        max-height: 280px;
    }

    .premium-ad-sponsor .ad-discount-badge {
        top: 10px;
        right: 10px;
        transform: rotate(10deg);
        width: 66px;
        height: 66px;
    }

    .premium-ad-sponsor .ad-discount-badge span:first-child {
        font-size: 16px;
    }

    .premium-ad-sponsor .ad-discount-badge span:last-child {
        font-size: 8px;
    }

    .premium-ad-card.premium-ad-sponsor {
        margin: 16px 0;
    }
}

@media (max-width: 480px) {
    .premium-ad-sponsor .ad-sponsor-layout {
        padding: 1rem 0.85rem 1.35rem;
        gap: 0.95rem;
    }

    .premium-ad-sponsor .ad-sponsor-title {
        font-size: 1.18rem;
    }

    .premium-ad-sponsor .ad-sponsor-desc {
        font-size: 0.86rem;
    }

    .premium-ad-sponsor .ad-discount-badge {
        width: 58px;
        height: 58px;
        top: 8px;
        right: 8px;
    }

    .premium-ad-sponsor .ad-discount-badge span:first-child {
        font-size: 14px;
    }
}
/* የካርዶቹ መቀመጫ (Container) */
#house-listings-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* በስልክ 1 ምስል ብቻ */
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================
   Property Card Grid — CSS-columns masonry
   Cards pack tightly regardless of image height.
   ======================================== */
.tb-prop-grid {
    column-count: 1;
    column-gap: 24px;
}
@media (min-width: 640px)  { .tb-prop-grid { column-count: 2; } }
@media (min-width: 1024px) { .tb-prop-grid { column-count: 3; } }

/* ========================================
   Homepage listing grid — CSS Grid (in-flow ads)
   Buy page grid view uses the same layout as homepage (.tb-home-prop-grid).
   ======================================== */
.tb-home-prop-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: stretch;
    grid-auto-rows: 1fr;
}
@media (min-width: 640px) {
    .tb-home-prop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .tb-home-prop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.tb-home-prop-grid > .tb-prop-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 100%;
    margin-bottom: 0;
}

.tb-home-prop-grid .tb-prop-card--grid .tb-prop-card__media {
    flex-shrink: 0;
    aspect-ratio: 4 / 3;
    height: 15rem;
    max-height: 15rem;
}

.tb-home-prop-grid .tb-prop-card--grid .tb-prop-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem 1rem 0 0;
}

.tb-home-prop-grid .tb-prop-card--grid .tb-prop-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.tb-home-prop-grid .tb-prop-card--grid .tb-prop-card__content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.tb-home-prop-grid-empty {
    grid-column: 1 / -1;
}

.tb-home-sponsored-card {
    --card-radius: 20px;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: var(--card-radius);
    background: #ffffff;
    border: 1px solid rgba(0, 106, 255, 0.12);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.tb-home-sponsored-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 40px rgba(0, 106, 255, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.06);
}

.tb-home-sponsored-card__media {
    position: relative;
    flex: 1 1 auto;
    min-height: 10rem;
    overflow: hidden;
    line-height: 0;
    background: linear-gradient(145deg, #e8f2ff 0%, #f8fafc 55%, #eef2ff 100%);
}

.tb-home-sponsored-card__img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 10rem;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.tb-home-sponsored-card:hover .tb-home-sponsored-card__img {
    transform: scale(1.04);
}

.tb-home-sponsored-card__pill {
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    z-index: 2;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0053b3;
    border: 1px solid rgba(0, 106, 255, 0.28);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.tb-home-sponsored-card__discount {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 3.25rem;
    padding: 0.35rem 0.5rem;
    border-radius: 0.75rem;
    background: #006aff;
    color: #fff;
    font-weight: 800;
    line-height: 1.1;
    box-shadow: 0 8px 20px rgba(0, 106, 255, 0.35);
}
.tb-home-sponsored-card__discount span:first-child {
    font-size: 0.95rem;
}
.tb-home-sponsored-card__discount span:last-child {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.92;
}

.tb-home-sponsored-card__body {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.25rem 1.25rem;
}

.tb-home-sponsored-card__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.35;
    color: #0f172a;
}

.tb-home-sponsored-card__desc {
    margin: 0;
    flex: 1 1 auto;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #64748b;
}
.tb-home-sponsored-card__desc strong {
    color: #006aff;
    font-weight: 700;
}

.tb-home-sponsored-card__cta {
    margin-top: 0.35rem;
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    border-radius: 0.75rem;
    background: #006aff;
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 106, 255, 0.25);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.tb-home-sponsored-card__cta:hover {
    background: #0053b3;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 106, 255, 0.32);
}

/* ========================================
   Premium Property Card
   ======================================== */
.tb-prop-card {
    --card-radius: 20px;
    display: inline-flex;
    flex-direction: column;
    width: 100%;
    border-radius: var(--card-radius);
    background: #ffffff;
    border: 1px solid rgba(0, 106, 255, 0.08);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    break-inside: avoid;
    margin-bottom: 24px;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.tb-prop-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 40px rgba(0, 106, 255, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.06);
}

.tb-prop-card__media {
    position: relative;
    overflow: hidden;
    line-height: 0;
}

/* Image fills card width; card height adapts to image */
.tb-prop-card__img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.tb-prop-card:hover .tb-prop-card__img {
    transform: scale(1.04);
}

.tb-prop-card__body {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem 1.25rem;
}

/* List-view: side-by-side layout */
@media (min-width: 640px) {
    .tb-prop-card--list {
        flex-direction: row;
    }
    .tb-prop-card--list .tb-prop-card__media {
        width: 18rem;
        flex-shrink: 0;
    }
}
@media (min-width: 768px) {
    .tb-prop-card--list .tb-prop-card__media { width: 20rem; }
}

/* Legacy fallback */
.property-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}
.property-card img {
    display: block;
    width: 100%;
    height: auto;
}

/* --- Responsive Breakpoints (ወሳኙ ክፍል) --- */

/* ለታብሌት (Tablets) - ከ 600px በላይ */
@media (min-width: 600px) {
    #house-listings-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 ምስል ጎን ለጎን */
    }
}

/* ለኮምፒውተር (Desktop) - ከ 1000px በላይ */
@media (min-width: 1000px) {
    #house-listings-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 ምስል ጎን ለጎን */
    }
}
/* --- Premium Mortgage Calculator Styles --- */

.loan-calculator-section {
    max-width: 550px;
    margin: 60px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    position: relative;
    overflow: hidden;
}

/* የጌጥ ዳራ (Decorative Gradient) */
.loan-calculator-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #d4af37, #f1c40f, #d4af37);
}

.loan-calculator-section h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 35px;
    letter-spacing: -0.5px;
    font-weight: 800;
}

/* Radio Button Styling (Type Selector) */
.calc-type-selector {
    display: flex;
    background: #f4f4f4;
    padding: 6px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.calc-type-selector label {
    flex: 1;
    text-align: center;
    padding: 12px;
    cursor: pointer;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #666;
}

.calc-type-selector input[type="radio"] {
    display: none; /* ኦሪጅናል ሬዲዮውን መደበቅ */
}

.calc-type-selector label:has(input:checked) {
    background: #1a1a1a;
    color: #d4af37;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Input Grouping */
.input-group {
    margin-bottom: 22px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #444;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 14px;
    border: 2px solid #eee;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    background: #fafafa;
    box-sizing: border-box;
}

.input-group input:focus {
    border-color: #d4af37;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

/* Results Card (The Dark Mode UI) */
.calc-results-container {
    background: linear-gradient(145deg, #1a1a1a, #2c2c2c);
    color: #fff;
    padding: 35px;
    border-radius: 24px;
    margin-top: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    text-align: center;
}

.calc-results-container p {
    font-size: 23px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 8px;
font-weight: 700;
}

.calc-results-container h3 {
    font-size: 2.4rem;
    color: #d4af37;
    margin-bottom: 25px;
    font-weight: 900;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

/* Details Grid */
.calc-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    border-top: 1px solid #28a745;
    padding-top: 25px;
}

.calc-details-grid div {
    text-align: left;
}

.calc-details-grid p {
    font-size: 20px;
    margin-bottom: 4px;
}

.calc-details-grid p:last-child {
    font-size: 14px;
    color: #fff;
    font-weight: 700;
    opacity: 1;
}

/* Animation on Hover */
.loan-calculator-section:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
    transition: all 0.4s ease;
}

/* Responsive */
@media (max-width: 600px) {
    .loan-calculator-section {
        padding: 25px;
        margin: 20px;
    }
    .calc-results-container h3 {
        font-size: 1.8rem;
    }
}
.view-btn {
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    background-color: #1a73e8; /* ሰማያዊ ቀለም */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.view-btn:hover {
    background-color: #1557b0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}/* ለእያንዳንዱ ካርድ (Main Card) */
.tamagn-card {
    background: #fff;
    width: 100%; /* በሞባይል ሙሉ ስፋት እንዲይዝ */
    max-width: 350px; /* በትልቅ ስክሪን ከዚህ እንዳይበልጥ */
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column; /* ይዘቱ ከላይ ወደ ታች እንዲሆን */
    transition: 0.3s ease;
    margin: 10px auto;
}

/* ምስሉን የያዘው ክፍል (Image Container) */
.tamagn-card .img-holder {
    width: 100%;
    aspect-ratio: 16 / 9; /* የምስሉ ቅርፅ ሁልጊዜ 16:9 እንዲሆን ያደርጋል */
    overflow: hidden;
    background-color: #f0f0f0; /* ምስሉ እስኪጫን ባዶ እንዳይመስል */
}

/* ምስሉ ራሱ (The Image) */
.tamagn-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ዋናው ሚስጥር ይሄ ነው! ምስሉ ሳይለጠጥ ቦታውን ይሞላል */
    display: block;
}

/* ለጽሁፎቹ (Info Section) */
.tamagn-info {
    padding: 15px;
    flex-grow: 1;
}

/* ለተለያዩ ስክሪኖች (Media Query) */
@media (max-width: 600px) {
    .tamagn-card {
        max-width: 95%; /* በስልክ ላይ በጎን ትንሽ ክፍት እንዲሆን */
    }
}
/* ሞዳሉ በሙሉ ስክሪን እንዲሆን */
.modal {
    display: none; /* መጀመሪያ ተደብቆ ይቆያል */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7); /* ጥቁር መደብ */
}

/* የውስጠኛው ሳጥን ዲዛይን */
.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 15px;
    width: 80%;
    max-width: 600px;
}
#google-map {
    min-height: 300px !important;
    display: block !important;
    background-color: #eee; /* ካርታው ባይመጣ እንኳን ግራጫ ቦታ እንዲያሳይ */
}
#google-map .tamagn-gmaps-surface {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
#google-map .leaflet-container {
    width: 100%;
    height: 100%;
    min-height: 300px;
    font: inherit;
}

/* Home #reGrid: developer logos — disable EXIF Orientation so UAs don't auto-rotate displayed pixels */
#reGrid article .re-dev-logo,
#reGrid article img {
    image-orientation: none !important;
    object-fit: contain;
    object-position: center;
}

/* ========== Zillow-style side drawer (mobile nav) ========== */
#sideDrawer.zillow-drawer-panel,
nav#sideDrawer {
    font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: #fff;
}

#sideDrawer .zillow-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

#sideDrawer .zillow-drawer-close {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.75rem;
    line-height: 1;
    color: #64748b;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s ease;
    font-weight: 300;
}

#sideDrawer .zillow-drawer-close:hover {
    color: #006AFF;
}

#sideDrawer .zillow-drawer-brand {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

#sideDrawer .zillow-drawer-brand-a { color: #006AFF; }
#sideDrawer .zillow-drawer-brand-b { color: #059669; }

#sideDrawer .zillow-drawer-nav {
    padding: 0.25rem 0 1rem;
}

#sideDrawer .zillow-drawer-link {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    color: #334155;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

#sideDrawer .zillow-drawer-link:hover {
    font-weight: 700;
    color: #006AFF;
    box-shadow: inset 0 -2px 0 0 #006AFF;
}

#sideDrawer .zillow-drawer-link:focus-visible {
    outline: 2px solid #006AFF;
    outline-offset: -2px;
}

#sideDrawer .zillow-drawer-nav > .menu-section {
    border-bottom: 1px solid #f1f5f9;
}

#sideDrawer .toggle-btn.zillow-drawer-toggle {
    width: 100%;
    padding: 0.5rem 1rem;
    margin: 0;
    background: none !important;
    border: none !important;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    color: #334155;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    box-shadow: none !important;
}

#sideDrawer .zillow-drawer-toggle:hover {
    font-weight: 700;
    color: #006AFF;
    box-shadow: inset 0 -2px 0 0 #006AFF !important;
}

#sideDrawer .zillow-drawer-toggle:focus-visible {
    outline: 2px solid #006AFF;
    outline-offset: -2px;
}

#sideDrawer .zillow-drawer-toggle--report {
    color: #334155;
}

#sideDrawer .zillow-drawer-toggle--report:hover {
    color: #b91c1c;
    box-shadow: inset 0 -2px 0 0 #b91c1c !important;
}

#sideDrawer .zillow-drawer-submenu {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 0;
}

#sideDrawer .zillow-drawer-sublink.sub-link {
    padding: 0.5rem 1rem 0.5rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    color: #475569;
    transition: all 0.2s ease;
}

#sideDrawer .zillow-drawer-sublink:hover {
    font-weight: 700;
    color: #006AFF;
    background: #fff;
}