
.hero-section{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    background: url( '../media/New-Residence-\(Building-7\).JPG ');
    background-color: rgba(0, 0, 0, 0.678);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    
}

/* ======================= HEADER =============================== */

header{
    font-family: sans-serif;
    background-color: var(--primary-color);
    margin: 20px;
    border-radius: 10px;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo img{
    width:250px;
    margin-right: 70px;
}

nav a{
    color: white;
    text-decoration: none;
    margin-left: 15px;
    font-size: larger;
}

.first-class-cta button {
    background-color: #FDBC12;
    color: white;
    border: none;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.first-class-cta button:hover {
    background-color: #000000;
    transform: translateY(-2px);
}

/* ======================= HERO =============================== */

.hero-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding-top: 100px;
    
}

.home-special-font{
    font-family: var(--primary-font);
}

.content-heading{
    font-size: 3.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
    font-family: sans-serif;
    font-weight: bold;
    line-height: 54px;
    
}

.hero{
    max-width: 500px;
    text-align: center;
    color:var(--first-class-cta-bg);

    
}


.hero-content p{
    font-size: 1.3rem;
    color: white;
    max-width: 685px;
    text-align: center;
    margin-bottom: 25px;
}

.second-class-cta{
    background-color: var(--second-class-cta-bg);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: large;
    cursor: pointer;
    margin-top: 20px;
}

.third-class-cta{
    background-color: var(--third-class-cta-bg);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: large;
    cursor: pointer;
    margin-top: 20px;
}

.fourth-class-cta{
    background-color: var(--fourth-class-cta-bg);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: large;
    cursor: pointer;
    margin-top: 20px;
}

.hero-content-accommodation-search{
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    background-color: rgba(241, 242, 242);
    padding: 20px;
    border-radius: 20px;
    min-width: 900px;
    margin-bottom: 130px;
}

.hero-content-accommodation-search-action{
    display: flex;
    gap: 10px;
}

.search-input{
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: white;
    padding: 5px 5px;
    border-radius: 10px;
    flex-grow: 1;
}

.search-input input {
    border: none;
    outline: none;
    font-size: 1.2rem;
    width: 100%;
    color: #9c9090;
}

.search-input i{
    color: #9c9090;
    font-weight: light;
    font-size: large;
}

.second-class-cta-btn button{
    background-color: var(--second-class-cta-bg);
    color: rgb(255, 255, 255);
    border: none;
    padding: 20px 30px;
    border-radius: 10px;
    font-size: large;
    cursor: pointer;
}

/* Search Suggestions Dropdown */
.search-container {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.suggestions-dropdown.show {
    display: block;
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #FFF3E0;
}

.suggestion-item.highlighted {
    background: #FFE0B2;
}

.suggestion-icon {
    width: 24px;
    text-align: center;
    color: #FF6B35;
}

.suggestion-content {
    flex: 1;
}

.suggestion-name {
    font-weight: 600;
    color: #333;
}

.suggestion-location {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.suggestion-type {
    font-size: 11px;
    color: #FF6B35;
    font-weight: 500;
}

.suggestion-item.selected {
    background: #FFE0B2;
}
body{
    font-family: Arial;
    background: #f4f4f4;
}

/* SECTION */
.browse-section{
    width: 90%;
    margin: auto;
    padding: 40px 0;
}

h1{
    text-align: center;
    font-size: 60px;
}

/* TABS */

.tabs{
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #999;
    margin-bottom: 20px;
}

.tab-btn{
    background: none;
    border: none;
    padding: 15px 0;
    cursor: pointer;
    font-size: 18px;
    position: relative;
}

.tab-btn.active{
    color: #f45b1f;
    font-weight: bold;
}

.tab-btn.active::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 3px;
    background: #f45b1f;
}

/* TAB CONTENT */

.tab-content{
    display: none;
}

.tab-content.active{
    display: block;
}

/* TOOLBAR */

.toolbar{
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.toolbar button{
    background: #f45b1f;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
}

/* GRID */

.listing-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 25px;
}

/* CARD */

.card{
    background: #f45b1f;
    border-radius: 20px;
    overflow: hidden;
    color: white;
}

.card img{
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-body{
    padding: 20px;
}

.card-buttons{
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/* Results Page Styles */
.results-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 2000;
    overflow-y: auto;
    display: none;
}

.results-page.show {
    display: block;
}

.results-header {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px 5%;
}

.results-header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.back-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #FF6B35;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-button:hover {
    color: #E55A2B;
}

.results-search-bar {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.results-search-bar input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 2px solid #eee;
    border-radius: 25px;
    font-size: 14px;
}

.results-search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #FF6B35;
}

.results-count {
    color: #666;
    font-size: 14px;
}

.results-filters {
    background: #fafafa;
    padding: 15px 5%;
    border-bottom: 1px solid #eee;
}

.results-filters-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.results-filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.results-filter-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
}

