/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(6, 5, 19, 0.16);
    /* semi-transparent dark */
    transition: background 0.3s, color 0.3s;
}

.header .container {
    display: flex;
    margin-left: 2.5rem;
    margin-right: 2.5rem;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.header-logo {
    padding-right: 20px;
    padding: .5rem;


}

.header-logo img {
    height: 50px;
    transition: filter 0.3s;
}



.header-menu ul {
    display: flex;
    gap: 40px;
    padding: 0 20px;
    list-style: none;
    margin: 0;


}

.header-menu li a {
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 0;
}

.header-menu li a:hover {
    color: #2853A0;
}

/* Active Menu Item */
.header-menu li a.active {
    color: #4c66af;
    font-weight: 600;
}

.header-menu {
    flex: 1;
}

/* Hamburger menu - hidden by default on desktop */
.hamburger {
    display: none;
}



.header-menu li a {
    color: #fff;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 0;
    text-decoration: none;
}

.header-menu li a:hover {
    color: #2853A0;
}

/* Header styles */
.hero01 {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/images/gracklepool.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 90vh;
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo img {
    height: 40px;
}

.hero {
    max-width: 1080px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
    box-sizing: border-box;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    margin-top: 0;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Search form styles */
.search-container {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.search-btn {
    grid-column: span 2;
    /* Button spans 2 columns in second row */
    width: 100%;
    box-sizing: border-box;
}

/* On smaller screens, adjust grid */
@media (max-width: 1024px) {
    .search-form {
        grid-template-columns: repeat(3, 1fr);
    }

    .search-btn {
        grid-column: span 1;
        /* Button takes 1 column on tablet */
    }
}

@media (max-width: 768px) {
    .search-form {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-btn {
        grid-column: span 2;
        /* Button spans full width on mobile */
    }
}

.search-input {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
    /* Prevents grid overflow */
}

input[type="date"].greycolor {
    color: #757575 !important;
    opacity: 1;
}

.search-btn {
    background: linear-gradient(to right, #393185, #C31E56);
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background: #393F78;
}

/* Experience section styles */
.experience {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #fff;
    max-width: 1200px;
    margin: 0 auto;
}

.experience h2 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.experience-subtitle {
    color: #666;
    margin-bottom: 2rem;
}

.experience-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    background-color: #393F78;
    border-radius: 15px;
}

.phone-image {
    flex: 1;

}

.phone-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;

}

.features-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    background-color: #393F78;
    padding: 2rem;
    border-radius: 15px;
}

.feature-card {
    background-color: #393F78;
    border-radius: 10px;
    padding: 2rem 1.5rem;
    color: white;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
}

/* Spaces section styles */
.spaces {
    padding: 4rem 2rem;
    background: #393F78;
    color: white;
}

.spaces-header {
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.spaces-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.spaces-header p {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 600px;
}

.spaces-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.space-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.space-card:hover {
    transform: translateY(-5px);
}

.space-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.space-card:hover img {
    transform: scale(1.05);
}

.space-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    color: white;
}

.space-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.space-card:hover .arrow {
    transform: translateX(5px);
}

.space-content p {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.4;
}

/* Map section styles */
.map-section {
    padding: 4rem 2rem;
    text-align: center;
}

.map-container {
    height: 400px;
    background: #e2e8f0;
    border-radius: 10px;
    margin: 2rem 0;
}

.explore-btn {

    background: linear-gradient(to right, #393185, #C31E56);
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}


.explore-btn:hover {
    background: #393F78;
}

/* Testimonials section styles */
.testimonials {
    padding: 4rem 2rem;
    background: #f8fafc;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.rating {
    color: #f59e0b;
    margin-bottom: 1rem;
}

.author {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
}

/* Mobile app section styles */
.mobile-app {
    padding: 4rem 2rem;
    text-align: center;
    background: #000000;
    color: white;
}

.app-buttons {
    margin-top: 2rem;
}

.app-store-btn {
    background: linear-gradient(to right, #393185, #C31E56);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    text-decoration: none;
}

.app-store-btn:hover {
    background: #393F78;
}

/* Footer styles */
.footer {
    background: #0A1833;
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    padding: 0;
}

.footer-section h3 {
    margin: 0 0 1rem 0;
    padding: 0;
    text-align: left;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    margin-left: 0;
    padding-left: 0;
    text-align: left;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #334155;
}

/* Responsive design - Large tablets and smaller */
@media (max-width: 1200px) {
    .hero {
        max-width: 100%;
        padding: 0 1.5rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .search-form {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .hero01 {
        padding: 1.5rem;
        min-height: 85vh;
        background-attachment: scroll;
    }

    .hero {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .hero p {
        font-size: 1.15rem;
    }

    .search-container {
        padding: 1.25rem;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .search-form {
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
        max-width: 100%;
    }

    .search-btn {
        grid-column: span 1;
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .hero01 {
        padding: 1.25rem;
        min-height: 80vh;
    }

    .hero {
        padding: 0 0.75rem;
    }

    .hero h1 {
        font-size: 2.25rem;
        margin-bottom: 0.875rem;
    }

    .hero p {
        font-size: 1.05rem;
        margin-bottom: 1.75rem;
    }

    .search-container {
        padding: 1.25rem;
        margin: 0;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .search-form {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
        width: 100%;
        max-width: 100%;
    }

    .search-btn {
        grid-column: span 2;
        width: 100%;
        box-sizing: border-box;
    }

    .search-input {
        font-size: 16px;
        /* Prevents zoom on iOS */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .features-grid,
    .spaces-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero01 {
        padding: 1rem;
        min-height: 75vh;
        background-attachment: scroll;
    }

    .hero {
        padding: 0 0.5rem;
    }

    .hero h1 {
        font-size: 1.875rem;
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    /* Search form mobile styles */
    .search-container {
        padding: 1rem;
        margin: 0;
        border-radius: 8px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .search-form {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        width: 100%;
        max-width: 100%;
    }

    .search-btn {
        grid-column: span 1;
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        font-weight: 600;
        margin-top: 0.25rem;
        box-sizing: border-box;
    }

    .search-input {
        padding: 0.9rem;
        font-size: 16px;
        /* Prevents zoom on iOS */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    /* Mobile number input - show numeric keypad on mobile */
    input[type="tel"] {
        -webkit-appearance: none;
    }

    .search-input:focus {
        outline: 2px solid #393185;
        outline-offset: -2px;
    }

    .search-btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        font-weight: 600;
        margin-top: 0.25rem;
    }

    .header {
        min-height: unset;
        padding: 0.5rem 0;
        position: fixed;
        height: auto;
    }

    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        position: relative;
        min-height: 60px;
    }

    .header-menu {
        position: relative;
    }

    .header-menu ul {
        display: none;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 32px;
        height: 32px;
        cursor: pointer;
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1100;
        background: transparent;
        border: none;
        padding: 0;
    }

    .hamburger span {
        display: block;
        height: 3px;
        width: 100%;
        background: #fff;
        margin: 3px 0;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .header.header-scrolled .hamburger span {
        background: #393185;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .header-menu.active ul {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 10px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        border-radius: 10px;
        padding: 1rem 2rem;
        gap: 1.5rem;
        z-index: 1001;
        min-width: 200px;
        width: auto;
    }

    .header-menu.active ul li a {
        color: #393185;
        font-size: 1.1rem;
    }
}

@media (max-width: 1024px) {
    .experience-container {
        flex-direction: column;
        gap: 2rem;
    }

    .phone-image {
        position: static;
        left: unset;
        bottom: unset;
        transform: none;
        width: 250px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }

    .features-grid {
        width: 100%;
        margin: 0;
    }

    .spaces-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .experience-container {
        padding-bottom: 40px;
    }

    .phone-image {
        width: 200px;
        position: static;
        left: unset;
        bottom: unset;
        transform: none;
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: 150px;
    }

    .spaces-grid {
        grid-template-columns: 1fr;
    }

    .spaces-header h2 {
        font-size: 2rem;
    }

    .space-card {
        aspect-ratio: 16/9;
    }
}

/* Extra small devices (phones in portrait, below 360px) */
@media (max-width: 360px) {
    .hero01 {
        padding: 0.75rem;
        min-height: 70vh;
    }

    .hero {
        padding: 0 0.25rem;
    }

    .hero h1 {
        font-size: 1.625rem;
        margin-bottom: 0.625rem;
    }

    .hero p {
        font-size: 0.875rem;
        margin-bottom: 1.25rem;
    }

    .search-container {
        padding: 0.875rem;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .search-form {
        gap: 0.625rem;
        width: 100%;
        max-width: 100%;
    }

    .search-input {
        padding: 0.8rem;
        font-size: 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .search-btn {
        padding: 0.9rem;
        font-size: 0.95rem;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Get inspired section styles */
.inspired-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.inspired-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    text-align: center;
}

.inspired-header h2 {
    font-size: 2rem;
    color: #1a1a1a;
    margin: 0;
}

.inspired-header p {
    color: #666;
    margin: 0;
}

.slider-controls {
    display: flex;
    gap: 1rem;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.inspired-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    padding-bottom: 1rem;
}

.inspired-slider::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.property-card-link {
    text-decoration: none;
    color: inherit;
    width: 280px;
    /* Fixed width */
    flex-shrink: 0;
    display: block;
}

.property-card {
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    scroll-snap-align: start;
    width: 100%;
}

.property-card:hover {
    transform: translateY(-5px);
}

.property-card img {
    width: 100%;
    height: 200px;
    /* Standardized height */
    object-fit: cover;
}

.property-info {
    padding: 1rem;
}

.property-info h3 {
    font-size: 1rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.property-info p {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

@media (max-width: 1024px) {
     .inspired-slider {
        justify-content: normal;
    } 
}

@media (max-width: 768px) {
    .inspired-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

     .inspired-slider {
        justify-content: normal;
    } 
}

@media (max-width: 480px) {
     .inspired-slider {
        justify-content: normal;
    } 

    .property-card {
        flex: 0 0 200px;
        max-width: 200px;
    }

    .property-card img {
        height: 180px;
    }
}

/* Header scroll effect styles */
.header.header-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    /* white 95% */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: background-color 0.3s ease;
}

.header.header-scrolled .header-logo img {
    transition: filter 0.3s;
}

.header.header-scrolled .header-menu li a {
    color: #222;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header.header-scrolled .header-menu li a:hover {
    color: #393185;
}