
.hero-section{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    background: url( '../media/hero-home.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: var(--first-class-cta-bg);
    border: none;
    padding: 5px 15px;
    border-radius: 10px;
    color: var(--primary-color);
    font-size: large;
    cursor: pointer;
}

/* ======================= 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;
}

/* 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;
}

