@media(max-width:768px){

    .navbar{
        flex-direction:column;
        gap:20px;
    }

    .nav-links{
        flex-direction:column;
        align-items:center;
        gap:15px;
    }

    .nav-buttons{
        flex-direction:column;
        width:100%;
    }

    .login-btn,
    .register-btn{
        text-align:center;
    }
.login-info{
    padding:30px 20px;
    text-align:center;
}

.login-form{
    padding:30px 20px;
}

.login-page{
    min-height:100vh;
    padding:20px 15px;
    align-items:flex-start;
}

.login-container{
    grid-template-columns:1fr;
    width:100%;
    max-width:500px;
    margin:20px auto;
    border-radius:16px;
}

    .login-options{
        flex-direction:column;
        align-items:flex-start;
        gap:15px;
    }
.register-page .login-form{
    padding-top:30px;
}

.login-form form{
    width:100%;
}
.dashboard{
    grid-template-columns:1fr;
}

.sidebar{
    padding:20px;
}

.dashboard-content{
    padding:25px;
}
/* =========================
   MOBILE MENU
========================= */

.menu-toggle{
    display:none;
    font-size:30px;
    cursor:pointer;
    color:#166534;
}

@media (max-width:768px){

    .menu-toggle{
        display:block;
    }

    .nav-links,
    .nav-buttons{
        display:none;
    }

    .nav-links.active,
    .nav-buttons.active{
        display:flex;
        flex-direction:column;
        width:100%;
        margin-top:20px;
    }
}

/* =========================
   MOBILE CHAT EXPERIENCE
========================= */

@media (max-width: 768px) {

    .messages-container {
        display: block;
        height: 100dvh;
        min-height: 100vh;
    }

    /* Roommate list occupies the whole screen initially */
    .chat-sidebar {
        width: 100%;
        height: 100%;
    }

    /* Hide chat window initially on phone */
    .chat-window {
        display: none;
        width: 100%;
        height: 100%;
        min-height: 100dvh;
    }

    /* When a conversation is opened */
    .chat-window.mobile-chat-open {
        display: flex;
        flex-direction: column;
    }

    .chat-sidebar.mobile-chat-hidden {
        display: none;
    }

    /* Back button */
    .mobile-chat-back {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-right: 10px;
        padding: 6px 10px;
        border: none;
        border-radius: 8px;
        background: rgba(255,255,255,0.2);
        color: #fff;
        font-size: 20px;
        cursor: pointer;
    }

    .chat-header {
        display: flex;
        align-items: center;
    }

    .chat-body {
        flex: 1;
        overflow-y: auto;
    }

    .chat-input {
        flex-shrink: 0;
    }

}
.chat-header-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    border: 2px solid rgba(255,255,255,0.8);
}

.chat-header-name {
    font-size: 17px;
    font-weight: 600;
}

/* =========================
   FULL SCREEN MOBILE MESSAGES
========================= */

@media (max-width: 768px) {

    .messages-container {
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        min-height: calc(100dvh - 0px);
        height: calc(100dvh - 0px);
    }

    .chat-sidebar,
    .chat-window {
        width: 100%;
        max-width: none;
        border-radius: 0;
    }

    .chat-sidebar {
        min-height: 100%;
    }

    .chat-window {
        min-height: 100dvh;
    }

}

/* =========================
   FULL SCREEN MOBILE PROFILE
========================= */

@media (max-width: 768px) {

    .profile-page {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 20px 15px;
        box-sizing: border-box;
    }

}

.menu-toggle{
    display:none;
}
/* =========================
   HOMEPAGE MOBILE NAVBAR
========================= */

