/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Circular', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #222;
    background-color: #fff;
    transition: opacity 0.3s ease;
}

/* Loading transition effect */
body.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid #ddd;
    z-index: 1000;
    padding: 0 24px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1760px;
    margin: 0 auto;
    height: 80px;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.logo-img {
    width: 100px;
    height: 100px;
}

/* Search Bar Styles */
.search-container {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 850px;
    margin: 0 auto;
}

.search-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 40px;
    padding: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease;
    height: 48px;
    min-width: 348px;
}

.search-bar:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.18);
}

.search-item {
    padding: 14px 16px;
    cursor: pointer;
    border-radius: 32px;
    transition: background-color 0.2s ease;
    flex: 1;
}

.search-item:hover {
    background-color: #ebebeb;
}

.search-item:first-child {
    padding-left: 24px;
}

.search-label {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
}

.search-divider {
    width: 1px;
    height: 32px;
    background-color: #ddd;
}

.search-button {
    background: #000000;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-button:hover {
    background: #000000;
}

.search-button i {
    color: #fff;
    font-size: 12px;
}

/* Right Menu Styles */
.right-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.host-link {
    text-decoration: none;
    color: #222;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 22px;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.host-link:hover {
    background-color: #f7f7f7;
}

.globe-button {
    background: none;
    border: none;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.globe-button:hover {
    background-color: #f7f7f7;
}

.globe-button i {
    font-size: 16px;
    color: #222;
}

.profile-menu {
    margin-left: 8px;
}

.menu-button {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 21px;
    padding: 5px 5px 5px 12px;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
    height: 42px;
}

.menu-button:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.18);
}

.menu-button i:first-child {
    font-size: 12px;
    color: #717171;
}

.menu-button i:last-child {
    font-size: 30px;
    color: #717171;
}

/* Main Content */
.main-content {
    padding: 40px 24px;
    max-width: 1760px;
    margin: 0 auto;
}

/* Listings Section */
.listings-section {
    margin-bottom: 48px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: #222;
    margin: 0;
}

