/* DIYA DIVINE STAY - HOME PAGE MODERN STYLES */
/* Brand Colors: #b7d57b (Green) and #543e20 (Brown) */

/* ===== LOCATION CARDS ANIMATIONS ===== */
.location-card-modern {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.location-card-modern:nth-child(1) { animation-delay: 0.1s; }
.location-card-modern:nth-child(2) { animation-delay: 0.2s; }
.location-card-modern:nth-child(3) { animation-delay: 0.3s; }

.location-card-modern:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(84, 62, 32, 0.4) !important;
    border: 2px solid #b7d57b;
}

.location-card-modern:hover .icon-wrapper {
    transform: scale(1.2) rotate(10deg);
    color: #543e20 !important;
}

.location-card-modern:hover div[style*="background: rgba(183, 213, 123, 0.1)"] {
    width: 200px !important;
    height: 200px !important;
    background: rgba(183, 213, 123, 0.2) !important;
}

.location-card-modern:hover div[style*="width: 50px"] {
    width: 80px !important;
}

/* ===== NEARBY FACILITIES ANIMATIONS ===== */
.facility-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.facility-item:nth-child(1) { animation-delay: 0.1s; }
.facility-item:nth-child(2) { animation-delay: 0.15s; }
.facility-item:nth-child(3) { animation-delay: 0.2s; }
.facility-item:nth-child(4) { animation-delay: 0.25s; }
.facility-item:nth-child(5) { animation-delay: 0.3s; }
.facility-item:nth-child(6) { animation-delay: 0.35s; }

.facility-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(84, 62, 32, 0.3) !important;
    border: 2px solid #b7d57b !important;
}

.facility-item:hover .facility-icon {
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 10px 25px rgba(183, 213, 123, 0.5) !important;
}

/* ===== AMENITIES ANIMATIONS ===== */
.amenity-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.amenity-item:nth-child(1) { animation-delay: 0.05s; }
.amenity-item:nth-child(2) { animation-delay: 0.1s; }
.amenity-item:nth-child(3) { animation-delay: 0.15s; }
.amenity-item:nth-child(4) { animation-delay: 0.2s; }
.amenity-item:nth-child(5) { animation-delay: 0.25s; }
.amenity-item:nth-child(6) { animation-delay: 0.3s; }
.amenity-item:nth-child(7) { animation-delay: 0.35s; }
.amenity-item:nth-child(8) { animation-delay: 0.4s; }
.amenity-item:nth-child(9) { animation-delay: 0.45s; }
.amenity-item:nth-child(10) { animation-delay: 0.5s; }
.amenity-item:nth-child(11) { animation-delay: 0.55s; }
.amenity-item:nth-child(12) { animation-delay: 0.6s; }

.amenity-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid #b7d57b !important;
}

.amenity-item:hover .amenity-icon-wrapper {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 10px 25px rgba(183, 213, 123, 0.5) !important;
}

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ===== SECTION TITLE ANIMATIONS ===== */
.prime-location-section h2,
.nearby-facilities-section h2,
.amenities-section h2 {
    animation: fadeInDown 0.8s ease-out;
}

.prime-location-section div[style*="width: 80px"],
.nearby-facilities-section div[style*="width: 80px"],
.amenities-section div[style*="width: 80px"] {
    animation: expandWidth 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 80px;
    }
}

/* ===== ICON PULSE ANIMATION ===== */
.facility-icon,
.amenity-icon-wrapper {
    animation: pulse 2s infinite;
}

.facility-icon:hover,
.amenity-icon-wrapper:hover {
    animation: none;
}

/* ===== COMPLEMENTARY ITEMS ANIMATION ===== */
.amenities-section .row:last-child .col-md-2,
.amenities-section .row:last-child .col-sm-4,
.amenities-section .row:last-child .col-xs-6 {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.amenities-section .row:last-child .col-md-2:nth-child(1) { animation-delay: 0.1s; }
.amenities-section .row:last-child .col-md-2:nth-child(2) { animation-delay: 0.2s; }
.amenities-section .row:last-child .col-md-2:nth-child(3) { animation-delay: 0.3s; }
.amenities-section .row:last-child .col-md-2:nth-child(4) { animation-delay: 0.4s; }
.amenities-section .row:last-child .col-md-2:nth-child(5) { animation-delay: 0.5s; }

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .location-card-modern,
    .facility-item,
    .amenity-item {
        margin-bottom: 20px;
    }
    
    .prime-location-section h2,
    .nearby-facilities-section h2,
    .amenities-section h2 {
        font-size: 32px !important;
    }
}

@media (max-width: 480px) {
    .prime-location-section h2,
    .nearby-facilities-section h2,
    .amenities-section h2 {
        font-size: 28px !important;
    }
    
    .location-card-modern h3 {
        font-size: 28px !important;
    }
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== BACKGROUND PATTERN ANIMATION ===== */
.prime-location-section > div:first-child,
.amenities-section > div:first-child {
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

/* ===== GLOW EFFECT ON HOVER ===== */
.location-card-modern:hover,
.facility-item:hover,
.amenity-item:hover {
    box-shadow: 0 0 30px rgba(183, 213, 123, 0.6) !important;
}

/* ===== ICON ROTATION ON HOVER ===== */
.facility-icon i,
.amenity-icon-wrapper i {
    transition: all 0.4s ease;
}

.facility-item:hover .facility-icon i,
.amenity-item:hover .amenity-icon-wrapper i {
    transform: rotateY(360deg);
}


/* ===== COMPLEMENTARY ITEMS ANIMATIONS ===== */
.complementary-section {
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

.complementary-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.complementary-item:nth-child(1) { animation-delay: 0.1s; }
.complementary-item:nth-child(2) { animation-delay: 0.2s; }
.complementary-item:nth-child(3) { animation-delay: 0.3s; }
.complementary-item:nth-child(4) { animation-delay: 0.4s; }
.complementary-item:nth-child(5) { animation-delay: 0.5s; }

.complementary-item:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.25) !important;
    border: 2px solid #b7d57b !important;
    box-shadow: 0 10px 25px rgba(183, 213, 123, 0.4);
}

.complementary-item:hover div {
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 8px 20px rgba(183, 213, 123, 0.5) !important;
}

/* Complementary section title animation */
.complementary-section > div:first-child > div {
    animation: pulse 2s infinite;
}

.complementary-section:hover > div:first-child > div {
    animation: none;
    transform: scale(1.05);
}

/* ===== ENHANCED AMENITY ITEMS ===== */
.amenity-item {
    position: relative;
    overflow: hidden;
}

.amenity-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(183, 213, 123, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.amenity-item:hover::before {
    opacity: 1;
    animation: shine 1.5s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* ===== ICON BOUNCE ON HOVER ===== */
.amenity-icon-wrapper:hover,
.complementary-item div:hover {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    25% {
        transform: translateY(-10px) scale(1.1);
    }
    50% {
        transform: translateY(-5px) scale(1.15);
    }
    75% {
        transform: translateY(-8px) scale(1.12);
    }
}

/* ===== RESPONSIVE COMPLEMENTARY ITEMS ===== */
@media (max-width: 768px) {
    .complementary-section {
        padding: 30px 20px !important;
    }
    
    .complementary-section h4 {
        font-size: 20px !important;
    }
    
    .complementary-item {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .complementary-section h4 {
        font-size: 18px !important;
    }
    
    .complementary-item div {
        width: 50px !important;
        height: 50px !important;
    }
    
    .complementary-item i {
        font-size: 20px !important;
    }
}