@media (max-width: 768px){

    .navbar{
        padding:15px 5%;
        position:relative;
    }

    .logo img{
        height:70px;
    }

    .nav-links{
        display:none;
        position:absolute;
        top:100%;
        left:0;
        width:100%;
        background:#fff;
        flex-direction:column;
        gap:0;
        padding:15px 5%;
        box-shadow:0 8px 20px rgba(0,0,0,.08);
        z-index:1000;
    }

    .nav-links.active{
        display:flex;
    }

    .nav-links li{
        width:100%;
    }

    .nav-links a{
        display:block;
        padding:14px 0;
        border-bottom:1px solid #f0f0f0;
    }

    .nav-buttons{
    display:flex;
    align-items:center;
    gap:8px;
}

    .menu-toggle{
        display:flex;
        align-items:center;
        justify-content:center;
        font-size:28px;
        color:#0B5D1E;
        cursor:pointer;
    }

}
/* =========================
       HOMEPAGE MOBILE HERO
    ========================= */

    .hero{
        flex-direction:column;
        padding:50px 5%;
        gap:35px;
        text-align:center;
    }

    .hero-text{
        width:100%;
    }

    .hero-badge{
        font-size:12px;
        padding:7px 14px;
    }

    .hero-text h1{
        font-size:36px;
        line-height:1.2;
    }

    .hero-text p{
        font-size:16px;
        line-height:1.7;
    }

    .hero-buttons{
        flex-direction:column;
        gap:12px;
        width:100%;
    }

    .hero-buttons a{
        width:100%;
        text-align:center;
    }

    .hero-image{
        width:100%;
    }

    .hero-image img{
        width:100%;
        height:auto;
        border-radius:16px;
    }
    /* =========================
   HOMEPAGE MOBILE QUICK ACTIONS
========================= */

    .quick-actions{
        width:90%;
        margin:50px auto;
        grid-template-columns:1fr;
        gap:20px;
    }

    .action-card{
        padding:25px;
        text-align:center;
    }

    .action-card .icon{
        font-size:36px;
    }
    /* =========================
   HOMEPAGE MOBILE SEARCH
========================= */

    .search-section{
        width:90%;
        margin:60px auto;
    }

    .search-section h2{
        font-size:1.7rem;
    }

    .search-section p{
        font-size:15px;
        line-height:1.6;
    }

    .search-box{
        flex-direction:column;
        gap:12px;
        width:100%;
    }

    .search-box input,
    .search-box select,
    .search-box button{
        width:100%;
        min-width:0;
    }
    /* =========================
   HOMEPAGE MOBILE APARTMENTS
========================= */

    .featured-apartments{
        width:90%;
        margin:60px auto;
    }

    .section-title{
        margin-bottom:30px;
    }

    .section-title h2{
        font-size:1.7rem;
    }

    .section-title p{
        font-size:15px;
        line-height:1.6;
    }

    .apartment-grid{
        grid-template-columns:1fr;
        gap:20px;
    }

    .apartment-card{
        width:100%;
    }

    .apartment-card img{
        height:200px;
    }

    .apartment-info{
        padding:20px;
    }

    .apartment-info h3{
        font-size:20px;
    }

    .price{
        font-size:17px;
    }

    .view-btn{
        width:100%;
        text-align:center;
    }
    /* =========================
   HOMEPAGE MOBILE ROOMMATES
========================= */

    .featured-roommates{
        width:90%;
        margin:60px auto;
    }

    .roommate-grid{
        grid-template-columns:1fr;
        gap:20px;
    }

    .roommate-card{
        width:100%;
        padding:25px 20px;
    }

    .roommate-card img{
        width:110px;
        height:110px;
    }

    .roommate-card h3{
        font-size:20px;
    }

    .roommate-card p{
        font-size:15px;
    }

    .roommate-card span{
        font-size:14px;
        line-height:1.6;
    }

    .profile-btn{
        width:100%;
        text-align:center;
    }
    /* =========================
   HOMEPAGE MOBILE CTA
========================= */

    .cta{
        width:90%;
        margin:60px auto;
        padding:55px 20px;
        border-radius:22px;
    }

    .cta h2{
        font-size:1.8rem;
        line-height:1.3;
    }

    .cta p{
        font-size:15px;
        line-height:1.7;
        margin-bottom:30px;
    }

    .cta-buttons{
        flex-direction:column;
        gap:12px;
    }

    .cta .primary-btn,
    .cta .secondary-btn{
        width:100%;
        text-align:center;
    }
    /* =========================
   CONTACT PAGE MOBILE
========================= */