.nav-arrow {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-arrow:hover {
    border-color: #222;
    transform: scale(1.04);
}

.nav-arrow i {
    font-size: 12px;
    color: #222;
}

/* Splide Carousel */
.splide {
    position: relative;
}

.splide__track {
    overflow: hidden;
}

.splide__list {
    display: flex;
    margin: 0;
    padding: 0;
}

.splide__slide {
    list-style: none;
    outline: none;
}

/* Property Card */
.property-card {
    cursor: pointer;
    transition: transform 0.2s ease;
    width: 100%;
}

.property-card:hover {
    transform: translateY(-2px);
}

.property-image {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.heart-button {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.heart-button:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.heart-button i {
    color: #fff;
    font-size: 14px;
}

.heart-button:hover i {
    color: #ff385c;
}

.guest-favorite {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #fff;
    color: #222;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Property Info */
.property-info {
    padding: 0 4px;
}

.property-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin: 0 0 2px 0;
    line-height: 1.2;
}

.property-price {
    font-size: 13px;
    color: #717171;
    margin: 0;
    line-height: 1.2;
}

.property-price strong {
    color: #222;
    font-weight: 600;
}

/* Splide Arrow Styling */
.splide__arrow {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    opacity: 1;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.splide__arrow:hover {
    border-color: #222;
    transform: scale(1.04);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.splide__arrow svg {
    fill: #222;
    width: 12px;
    height: 12px;
}

.splide__arrow--prev {
    left: -16px;
}

.splide__arrow--next {
    right: -16px;
}

.splide__arrow:disabled {
    opacity: 0.3;
}

/* Hide arrows on smaller screens */
@media (max-width: 768px) {
    .splide__arrow {
        display: none;
    }
}

/* Toronto-style property cards */
.property-card.toronto-style {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.property-card.toronto-style:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.property-card.toronto-style .property-image {
    height: 200px;
    position: relative;
}

.property-card.toronto-style .property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-card.toronto-style .property-info {
    padding: 12px;
}

.property-card.toronto-style .property-info h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #222;
}

.property-card.toronto-style .property-price {
    font-size: 13px;
    color: #717171;
}

/* Mobile 2-column grid styling for Lekki section */
@media (max-width: 576px) {
    #lekki-splide .splide__slide {
        width: calc(50% - 4px);
        margin-right: 8px;
    }
    
    #lekki-splide .property-card {
        width: 100%;
    }
    
    #lekki-splide .property-image {
        height: 140px;
    }
    
    #lekki-splide .property-info h3 {
        font-size: 12px;
        line-height: 1.1;
    }
    
    #lekki-splide .property-price {
        font-size: 11px;
    }
    
    #lekki-splide .heart-button {
        width: 24px;
        height: 24px;
        top: 6px;
        right: 6px;
    }
    
    #lekki-splide .heart-button i {
        font-size: 12px;
    }
    
    #lekki-splide .guest-favorite {
        font-size: 9px;
        padding: 3px 6px;
        top: 6px;
        left: 6px;
    }

    /* Mobile styling for Lagos Homes section */
    #lagos-homes-splide .splide__slide {
        width: calc(50% - 4px);
        margin-right: 8px;
    }
    
    #lagos-homes-splide .property-card {
        width: 100%;
    }
    
    #lagos-homes-splide .property-image {
        height: 140px;
    }
    
    #lagos-homes-splide .property-info h3 {
        font-size: 12px;
        line-height: 1.1;
    }
    
    #lagos-homes-splide .property-price {
        font-size: 11px;
    }
    
    #lagos-homes-splide .heart-button {
        width: 24px;
        height: 24px;
        top: 6px;
        right: 6px;
    }
    
    #lagos-homes-splide .heart-button i {
        font-size: 12px;
    }
    
    #lagos-homes-splide .guest-favorite {
        font-size: 9px;
        padding: 3px 6px;
        top: 6px;
        left: 6px;
    }

    /* Mobile Features Section */
    .features-section {
        padding: 24px 16px;
        margin: 24px 0;
    }

    .features-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 16px;
        gap: 12px;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
    }

    .feature-icon i {
        font-size: 16px;
    }

    .feature-content h3 {
        font-size: 14px;
    }

    .feature-content p {
        font-size: 12px;
    }
}

/* Features Section */
.features-section {
    background-color: #f7f7f7;
    padding: 48px 24px;
    margin: 48px 0;
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    background: #000000;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    color: #fff;
    font-size: 20px;
}

.feature-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.feature-content p {
    font-size: 14px;
    color: #717171;
    margin: 0;
    line-height: 1.4;
}

/* Deals Section */
.deals-section {
    margin-bottom: 48px;
}

.section-subtitle {
    font-size: 14px;
    color: #717171;
    margin: 4px 0 24px 0;
}

.deal-card {
    cursor: pointer;
    transition: transform 0.2s ease;
    width: 100%;
}

.deal-card:hover {
    transform: translateY(-2px);
}

.deal-image {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
}

.deal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.deal-card:hover .deal-image img {
    transform: scale(1.05);
}

.deal-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #003580;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
}

.deal-info {
    padding: 0 4px;
}

.deal-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.deal-location {
    font-size: 13px;
    color: #717171;
    margin: 0 0 8px 0;
}

.deal-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.rating-score {
    border: 2px solid #000000;
    color: #000;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
}

.rating-text {
    font-size: 12px;
    color: #222;
    font-weight: 500;
}

.rating-reviews {
    font-size: 12px;
    color: #717171;
}

.deal-badge-small {
    background: #000000;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
}

