/**
 * Invest Land Search Page Styles
 * Custom styles for land property search functionality
 */

/* ==========================================
   Search Form Styles
   ========================================== */

.search-form {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 203, 48, 0.2);
    padding: 2rem;
    border-radius: 0;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #000;
    border: 2px solid rgba(255, 203, 48, 0.3);
    transition: border-color 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: #ffcb30;
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #ffcb30;
    pointer-events: none;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.search-input {
    flex: 1;
    padding: 1.25rem 1.5rem 1.25rem 4rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.125rem;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.search-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 2rem;
    background: #ffcb30;
    color: #000;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.search-button:hover {
    background: #e6b31e;
    transform: translateX(4px);
}

.search-button-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.search-button:hover .search-button-icon {
    transform: translateX(4px);
}

/* Search Filters */
.search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
}

.filter-label input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: #ffcb30;
}

.filter-label span {
    transition: color 0.3s ease;
}

.filter-label:hover span {
    color: #ffcb30;
}

/* ==========================================
   Property Card Styles
   ========================================== */

.property-card {
    position: relative;
    background: #111;
    border: 1px solid rgba(255, 203, 48, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
}

.property-card:hover {
    border-color: rgba(255, 203, 48, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.property-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.property-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

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

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

.property-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.property-card:hover .property-overlay {
    opacity: 1;
}

.property-content {
    padding: 1.5rem;
}

.property-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    font-family: 'Playfair Display', serif;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.property-card:hover .property-title {
    color: #ffcb30;
}

.property-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffcb30;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.property-address i {
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 1;
}

.property-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 203, 48, 0.2);
}

.property-link-text {
    color: #ffcb30;
    font-weight: 600;
    font-size: 0.95rem;
}

.property-footer i {
    color: #ffcb30;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 1;
}

.property-card:hover .property-footer i {
    transform: translateX(4px);
}

/* ==========================================
   Loading & Results States
   ========================================== */

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Fade in animation for results */
.property-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation delay */
.property-card:nth-child(1) { animation-delay: 0.1s; }
.property-card:nth-child(2) { animation-delay: 0.2s; }
.property-card:nth-child(3) { animation-delay: 0.3s; }
.property-card:nth-child(4) { animation-delay: 0.4s; }
.property-card:nth-child(5) { animation-delay: 0.5s; }
.property-card:nth-child(6) { animation-delay: 0.6s; }

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 768px) {
    .search-form {
        padding: 1rem;
        border-radius: 0.5rem;
    }

    .search-input-wrapper {
        flex-direction: column;
        position: relative;
    }

    .search-input {
        padding: 1.125rem 1rem 1.125rem 3rem;
        font-size: 1rem;
        width: 100%;
        text-align: left;
        order: 1;
    }

    .search-icon {
        position: absolute;
        left: 1rem;
        top: 1.125rem;
        transform: none;
        font-size: 1.25rem;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }

    .search-button {
        width: 100%;
        justify-content: center;
        padding: 1.125rem 1rem;
        border-top: 1px solid rgba(255, 203, 48, 0.3);
        gap: 0.625rem;
        order: 2;
    }

    .search-button-text {
        font-size: 1rem;
        font-weight: 600;
    }

    .search-button-icon {
        font-size: 1.25rem;
        display: inline-flex;
        align-items: center;
    }

    .search-button:hover {
        transform: translateY(-2px);
    }

    .search-filters {
        gap: 1rem;
        font-size: 0.875rem;
    }

    .property-image {
        height: 220px;
    }

    .property-content {
        padding: 1.25rem;
    }

    .property-title {
        font-size: 1.125rem;
    }

    /* Fix icon alignment in property cards */
    .property-address i {
        font-size: 1rem;
        display: inline-flex;
        align-items: center;
    }

    .property-footer i {
        font-size: 1.125rem;
        display: inline-flex;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .search-form {
        padding: 0.875rem;
    }

    .search-input {
        font-size: 0.9375rem;
        padding: 1rem 0.875rem 1rem 2.625rem;
    }

    .search-icon {
        position: absolute;
        left: 0.875rem;
        top: 1rem;
        transform: none;
        font-size: 1.125rem;
    }

    .search-button {
        font-size: 0.9375rem;
        padding: 1rem 0.875rem;
        gap: 0.5rem;
    }

    .search-button-text {
        font-size: 0.9375rem;
    }

    .search-button-icon {
        font-size: 1.125rem;
    }

    .filter-label {
        font-size: 0.8125rem;
    }

    .filter-label input[type="checkbox"] {
        width: 1rem;
        height: 1rem;
    }

    .property-image {
        height: 200px;
    }

    /* Ensure icons are properly sized on small screens */
    .property-address i {
        font-size: 0.9375rem;
    }

    .property-footer i {
        font-size: 1rem;
    }
}

/* ==========================================
   Utility Classes
   ========================================== */

.col-span-full {
    grid-column: 1 / -1;
}

/* ==========================================
   Single Land Page - Gallery Swiper Styles
   ========================================== */

.landGallerySwiper {
    position: relative;
    padding-bottom: 50px;
}

.landGallerySwiper .swiper-button-next,
.landGallerySwiper .swiper-button-prev {
    color: #ffcb30;
    background: rgba(0, 0, 0, 0.5);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.landGallerySwiper .swiper-button-next:hover,
.landGallerySwiper .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.landGallerySwiper .swiper-button-next:after,
.landGallerySwiper .swiper-button-prev:after {
    font-size: 20px;
}

.landGallerySwiper .swiper-pagination {
    bottom: 15px;
}

.landGallerySwiper .swiper-pagination-bullet {
    background: #ffcb30;
    opacity: 0.5;
    width: 10px;
    height: 10px;
    transition: all 0.3s ease;
}

.landGallerySwiper .swiper-pagination-bullet-active {
    opacity: 1;
    width: 30px;
    border-radius: 5px;
}

.landGallerySwiper .gallery-item {
    cursor: pointer;
}

.landGallerySwiper .gallery-item img {
    transition: transform 0.5s ease;
}

.landGallerySwiper .swiper-slide-active .gallery-item img {
    transform: scale(1.02);
}

/* Mobile adjustments for gallery */
@media (max-width: 768px) {
    .landGallerySwiper .swiper-button-next,
    .landGallerySwiper .swiper-button-prev {
        width: 36px;
        height: 36px;
    }

    .landGallerySwiper .swiper-button-next:after,
    .landGallerySwiper .swiper-button-prev:after {
        font-size: 16px;
    }

    .landGallerySwiper {
        padding-bottom: 40px;
    }
}