@media (max-width: 768px){

    .contact-header{
        width:90%;
        margin:50px auto 30px;
    }

    .contact-header h1{
        font-size:2rem;
    }

    .contact-header p{
        font-size:15px;
        line-height:1.7;
    }

    .contact-container{
        width:90%;
        margin:0 auto 50px;
        grid-template-columns:1fr;
        gap:25px;
    }

    .contact-form,
    .contact-info{
        padding:25px 20px;
    }

    .contact-form h2,
    .contact-info h2{
        font-size:1.4rem;
    }

    .contact-form input,
    .contact-form textarea{
        padding:13px;
        font-size:15px;
    }

}
/* =========================
   CONTACT PAGE MOBILE
========================= */

@media (max-width: 768px){

    .contact-header{
        width:90%;
        margin:50px auto 30px;
    }

    .contact-header h1{
        font-size:2rem;
    }

    .contact-header p{
        font-size:15px;
        line-height:1.7;
    }

    .contact-container{
        width:90%;
        margin:0 auto 50px;
        grid-template-columns:1fr;
        gap:25px;
    }

    .contact-form,
    .contact-info{
        padding:25px 20px;
    }

    .contact-form h2,
    .contact-info h2{
        font-size:1.4rem;
    }

    .contact-form input,
    .contact-form textarea{
        font-size:15px;
        padding:13px;
    }

}
/* =========================
   CONTACT PAGE MOBILE
========================= */

@media (max-width: 768px){

    .contact-header{
        width:90%;
        margin:50px auto 30px;
    }

    .contact-header h1{
        font-size:2rem;
    }

    .contact-header p{
        font-size:15px;
        line-height:1.7;
    }

    .contact-container{
        width:90%;
        margin:0 auto 50px;
        grid-template-columns:1fr;
        gap:25px;
    }

    .contact-form,
    .contact-info{
        padding:25px 20px;
    }

    .contact-form h2,
    .contact-info h2{
        font-size:1.4rem;
    }

    .contact-form input,
    .contact-form textarea{
        font-size:15px;
        padding:13px;
    }

}
/* =========================
   HOMEPAGE MOBILE FOOTER
========================= */

    .footer{
        margin-top:60px;
        padding-top:45px;
    }

    .footer-container{
        width:90%;
        grid-template-columns:1fr;
        gap:30px;
        text-align:center;
    }

    .footer h2,
    .footer h3{
        margin-bottom:15px;
    }

    .footer p{
        font-size:14px;
        line-height:1.7;
    }

    .footer ul li{
        margin-bottom:10px;
    }

    .footer-bottom{
        margin-top:35px;
        padding:20px 15px;
    }

    .footer-bottom p{
        font-size:13px;
    }
    
    /* =========================================
   MOBILE DASHBOARD
========================================= */

