/* Mobile-First Responsive Design */

/* Base Mobile Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9f7f5;
}

/* Mobile Navigation */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-top {
    background: #d4a574;
    color: white;
    padding: 8px 0;
    font-size: 12px;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.location {
    display: none;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    color: white;
    font-size: 14px;
    transition: opacity 0.3s;
}

.social-icons a:hover {
    opacity: 0.8;
}

/* Navbar */
.navbar {
    background: white;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    list-style: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

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

.nav-menu li {
    border-bottom: 1px solid #eee;
}

.nav-menu a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.nav-menu a:hover {
    background: #f5f5f5;
    color: #d4a574;
}

.dropdown-menu {
    display: none;
    background: #f9f9f9;
    flex-direction: column;
    list-style: none;
}

.dropdown-menu.active {
    display: flex;
}

.dropdown-menu li a {
    padding-left: 40px;
    font-size: 13px;
}

/* Page Title */
.page-title {
    background: linear-gradient(135deg, #d4a574 0%, #c9945f 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.page-title h1 {
    font-size: 28px;
    margin-bottom: 10px;
    font-family: 'Oswald', sans-serif;
}

.page-title p {
    font-size: 14px;
    opacity: 0.9;
}

/* Container */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* Sections */
section {
    padding: 30px 0;
}

section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
    font-family: 'Oswald', sans-serif;
}

section p {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
}

/* Forms */
.contact-form-section,
.page-content {
    background: white;
    padding: 30px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #d4a574;
    box-shadow: 0 0 5px rgba(212, 165, 116, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    width: 100%;
}

.btn-primary {
    background: #d4a574;
    color: white;
}

.btn-primary:hover {
    background: #c9945f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.3);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e8e8e8;
}

/* Grid Layouts */
.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.grid-2 {
    grid-template-columns: 1fr;
}

.grid-3 {
    grid-template-columns: 1fr;
}

.grid-4 {
    grid-template-columns: 1fr;
}

/* Cards */
.card,
.benefit-card,
.amenity-card,
.unit-card,
.listing-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.card:hover,
.benefit-card:hover,
.amenity-card:hover,
.unit-card:hover,
.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(212, 165, 116, 0.2);
}

.card img,
.amenity-card img,
.unit-card img,
.listing-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content,
.card-body {
    padding: 20px;
}

.card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.card p {
    font-size: 13px;
    color: #666;
}

/* Footer */
.footer {
    background: #2c2c2c;
    color: white;
    padding: 30px 20px 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #d4a574;
    font-family: 'Oswald', sans-serif;
}

.footer-section p {
    font-size: 13px;
    line-height: 1.8;
    color: #ccc;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #d4a574;
}

.social-icons-footer {
    display: flex;
    gap: 15px;
}

.social-icons-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #d4a574;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.social-icons-footer a:hover {
    background: #c9945f;
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 12px;
    color: #999;
}

/* Tablet Styles (768px and up) */
@media (min-width: 768px) {
    .container {
        max-width: 750px;
        padding: 0 20px;
    }

    .location {
        display: inline;
    }

    .menu-toggle {
        display: none;
    }

    .nav-menu {
        display: flex !important;
        position: static;
        flex-direction: row;
        box-shadow: none;
        max-height: none;
        overflow: visible;
    }

    .nav-menu li {
        border-bottom: none;
        position: relative;
    }

    .nav-menu a {
        padding: 15px 15px;
        font-size: 14px;
    }

    .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        flex-direction: column;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        min-width: 200px;
    }

    .dropdown:hover .dropdown-menu {
        display: flex;
    }

    .dropdown-menu li a {
        padding: 12px 20px;
        padding-left: 20px;
    }

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

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .page-title h1 {
        font-size: 36px;
    }

    .page-title p {
        font-size: 16px;
    }

    section h2 {
        font-size: 32px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .btn {
        width: auto;
    }
}

/* Desktop Styles (1024px and up) */
@media (min-width: 1024px) {
    .container {
        max-width: 1000px;
    }

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

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }

    section {
        padding: 50px 0;
    }
}

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .card,
    .nav-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        min-height: 44px;
        font-size: 16px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .menu-toggle,
    .btn {
        display: none;
    }

    body {
        background: white;
    }

    .container {
        max-width: 100%;
    }
}
