:root {
    --accent-hover: var(--primary-color, #1e3799);
    --text-light: var(--white, #ffffff);
    --text-dark: var(--text-color, #2c3e50);
    --text-gray: #95a5a6;
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --btn-primary: var(--accent-color, #4a69bd);
    --btn-primary-hover: var(--primary-color, #1e3799);
    --btn-secondary: rgba(255, 255, 255, 0.2);
    --btn-secondary-hover: rgba(255, 255, 255, 0.3);
    --spinner-primary: var(--accent-color, #4a69bd);
    --spinner-secondary: var(--primary-color, #1e3799);
}

.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.6) 50%,
            rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 40px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease;
    text-align: center;
    width: 100%;
}

.search-box {
    position: relative;
    border-radius: 15px;
    padding: 25px;
    width: 100%;
    max-width: 1000px;
    margin: 100px auto 0;
    z-index: 10;
}

.search-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    align-items: flex-end;
}

.search-input {
    position: relative;
    width: 100%;
}

.search-input label {
    display: block;
    color: white;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
    opacity: 0.9;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 15px;
    transition: all 0.3s ease;
}

.input-wrapper input:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.input-wrapper input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.input-wrapper input:focus+i {
    color: rgba(255, 255, 255, 0.9);
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-btn {
    background: linear-gradient(135deg, var(--btn-primary) 0%, var(--btn-primary-hover) 100%);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.search-btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 105, 189, 0.3);
}

.search-btn:hover i {
    transform: scale(1.1);
}

.search-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(74, 105, 189, 0.2);
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: 0.5s;
}

.search-btn:hover::before {
    left: 100%;
}

.search-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 30px 30px 30px 30px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    min-height: 300px;
}

.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--spinner-primary);
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

.spinner-inner {
    position: absolute;
    top: 15%;
    left: 15%;
    width: 70%;
    height: 70%;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--spinner-secondary);
    border-radius: 50%;
    animation: spin 1.8s linear infinite reverse;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



.listing-card {
    background: linear-gradient(135deg, #1e3799, #0c2461);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(14, 25, 97, 0.3);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 450px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(14, 25, 97, 0.4);
    background: linear-gradient(135deg, #273c9c, #1e3799);
}

.listing-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.listing-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
}

.listing-image-placeholder i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.5);
}

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

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

.price-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffffff;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    z-index: 2;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 5px;
}

.price-tag .amount {
    font-size: 1.1rem;
    color: #1e3799;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.price-tag .period {
    font-size: 0.9rem;
    color: rgba(30, 55, 153, 0.8);
    font-weight: 600;
}

.listing-details {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.listing-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.location i {
    color: var(--text-light);
}



.property-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    color: var(--text-light);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.feature-item i {
    color: white;
    font-size: 18px;
}

.feature-item div {
    color: white;
    margin-top: 5px;
    font-size: 14px;
}

.btn-reservation {
    background: var(--btn-primary);
    color: var(--text-light);
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-reservation::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn-reservation:hover {
    background: linear-gradient(135deg, #4a69bd, #1e3799);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 55, 153, 0.4);
}

.btn-reservation:hover::before {
    left: 100%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 15px 15px;
    margin: 0 auto;
    max-width: 1200px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card i {
    font-size: 2rem;
    color: #ffffff !important;
    margin-bottom: 15px;
    transition: transform 0.4s ease;
    position: relative;
}

.feature-card:hover i {
    transform: scale(1.1) rotate(-5deg);
}

.feature-card h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 10px;
    position: relative;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-results {
    margin-top: 15px;
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.results-info {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 16px;
}

.results-info .count {
    background: linear-gradient(135deg, #4f6ef7 0%, #3b5fe9 100%);
    color: white;
    font-weight: 600;
    font-size: 24px;
    padding: 8px 16px;
    border-radius: 12px;
    min-width: 60px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(79, 110, 247, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.results-info i {
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    animation: bounce 1s infinite;
    margin-left: 5px;
}

.daterangepicker {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-family: inherit;
}

.daterangepicker .calendar-table {
    background: transparent;
    border: none;
}

.daterangepicker td.available:hover {
    background-color: #4CAF50 !important;
    color: white !important;
}

.error-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 59, 48, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-8px);
    }

    60% {
        transform: translateY(-4px);
    }
}

@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 25px 15px;
    }

    .search-row {
        grid-template-columns: 1.2fr 1.32fr 1fr auto;
    }

    .date-picker input {
        font-size: 0.89rem;
        letter-spacing: -0.35px;
    }

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

@media (max-width: 992px) {
    .search-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .date-picker input {
        font-size: 1rem;
        letter-spacing: normal;
    }

    .search-box {
        padding: 15px;
    }

    .listings-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        padding: 20px;
    }
}

@media (max-width: 768px) {


    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px 15px;
    }

    .feature-card {
        padding: 20px 15px;
    }

    .feature-card i {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    .feature-card p {
        font-size: 0.85rem;
    }


}

@media (max-width: 480px) {
    .feature-card {
        padding: 20px 15px;
    }


}