@media (max-width: 768px) {

    /* Full screen dashboard */
    .dashboard {
        display: block;
        width: 100%;
        min-height: 100vh;
        margin: 0;
        padding: 0;
    }


    /* Sidebar */
    .sidebar {
        width: 100%;
        padding: 14px 16px;
        margin: 0;
    }


    /* Dashboard content */
    .dashboard-content {
        width: 100%;
        padding: 16px;
        margin: 0;
    }


    /* Header */
    .dashboard-header {
        width: 100%;
        margin: 0 0 20px;
        padding: 0;
    }


    .dashboard-header h1 {
        font-size: 24px;
        line-height: 1.25;
        margin-bottom: 8px;
    }


    .dashboard-header p {
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
    }


    /* Quick action buttons */
    .quick-post {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 18px;
    }


    .quick-post .post-btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }


    /* Dashboard cards */
    .dashboard-cards {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin: 0 0 24px;
    }


    .dashboard-card {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 18px 12px;
        margin: 0;
    }


    .dashboard-card h3 {
        font-size: 14px;
        line-height: 1.3;
        margin: 8px 0 5px;
    }


    .dashboard-card p {
        font-size: 20px;
        margin: 0;
    }


    .card-icon {
        font-size: 25px;
    }


    /* My Account */
    .user-summary {
        width: 100%;
        margin: 0 0 24px;
    }


    .user-summary h2 {
        font-size: 20px;
        margin-bottom: 12px;
    }


    .summary-card {
        width: 100%;
        box-sizing: border-box;
        padding: 16px;
        margin: 0;
    }


    .summary-card p {
        margin: 0 0 10px;
        font-size: 14px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }


    .summary-card p:last-child {
        margin-bottom: 0;
    }


    /* Recent activity */
    .recent-activity {
        width: 100%;
        margin: 0;
    }


    .recent-activity h2 {
        font-size: 20px;
        margin-bottom: 12px;
    }


    .activity-item {
        width: 100%;
        box-sizing: border-box;
        padding: 14px;
        margin: 0 0 10px;
    }


    .activity-item p {
        font-size: 13px;
        line-height: 1.4;
    }

}

/* =========================================
   MOBILE DASHBOARD HEADER & MENU
========================================= */