.deal-pricing {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nights {
    font-size: 12px;
    color: #717171;
}

.old-price {
    font-size: 12px;
    color: #717171;
    text-decoration: line-through;
}

.new-price {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

/* Destinations Section */
.destinations-section {
    margin-bottom: 28px;
}

.destination-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.destination-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.destination-image {
    width: 100%;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.destination-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.destination-card:hover .destination-image img {
    transform: scale(1.08);
}

.destination-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 40px 16px 16px;
    color: white;
}

.destination-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin: 0 0 4px 0;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.destination-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Footer Styles */
.footer {
    background-color: #f7f7f7;
    border-top: 1px solid #dddddd;
    padding: 48px 24px 24px;
    margin-top: 48px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin-bottom: 16px;
}

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

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

.footer-section a {
    color: #717171;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: #222;
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid #dddddd;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom-left p {
    margin: 0;
    font-size: 14px;
    color: #717171;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a {
    color: #717171;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-links span {
    color: #717171;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.language-currency {
    display: flex;
    gap: 16px;
}

.footer-button {
    background: none;
    border: none;
    color: #717171;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.footer-button:hover {
    background-color: #f0f0f0;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: #717171;
    font-size: 18px;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: #222;
}

/* Heart button transition styles */
.heart-button {
    transition: transform 0.15s ease, color 0.2s ease;
}

.heart-button:hover {
    transform: scale(1.1);
}

/* Mobile Search - Hidden by default */
.mobile-search {
    display: none;
}

/* Responsive Design */
@media (max-width: 1128px) {
    .property-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 950px) {
    .search-container {
        display: none;
    }
    
    .header-container {
        padding: 0 16px;
    }
    
    .host-link {
        display: none;
    }
    
    .property-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 16px;
    }
    
    .property-image {
        height: 240px;
    }
}

@media (max-width: 744px) {
    .header {
        padding: 0 16px;
        border-bottom: 1px solid #ddd;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .header-container {
        height: 60px;
        position: relative;
    }
    
    /* Mobile Header Layout */
    .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    
    .logo-img {
        width: 120px;
        height: 120px;
    }
    
    .right-menu {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        gap: 4px;
    }
    
    .globe-button {
        display: none;
    }
    
    .menu-button {
        display: flex;
        height: 36px;
        padding: 4px 4px 4px 8px;
        border-radius: 18px;
    }
    
    .menu-button i:first-child {
        font-size: 10px;
    }
    
    .menu-button i:last-child {
        font-size: 24px;
    }

    /* Mobile Footer */
    .footer {
        padding: 32px 16px 16px;
    }

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

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .footer-bottom-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer-bottom-right {
        width: 100%;
        justify-content: space-between;
    }

    .language-currency {
        gap: 12px;
    }

    .social-links {
        gap: 20px;
    }
    
    /* Mobile Search Bar */
    .mobile-search {
        display: block;
        margin: 16px 0;
        padding: 0 16px;
    }
    
    .mobile-search-bar {
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 24px;
        padding: 12px 16px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        gap: 12px;
        cursor: pointer;
        transition: box-shadow 0.2s ease;
    }
    
    .mobile-search-bar:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }
    
    .mobile-search-icon {
        background: #000;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .mobile-search-icon i {
        color: #fff;
        font-size: 14px;
    }
    
    .mobile-search-content {
        flex: 1;
    }
    
    .mobile-search-title {
        font-size: 14px;
        font-weight: 600;
        color: #222;
        margin: 0 0 2px 0;
    }
    
    .mobile-search-subtitle {
        font-size: 12px;
        color: #717171;
        margin: 0;
    }
    
    .mobile-filter-button {
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .mobile-filter-button i {
        color: #222;
        font-size: 14px;
    }
    
    .main-content {
        padding: 24px 16px;
    }
    
    .property-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
    
    .property-image {
        height: 200px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
}

/* Fixed Explore Map Button */
.explore-map-button {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.map-btn {
    background: #222;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: inherit;
}

.map-btn:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.map-btn i {
    font-size: 16px;
}

.map-btn span {
    white-space: nowrap;
}

/* Mobile adjustments for map button */
@media (max-width: 744px) {
    .explore-map-button {
        bottom: 20px;
    }
    
    .map-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .map-btn i {
        font-size: 14px;
    }
}

@media (max-width: 550px) {
    .property-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .property-image {
        height: 280px;
    }
}