.navbar {
    background: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar h1 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.navbar a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.navbar a:hover {
    text-decoration: underline;
}




.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.125rem;
    color: #64748b;
}



/* ========================= filters ============================= */

.filters-section {
    width: 100%;
    margin-bottom: 50px;

    .search-bar {

        position: relative;
        display: flex;
        align-items: center;
        justify-content: end;
        width: 100%;

        .search-input {
            width: 100%;
            position: relative;


            input {
                width: 100% !important;
                padding-block: 20px;
                padding-inline: 72px;
                border-radius: 32px;
                outline: none;
                border: var(--orange_600) solid 1px;

            }

            img {
                width: 30px;
                position: absolute;
                top: 16px;
                margin-inline: 24px;


            }
        }

        .search-filters {

            display: flex;
            gap: 12px;
            align-items: center;
            position: absolute;
            padding-inline: 0;
            height: 100%;
            width: 60%;


            .category-filter {
                display: flex;
                flex-direction: column;
                gap: 6px;
                width: 100%;
            }

            .category-filter .category-filter select:hover {
                border-color: #999;
            }

            .category-filter select:focus {
                border-color: var(--orange_600);
                /* violet like Dashboards */
                box-shadow: 0 0 0 3px rgba(236, 133, 37, 0.2);
            }

            .actions {
                width: -webkit-fill-available;
                display: flex;
                gap: 16px;
                align-items: center;
                justify-content: end;
            }

            .clear-action{
                img {
                    width: 16px;
                }
            }

            .search-action{
                padding: 16px;
                padding-inline: 32px;
                background-color: var(--orange_600);
                border-radius: 32px;
                margin-inline: 4px;
                color: var(--gray_100);
                transition: 0.25s ease;
            }

            .search-action:hover{
                padding: 12px;
                padding-inline: 28px;
                background-color: var(--orange_500);
                 margin-inline: 8px;
                
            }

            
        }


    }
}




select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d0d0d5;
    border-radius: 10px;
    background-color: #ffffff;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: all 0.25s ease;
    cursor: pointer;
    appearance: none;
    /* لإضافة سهم مخصص */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='gray'><path d='M5 7l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
}


/* ====================================================== */

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.listing-card {
    background: var(--gray_100);
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 12px;
    position: relative;
}

.listing-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.listing-image {
    height: 120px !important;
    background: var(--gray_200) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center;
    font-size: 3rem;
    border-radius: 12px;


    img{
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px;
    }
}

.listing-content {
    padding: 1rem 0 0 0;
}

.listing-title {
    font-size: 1.3rem !important;
    font-weight: 900;
    color: var(--gray_800);
    margin-bottom: 0.5rem;
}