@media (max-width: 768px) {

    .dashboard {
        display: block;
        width: 100%;
        min-height: 100vh;
        margin: 0;
        padding: 0;
    }

    .sidebar {
        width: 100%;
        padding: 0;
        margin: 0;
        border-radius: 0;
    }

    .mobile-sidebar-header {
        width: 100%;
        min-height: 64px;
        padding: 12px 16px;

        display: flex;
        align-items: center;
        justify-content: space-between;

        box-sizing: border-box;
    }

    .mobile-sidebar-header h2 {
        margin: 0;
        font-size: 19px;
        color: #fff;
    }

    .mobile-menu-btn {
        width: 44px;
        height: 44px;

        border: 0;
        border-radius: 10px;

        background: rgba(255,255,255,.15);
        color: #fff;

        font-size: 24px;
        cursor: pointer;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-btn:active {
        transform: scale(.95);
    }

    .sidebar ul {
        display: none;
        width: 100%;
        margin: 0;
        padding: 8px 12px 16px;
        box-sizing: border-box;
    }

    .sidebar ul.mobile-menu-open {
        display: block;
    }

    .sidebar ul li {
        margin: 0;
    }

    .sidebar ul li a {
        width: 100%;
        box-sizing: border-box;
        padding: 13px 14px;
        margin-bottom: 4px;
        border-radius: 10px;
    }

    .dashboard-content {
        width: 100%;
        padding: 16px;
        box-sizing: border-box;
    }
}

/* =========================================
   MOBILE MY ACCOUNT
========================================= */

@media (max-width: 768px) {

    .user-summary {
        width: 100%;
        margin: 24px 0;
    }

    .user-summary h2 {
        margin: 0 0 12px;
        font-size: 20px;
        color: #166534;
    }

    .summary-card {
        width: 100%;
        box-sizing: border-box;
        padding: 16px;
        margin: 0;
        border-radius: 16px;
        overflow: hidden;
    }

    .summary-card p {
        display: flex;
        flex-direction: column;
        gap: 3px;

        margin: 0;
        padding: 10px 0;

        font-size: 14px;
        line-height: 1.4;

        overflow-wrap: anywhere;
    }

    .summary-card p + p {
        border-top: 1px solid #dcfce7;
    }

    .summary-card strong {
        color: #166534;
        font-size: 12px;
    }

}
/* =========================================
   MOBILE RECENT ACTIVITY
========================================= */

@media (max-width: 768px) {

    .recent-activity {
        width: 100%;
        margin: 24px 0 0;
    }

    .recent-activity h2 {
        margin: 0 0 12px;
        font-size: 20px;
        color: #166534;
    }

    #recentActivityList {
        width: 100%;
    }

    .activity-item {
        width: 100%;
        box-sizing: border-box;

        display: flex;
        align-items: flex-start;
        gap: 12px;

        padding: 14px;
        margin-bottom: 10px;

        border-radius: 14px;
        background: #fff;
        border: 1px solid #dcfce7;

        box-shadow: 0 5px 15px rgba(22, 163, 74, .06);
    }

    .activity-item > span {
        flex-shrink: 0;
        font-size: 22px;
    }

    .activity-item strong {
        display: block;
        margin-bottom: 4px;
        font-size: 14px;
        color: #166534;
    }

    .activity-item p {
        margin: 0;
        font-size: 13px;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

    .activity-empty {
        margin: 0;
        padding: 18px;
        text-align: center;
        border-radius: 14px;
        background: #fff;
        border: 1px solid #dcfce7;
        font-size: 14px;
    }

}
/* =========================================
   MOBILE MY LISTINGS
========================================= */

@media (max-width: 768px) {

    .profile-page {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 8px;
        box-sizing: border-box;
    }

    .profile-card {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 18px 10px;
        box-sizing: border-box;
        border-radius: 14px;
    }

    .profile-card h1 {
        font-size: 24px;
        text-align: center;
        margin-bottom: 8px;
    }

    .profile-card > p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 20px !important;
    }

    #myListings {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    #myListings > * {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }

    .profile-card .primary-btn {
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        padding: 13px 16px;
    }

/* =========================================
   MOBILE MY LISTING APARTMENT CARDS
========================================= */

@media (max-width: 768px) {

    .apartment-card {
        width: 100%;
        max-width: none;
        margin: 0 0 18px;
        padding: 12px;
        box-sizing: border-box;
        border-radius: 16px;
    }

    .apartment-card > img {
        display: block;
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: cover;
        margin: 0 0 14px;
        border-radius: 10px;
    }

    .apartment-info {
        width: 100%;
        padding: 0 4px;
        box-sizing: border-box;
        text-align: center;
    }

    .apartment-info h3 {
        font-size: 21px;
        margin: 8px 0;
    }

    .apartment-info p {
        margin: 8px 0;
        line-height: 1.45;
    }

    .apartment-info .price {
        font-size: 21px;
        font-weight: 700;
    }

    .listing-actions {
        width: 100%;
        display: flex;
        gap: 10px;
        margin-top: 18px;
    }

    .listing-actions button {
        flex: 1;
        min-width: 0;
        padding: 12px 8px;
        box-sizing: border-box;
    }

@media (max-width: 768px) {

    .listing-actions .view-btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        padding: 12px 16px;
        display: block;
    }

}
/* =========================================
   MOBILE ROOMMATE PAGE
========================================= */

@media (max-width: 768px) {

    .roommate-header {
        width: 100%;
        box-sizing: border-box;
        padding: 28px 14px 20px;
        margin: 0;
        text-align: center;
    }

    .roommate-header h1 {
        font-size: 25px;
        line-height: 1.2;
        margin: 0 0 10px;
    }

    .roommate-header p {
        margin: 0 auto;
        max-width: 500px;
        font-size: 14px;
        line-height: 1.5;
    }

    .roommate-search {
        width: 100%;
        box-sizing: border-box;
        padding: 12px;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .roommate-search input,
    .roommate-search select,
    .roommate-search button {
        width: 100%;
        min-height: 46px;
        box-sizing: border-box;
    }

    .my-roommates-section,
    .roommate-listings {
        width: 100%;
        box-sizing: border-box;
        padding: 20px 12px;
        margin: 0;
    }

    .section-title {
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 16px;
    }

    .section-title h2 {
        font-size: 21px;
        margin: 0 0 6px;
    }

    .section-title p {
        font-size: 13px;
        line-height: 1.45;
        margin: 0;
    }

    .roommate-grid {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        box-sizing: border-box;
    }

}
/* =========================================
   MOBILE ROOMMATE CARDS
========================================= */

@media (max-width: 768px) {

    .roommate-card {
        width: 100%;
        max-width: none;
        box-sizing: border-box;

        padding: 18px 14px;
        margin: 0;

        border-radius: 16px;
    }

    .roommate-card img {
        display: block;

        width: 110px;
        height: 110px;

        margin: 0 auto 14px;

        object-fit: cover;
        border-radius: 50%;
    }

    .roommate-card h3 {
        margin: 6px 0;
        font-size: 20px;
        text-align: center;
    }

    .roommate-card p {
        margin: 6px 0;
        text-align: center;

        font-size: 14px;
        line-height: 1.45;

        overflow-wrap: anywhere;
    }

    .roommate-card > span {
        display: block;

        text-align: center;

        font-size: 13px;
        line-height: 1.4;

        margin: 6px 0 14px;

        overflow-wrap: anywhere;
    }

    .roommate-actions {
        width: 100%;

        display: flex;
        flex-direction: column;

        gap: 8px;

        margin-top: 14px;
    }

    .roommate-actions .profile-btn,
    .roommate-actions .request-btn {
        width: 100%;
        min-height: 44px;

        box-sizing: border-box;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 11px 14px;

        text-align: center;
    }

}
/* =========================================
   ROOMMATE PROFILE — MOBILE
========================================= */

@media (max-width: 768px) {

    /* Main profile wrapper */
    .profile-page {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 12px !important;

        display: block !important;
        box-sizing: border-box;
    }


    /* =========================
       MAIN PROFILE CARD
    ========================= */

    .profile-page .profile-card {
        width: 100% !important;
        max-width: none !important;
        margin: 0 0 12px !important;
        padding: 24px 16px !important;

        box-sizing: border-box;
        text-align: center;

        border-radius: 20px;
    }


    .profile-page .profile-avatar {
        width: 125px !important;
        height: 125px !important;

        display: block;
        margin: 0 auto 16px !important;

        object-fit: cover;
        border-radius: 50%;
    }


    .profile-page .profile-card h1 {
        font-size: 25px;
        line-height: 1.2;
        margin: 8px 0 18px;
    }


    .profile-page .profile-card p {
        margin: 10px 0;
        font-size: 15px;
        line-height: 1.5;

        overflow-wrap: anywhere;
    }


    /* =========================
       ABOUT + LIFESTYLE
    ========================= */

    .profile-page .profile-section {
        width: 100% !important;
        max-width: none !important;

        margin: 0 0 12px !important;
        padding: 20px 16px !important;

        box-sizing: border-box;

        border-radius: 20px;
    }


    .profile-page .profile-section h2 {
        margin: 0 0 12px;

        font-size: 21px;
        line-height: 1.2;
    }


    .profile-page .profile-section p {
        margin: 0;

        font-size: 15px;
        line-height: 1.6;

        overflow-wrap: anywhere;
    }


    /* =========================
       LIFESTYLE TAGS
    ========================= */

    .profile-page .lifestyle-tags {
        width: 100% !important;

        display: flex !important;
        flex-wrap: wrap !important;

        gap: 8px;

        box-sizing: border-box;
    }


    .profile-page .lifestyle-tags span {
        flex: 1 1 auto;

        width: auto;
        max-width: 100%;

        padding: 10px 12px;

        border-radius: 12px;

        font-size: 14px;
        line-height: 1.35;

        box-sizing: border-box;
        overflow-wrap: anywhere;
    }


    /* =========================
       PROFILE BUTTONS
    ========================= */

    .profile-page .profile-buttons {
        width: 100% !important;

        display: flex !important;
        flex-direction: column !important;

        gap: 10px;

        margin: 0 !important;
        padding: 0 !important;
    }


    .profile-page .profile-buttons button {
        width: 100% !important;

        min-height: 48px;

        padding: 12px 16px;

        box-sizing: border-box;

        border-radius: 12px;

        font-size: 15px;
    }

}
/* =========================================
   POST APARTMENT — MOBILE
========================================= */

@media (max-width: 768px) {

    .profile-page {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 12px !important;
        box-sizing: border-box;
    }

    .profile-page .profile-card {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 22px 16px !important;
        box-sizing: border-box;
        border-radius: 20px;
    }

    .profile-page .profile-card h1 {
        text-align: center;
        font-size: 25px;
        margin-bottom: 22px;
    }

    #apartmentForm {
        width: 100%;
    }

    #apartmentForm label {
        display: block;
        margin: 0 0 7px;
        font-weight: 600;
        font-size: 14px;
    }

    #apartmentForm input,
    #apartmentForm select,
    #apartmentForm textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;

        padding: 13px 14px;
        margin: 0 0 17px;

        font-size: 16px;
        border-radius: 12px;
    }

    #apartmentForm textarea {
        min-height: 130px;
        resize: vertical;
    }

    #apartmentForm input[type="file"] {
        padding: 11px;
        font-size: 14px;
        background: #f0fdf4;
    }

    #apartmentForm button {
        width: 100%;
        min-height: 50px;

        margin-top: 5px;
        padding: 13px 18px;

        border: none;
        border-radius: 12px;

        font-size: 16px;
        font-weight: 700;

        cursor: pointer;
    }

}