.results-filter-btn:hover,
.results-filter-btn.active {
    background: #FF6B35;
    color: white;
    border-color: #FF6B35;
}

.results-sort {
    margin-left: auto;
}

.results-sort select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

.results-grid {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.result-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(255,107,53,0.2);
}

.result-card-image {
    height: 180px;
    background: #f5f5f5;
    position: relative;
}

.result-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-card-content {
    padding: 16px;
}

.result-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #FF6B35;
    margin-bottom: 8px;
}

.result-card-location {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.result-card-details {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 12px 0;
    font-size: 13px;
    color: #666;
}

.result-card-details span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.result-card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.rating-stars {
    color: #FFC107;
}

.result-card-price {
    font-weight: 700;
    color: #FF6B35;
    margin-left: auto;
}

.no-results-results {
    text-align: center;
    padding: 60px;
    color: #666;
}

.close-results {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

/* Loading state */
.loading-results {
    text-align: center;
    padding: 60px;
}

.spinner-small {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #FF6B35;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ======================= STUDENTS =============================== */
.student-section{
    display: flex;
    justify-content: space-betwee;
    align-items: center;
    margin: 20px;
}

.student-section-content{
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-left: 20px;
    padding: 50px;
}

.student-headings{
    display: flex;
    flex-direction: column;
}

.student-heading-main{
    color: var(--text-color);
    font-weight: bold;
    width: 400px;
}

.student-section-content p{
    font-size: larger;
    max-width: 550px;
}

.student-section-buttons{
    display: flex;
    gap: 20px;
}

.student-second-class-cta-btn button{
    background-color: var(--second-class-cta-bg);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: large;
    cursor: pointer;
}

.third-class-cta-btn button{
    background-color: var(--third-class-cta-bg);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: large;
    cursor: pointer;
}

.student-section-image{
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    margin-left: 70px;
    margin-top: -80px;
}

.student-section-image img{
    border-radius: 16px; 
    transform: scale(1.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: block;
}


/* ======================= ACOMMODATION =============================== */
.find-accommodations-heading{
    color: var(--text-color);
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
}

.find-accommodations-view{
    display: flex;
    flex-direction: column;
    margin: 100px;
    padding: 70px;
    background-color: rgb(255, 255, 255);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0,0.5 );

}

.accommodation-filter-buttons{
    display: flex;
    gap: 20px;
    margin-top: 20px;
    
}

.accommodation-filter-buttons button{
    background-color: var(--fifth-class-cta-bg);
    color: var(--text-color);
    border: 1px solid var(--text-color);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: large;
    cursor: pointer;
    border: none;
    
}

hr{
    border: none;
    border-top: 1px solid var(--text-color);
    width: 100%;
}

.filter-accomodation-sort{
    display: flex;
    gap: 20px;
    margin-right: auto;
    margin-top: 20px;
}

.accomodation-filter button, .accomodation-sort button{
    background-color: var(--primary-color);
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    color:white;
    font-size: larger;
}

.find-accomodation-listing{
    display: flex;
    margin-top: 20px;
    padding: 0px;
    width: 900px;
}

.find-accomodation-listing img{
    width: 100%;
    height: 350px;
    border-radius: 20px;
}

.find-accommodation-space{
    background-color: var(--primary-color);
    border-radius: 20px;
    margin-left: 20px;
}

.accomodation-story li{
    list-style: none;
    color: aliceblue;

}

.accomodation-story{
    padding: 10px;
}

.student-accomodation-name{
    font-size: x-large;
    color: var(--first-class-cta-bg);
    font-weight: bold;
}

.accomodation-listing-buttons{
    display: flex;
    align-items: center;
    gap: 20px;
}

.second-class-cta-btn button{
    background-color: var(--third-class-cta-bg);
    margin-bottom: 20px;
    font-size: large;
    font-weight: bold;
    margin-left: 10px;
    border-radius: 20px;
}

.fifth-class-cta-btn{
    margin-bottom: 20px;
    background-color: white;
    border-radius: 20px;
    padding: 2px;
}

.fifth-class-cta-btn button{
    background-color: var(--second-class-cta-bg);
    padding: 9px 15px;
    border-radius: 20px;
    color: white;
    font-size: large;
    font-weight: bolder;
    border-width: 2px;
    border:none ;
}


/* ======================= LANDLORD =============================== */
.landlord-section-content{
    margin: 100px;
    padding: 70px;
    display: flex;
    flex-direction: column;
    background-color: #c5c9ce;
    border-radius: 20px;
}

.landlord-section-content-info-description{
    width: 500px;
    font-size: x-large;
}

.inline-cta-click a{
    color:var(--fourth-class-cta-bg);
    font-weight: 1000;
    text-decoration: none;
    font-size: x-large;
}

.landlord-section-buttons{
    display: flex;
    gap:20px;
    margin-top: 20px;
}

.landlord-second-class-cta-btn button{
    background-color: var(--second-class-cta-bg);
    border-radius: 10px;
    font-size:large;
    border: none;
    padding: 10px 20px;
}

.landlord-fourth-class-cta-btn button{
    background-color: var(--fourth-class-cta-bg);
    color: var(--first-class-cta-bg);
    font-size:large;
    border-radius: 10px;
    border: none;
    padding: 10px 20px;
}

*{
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body{
            font-family: Arial, sans-serif;
            background: #f4f4f4;
        }

        /* MAIN SECTION */

        .browse-section{
            width: 90%;
            margin: auto;
            padding: 50px 0;
        }

        .browse-section h1{
            text-align: center;
            font-size: 60px;
            margin-bottom: 40px;
            color: #222;
        }

        /* TABS */

        .tabs{
            display: flex;
            gap: 30px;
            border-bottom: 1px solid #999;
            margin-bottom: 30px;
            flex-wrap: wrap;
        }

        .tab-btn{
            background: none;
            border: none;
            padding-bottom: 15px;
            cursor: pointer;
            font-size: 18px;
            transition: 0.3s;
        }

        .tab-btn:hover{
            color: #f45b1f;
        }

        .tab-btn.active{
            color: #f45b1f;
            font-weight: bold;
            border-bottom: 3px solid #f45b1f;
        }

        /* TAB CONTENT */

        .tab-content{
            display: none;
        }

        .tab-content.active{
            display: block;
        }

        /* TOOLBAR */

        .toolbar{
            display: flex;
            gap: 15px;
            margin-bottom: 30px;
            flex-wrap: wrap;
        }

        .toolbar button{
            background: #f45b1f;
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 10px;
            cursor: pointer;
            font-size: 16px;
            transition: 0.3s;
        }

        .toolbar button:hover{
            opacity: 0.9;
        }

        /* GRID */

        .listing-grid{
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
            gap: 25px;
        }

        /* CARD */

        .card{
            background: #f45b1f;
            border-radius: 20px;
            overflow: hidden;
            color: white;
            transition: 0.3s;
        }

        .card:hover{
            transform: translateY(-5px);
        }

        .card img{
            width: 100%;
            height: 260px;
            object-fit: cover;
        }

        .card-body{
            padding: 20px;
        }

        .card-body h3{
            font-size: 28px;
            margin-bottom: 10px;
        }

        .card-body p{
            margin-bottom: 6px;
            font-size: 16px;
        }

        /* CARD BUTTONS */

        .card-buttons{
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 20px;
            gap: 10px;
        }

        .card-buttons button{
            border: none;
            padding: 12px 18px;
            border-radius: 12px;
            cursor: pointer;
            font-size: 15px;
            font-weight: bold;
            transition: 0.3s;
        }

        .wishlist-btn{
            background: #ffc107;
            color: #222;
            flex: 1;
        }

        .view-btn{
            background: white;
            color: #f45b1f;
        }

        .card-buttons button:hover{
            opacity: 0.9;
        }

        /* RESPONSIVE */

        @media(max-width: 768px){

            .browse-section h1{
                font-size: 40px;
            }

            .tabs{
                gap: 20px;
            }

        }

        :root {
  --accent: #FF6B35;
  --text-white: #ffffff;
}

.wishlist-container {
  position: relative;
  display: inline-block;
  font-family: sans-serif;
}

/* Main Button */
.wishlist-trigger {
  background: var(--accent);
  color: var(--text-white);
  border: none;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 10px;
}

/* Mega Popup */
.wishlist-popup {
  display: none; /* Hidden by default */
  position: absolute;
  top: 100%;
  right: 0;
  width: 500px; /* Wide mega-menu style */
  background: white;
  box-shadow: 0px 10px 30px rgba(0,0,0,0.15);
  border-top: 4px solid var(--accent);
  border-radius: 20px;
  padding: 20px;
  z-index: 1000;
}

/* Show on Hover */
.wishlist-container:hover .wishlist-popup {
  display: block;
}

.wishlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}
.wishlist-header h3{
    font-family: serif;
}

/* Dynamic Grid for Items */
.wishlist-items-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Extends as more items are added */
  gap: 15px;
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.wishlist-item {
  padding: 10px;
  border: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Buttons */
.clear-btn, .next-btn, .go-to-wishlist {
  background: var(--accent);
  color: var(--text-white);
  border: none;
  padding: 8px 15px;
  text-decoration: none;
  font-size: 16px;
  cursor: pointer;
  border-radius: 7px;
}

.wishlist-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.go-to-wishlist {
  width: 60%;
  text-align: center;
  font-weight: bold;
}


.footer-content{
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-bottom: 10px;
    padding-top: 50px;
}
.cta-buttons{
    display: flex;
    flex-direction: row;
    gap: 10px;
}