.listing-description {
    color: var(--gray_600);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-details {

    flex-wrap: wrap;
    gap: 0.5rem;
    text-decoration: none;




    .favorite_toggle {
        position: absolute;
        border-radius: 50%;
        top: 8px;
        right: 8px;

        background-color: var(--gray_100) !important;

        .favorite_toggle_btn {
            border-radius: 50%;
            padding: 6px;
            /* border: var(--orange_600) solid 1px; */
            border: none;
            background-color: var(--gray_100) !important;

            img {
                width: 16px;
            }
        }
    }


    .actions_btn {
        margin-top: 2rem;
        width: 100%;
        display: flex;
        gap: 12px;

        a {
            text-decoration: none;
        }

        .secondary_btn {
            padding: 14px 20px;
            color: var(--gray_600);
            background-color: var(--gray_100);
            border: 1px solid var(--gray_300);
            border-radius: 12px;
            width: 50%;
            text-align: center;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-weight: 600;
            font-size: 0.8rem;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .secondary_btn:hover {
            background-color: var(--gray_200);
            color: var(--gray_700);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            cursor: pointer;
        }

        .primary_btn {
            padding: 14px 20px;
            color: var(--gray_100);
            background-color: var(--orange_600);
            border: 1px solid var(--orange_600);
            border-radius: 12px;
            width: 50%;
            text-align: center;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-weight: 600;
            font-size: 0.8rem;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .primary_btn:hover {
            background-color: var(--orange_500);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(236, 133, 37, 0.3);
            cursor: pointer;
        }
    }
}


.listing-price {
    font-size: 1.5rem;
    font-weight: 900;
    display: block;
    color: var(--orange_600);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.875rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-color: #3b82f6;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.btn-danger {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-outline-danger {
    background: transparent;
    color: #dc2626;
    border-color: #dc2626;
}

.btn-outline-danger:hover {
    background: #dc2626;
    color: white;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    border-radius: 6px;
    text-decoration: none;
    color: #3b82f6;
    border: 1px solid #e2e8f0;
}

.pagination .active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.no-listings {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
}
/* Search Bar */
.figma-search-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 40px;
    padding: 8px 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    max-width: 700px;
    margin: 0 auto 30px;
}

.figma-search-bar input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    font-size: 15px;
}

.filter-btn{
    background: #FC941C;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    cursor: pointer;
}
.search-btn {
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.filter-btn img,
.search-btn img {
    width: 18px;
}

/* Category Cards */
.category-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 30px;
    margin-bottom: 20px;
    margin-right: 30px;
    margin-left: 30px;

}

.category-card {
    background: #fff4e8;
    border-radius: 18px;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* .category-card:last-child {
    margin-right: 50px;
} */

.category-card img {
    width: 42px;
    margin-bottom: 10px;
}

.category-card span {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.category-card.active {
    background: #f7941d;
}

.category-card.active span {
    color: #fff;
}

/* Clear */
.clear-wrapper {
    text-align: center;
    margin-top: 20px;
}

.clear-action {
    color: #f7941d;
    font-weight: 600;
    text-decoration: none;
}

/* Category Filter Container */
.category-filter-container {
    position: static;
    display: flex;
/*     flex-direction: column;
 */    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.category-filter-container .button {
    margin-left: auto;
    margin-top: 20px;
}

/* From Uiverse.io by Randdose */
.button {
  all: unset;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0.6em 2em;
  border: #FC941C solid 0.15em;
  border-radius: 0.25em;
  color: #FC941C;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: border 300ms, color 300ms;
  user-select: none;
}

.button p {
  z-index: 1;
}

.button:hover {
  color: #212121;
}

.button:active {
  border-color: teal;
}

.button::after, .button::before {
  content: "";
  position: absolute;
  width: 9em;
  aspect-ratio: 1;
  background: #FC941C;
  opacity: 50%;
  border-radius: 50%;
  transition: transform 500ms, background 300ms;
}

.button::before {
  left: 0;
  transform: translateX(-8em);
}

.button::after {
  right: 0;
  transform: translateX(8em);
}

.button:hover:before {
  transform: translateX(-1em);
}

.button:hover:after {
  transform: translateX(1em);
}

.button:active:before,
.button:active:after {
  background: teal;
}
/* Filter Panel */
.filter-panel {
    display: none;
    background: #fff;
    margin: 20px auto;
    max-width: 700px;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.filter-panel.show {
    display: block;
}

.filter-field {
    margin-bottom: 15px;
}

.filter-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.filter-field select {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #ddd;
}

/* Actions */
.filter-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.apply-btn {
    background: #f7941d;
    color: #fff;
    padding: 10px 22px;
    border-radius: 20px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}


.host-heading {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: #1f2937; /* dark modern gray */
    text-align: center;
    margin-bottom: 24px;
}

/* Responsive Design */

/* Mobile Styles (max-width: 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
        margin: 1rem auto;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .figma-search-bar {
        max-width: 100%;
        padding: 6px 8px;
    }

    .figma-search-bar input {
        padding: 10px 12px;
        font-size: 14px;
    }

    .filter-btn, .search-btn {
        width: 36px;
        height: 36px;
    }

    .filter-btn img, .search-btn img {
        width: 16px;
    }

    .filter-panel {
        max-width: 100%;
        padding: 15px;
        margin: 15px 0;
    }

    .filter-actions {
        flex-direction: column;
        gap: 10px;
    }

    .apply-btn {
        width: 100%;
        padding: 12px;
    }

    .category-filter-container {
        position: static;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
        max-width: 100%;
    }

    .host-heading {
        font-size: 24px;
        text-align: center;
    }

    .category-cards {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 20px;
        justify-content: center;
    }

    .category-card {
        padding: 10px;
    }

    .category-card img {
        width: 32px;
    }

    .category-card span {
        font-size: 12px;
    }

    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .listing-card {
        padding: 12px;
    }

    .listing-image {
        height: 150px !important;
    }

    .listing-title {
        font-size: 1.125rem !important;
    }

    .listing-price {
        font-size: 1.5rem;
    }

    .actions_btn {
        gap: 12px;
        margin-top: 30px;
    }

    .actions_btn .secondary_btn,
    .actions_btn .primary_btn {
        width: 50%;
    }

    .favorite_toggle {
        top: 6px;
        right: 6px;
    }

    .favorite_toggle_btn {
        padding: 8px;
    }

    .favorite_toggle_btn img {
        width: 24px;
    }

    .no-listings {
        padding: 2rem 1rem;
    }
}

/* Tablet Styles (min-width: 769px and max-width: 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .page-title {
        font-size: 2.25rem;
    }

    .figma-search-bar {
        max-width: 600px;
    }

    .category-cards {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }

    .listings-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .listing-image {
        height: 180px !important;
    }

    .actions_btn {
        gap: 12px;
    }

    .actions_btn .secondary_btn,
    .actions_btn .primary_btn {
        width: 48%;
    }
}

/* Desktop Styles (min-width: 1025px) - Already optimized, minor tweaks if needed */
@media (min-width: 1025px) {
    .listings-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Additional Mobile Adjustments for Very Small Screens */
@media (max-width: 480px) {
    .navbar {
        padding: 0.5rem 1rem;
    }

    .navbar h1 {
        font-size: 1.25rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .page-subtitle {
        font-size: 0.875rem;
    }

    .figma-search-bar {
        padding: 4px 6px;
    }

    .figma-search-bar input {
        padding: 8px 10px;
        font-size: 13px;
    }

    .filter-btn, .search-btn {
        width: 32px;
        height: 32px;
    }

    .filter-btn img, .search-btn img {
        width: 14px;
    }

    .host-heading {
        font-size: 20px;
    }

    .button {
        font-size: 1em;
        padding: 0.4em 1.5em;
    }

    .category-cards {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 10px;
    }

    .category-card {
        padding: 8px;
    }

    .category-card img {
        width: 28px;
    }

    .category-card span {
        font-size: 11px;
    }

    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.1rem;
    }

    .listing-card {
        padding: 2px;
        border-radius: 24px;
    }

    .listing-image {
        height: 40px !important;
        border-radius: 8px;
    }

    .listing-title {
        font-size: 0.9rem !important;
    }

    .listing-price {
        font-size: 1rem;
    }

    .actions_btn {
        margin-top: 10px;
        gap: 6px;
    }

    .favorite_toggle {
        top: 2px;
        right: 2px;
    }

    .favorite_toggle_btn {
        padding: 4px;
    }

    .favorite_toggle_btn img {
        width: 16px;
    }

    .no-listings {
        padding: 1.5rem 1rem;
    }

    .pagination a, .pagination span {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Navbar Responsiveness */
@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 1rem;
    }

    .navbar h1 {
        font-size: 1.375rem;
    }
}

/* Ensure No Horizontal Scroll */
body, html {
    overflow-x: hidden;
}

/* Adjust Category Filter Container for Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .category-filter-container {
        position: static;
        max-width: 100%;
        margin-top: 20px;
    }
}