/* =========================================
   SETTINGS PAGE
========================================= */

.settings-page {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 24px;
    box-sizing: border-box;
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.settings-header h1 {
    margin: 0 0 8px;
    color: #166534;
}

.settings-header p {
    margin: 0;
    color: #666;
}

.settings-back-btn {
    text-decoration: none;
    color: #166534;
    font-weight: 600;
    white-space: nowrap;
}

.settings-section {
    background: #fff;
    border: 1px solid #dcfce7;
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: 0 8px 20px rgba(22,163,74,.06);
}

.settings-section h2 {
    margin: 0 0 6px;
    color: #166534;
    font-size: 20px;
}

.settings-description {
    margin: 0 0 16px;
    color: #666;
    font-size: 14px;
}

.settings-list {
    display: flex;
    flex-direction: column;
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 8px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f0fdf4;
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-item:hover {
    background: #f0fdf4;
}

.settings-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f0fdf4;
    border-radius: 12px;
    font-size: 20px;
}

.settings-info {
    flex: 1;
    min-width: 0;
}

.settings-info strong {
    display: block;
    color: #222;
    margin-bottom: 4px;
}

.settings-info span {
    display: block;
    color: #777;
    font-size: 13px;
    line-height: 1.45;
}

.settings-arrow {
    color: #16a34a;
    font-size: 20px;
    flex-shrink: 0;
}

.settings-danger {
    margin-top: 25px;
}

.settings-danger button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}


/* =========================================
   SETTINGS — MOBILE
========================================= */

@media (max-width: 768px) {

    .settings-page {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 14px 10px 25px;
    }

    .settings-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
    }

    .settings-header h1 {
        font-size: 25px;
    }

    .settings-header p {
        font-size: 14px;
        line-height: 1.5;
    }

    .settings-back-btn {
        display: inline-block;
        padding: 8px 12px;
        background: #f0fdf4;
        border-radius: 10px;
    }

    .settings-section {
        width: 100%;
        padding: 16px 12px;
        margin-bottom: 12px;
        border-radius: 16px;
        box-sizing: border-box;
    }

    .settings-section h2 {
        font-size: 19px;
    }

    .settings-description {
        font-size: 13px;
        line-height: 1.45;
    }

    .settings-item {
        padding: 14px 4px;
        gap: 10px;
    }

    .settings-icon {
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }

    .settings-info strong {
        font-size: 14px;
    }

    .settings-info span {
        font-size: 12px;
    }

    .settings-arrow {
        font-size: 18px;
    }

}