/* Modern Homepage Styles */

/* Particles Background */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    top: 80%;
    left: 10%;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    top: 30%;
    left: 70%;
    animation-delay: 1s;
}

.particle:nth-child(5) {
    top: 70%;
    left: 40%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Modern Hero Section */
.modern-hero-section {
    position: relative;
    min-height: 60vh; /* Further reduced from 75vh to 60vh */
    overflow: hidden;
    padding-bottom: 0; /* Ensure no extra spacing */
    margin-bottom: 0; /* Remove any bottom margin */
}

.hero-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 60vh; /* Further reduced from 75vh to 60vh */
    display: flex;
    align-items: center;
    padding: 40px 0; /* Reduced padding */
    margin-bottom: 0; /* Remove any bottom margin */
}

.hero-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
}

.hero-content-modern {
    position: relative;
    z-index: 3;
    padding: 20px 0; /* Further reduced from 40px to 20px */
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 12px 24px;
    color: white;
    font-weight: 500;
    margin-bottom: 30px;
    animation: slideInUp 1s ease-out;
}

.hero-badge i {
    color: #ffd700;
    margin-right: 8px;
    font-size: 16px;
}

.hero-title {
    font-size: 3.2rem; /* Reduced from 4rem to 3.2rem */
    font-weight: 900;
    color: white;
    line-height: 1.2;
    margin-bottom: 25px; /* Reduced from 30px to 25px */
    animation: slideInUp 1s ease-out 0.2s both;
}

.title-line {
    display: block;
}

.title-highlight {
    display: block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.1rem; /* Reduced from 1.3rem to 1.1rem */
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 30px; /* Reduced from 40px to 30px */
    max-width: 500px;
    animation: slideInUp 1s ease-out 0.4s both;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 30px; /* Reduced from 40px to 30px */
    margin-bottom: 35px; /* Reduced from 50px to 35px */
    animation: slideInUp 1s ease-out 0.6s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.2rem; /* Reduced from 2.5rem to 2.2rem */
    font-weight: 900;
    color: #ffd700;
    line-height: 1;
    margin-bottom: 6px; /* Reduced from 8px to 6px */
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 20px;
    animation: slideInUp 1s ease-out 0.8s both;
}

.modern-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    padding: 18px 35px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.modern-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.modern-btn-outline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 16px 35px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.modern-btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    text-decoration: none;
    transform: translateY(-3px);
}

/* Floating Card */
.hero-image-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.floating-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    animation: floatCard 3s ease-in-out infinite;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.card-content h4 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
}

.card-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Modern Search Section */
.modern-search-section {
    position: relative;
    padding: 60px 0; /* Consistent padding */
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    margin-top: 0; /* Remove negative margin to prevent overlap */
    z-index: 5;
}

.modern-search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px; /* Reduced height for smoother transition */
    background: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, rgba(248, 250, 252, 1) 100%);
    z-index: -1;
}

/* Modern Search Container */
.modern-search-container {
    position: relative;
    margin-top: 0; /* Reset margin since it's now in its own section */
    padding: 0 15px;
    z-index: 3;
    box-sizing: border-box;
}

.modern-search-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 100%;
    overflow: visible;
    box-sizing: border-box;
    margin: 0 auto;
    /* Remove transform to prevent covering hero content */
}

/* Ensure smooth transition between hero and search sections */
.modern-hero-section + .modern-search-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}

/* Remove any potential spacing issues */
.modern-search-section .container {
    padding-top: 0;
    padding-bottom: 0;
}

/* Enhanced visual effects for search section */
.modern-search-section .modern-search-card {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: visible;
}

.modern-search-section .modern-search-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #667eea, #764ba2, #667eea);
    border-radius: 22px;
    z-index: -1;
    opacity: 0.1;
    animation: borderGlow 3s ease-in-out infinite alternate;
}

@keyframes borderGlow {
    0% { opacity: 0.1; }
    100% { opacity: 0.3; }
}

.search-header {
    text-align: center;
    margin-bottom: 30px;
}

.search-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.search-header p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

.search-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 200px;
    gap: 20px;
    align-items: end;
}

@media (max-width: 1600px) {
    .search-grid {
        grid-template-columns: 1fr 1fr 1fr 0.8fr 180px;
    }
}

@media (max-width: 1400px) {
    .search-grid {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto auto;
    }
    
    .search-group:nth-child(4) {
        grid-column: 1;
        grid-row: 2;
    }
    
    .search-button-group {
        grid-column: 2 / -1;
        grid-row: 2;
    }
}

@media (max-width: 1200px) {
    .search-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
    }
    
    .search-group:nth-child(3) {
        grid-column: 1;
        grid-row: 2;
    }
    
    .search-group:nth-child(4) {
        grid-column: 2;
        grid-row: 2;
    }
    
    .search-button-group {
        grid-column: 1 / -1;
        grid-row: 3;
    }
}

@media (max-width: 992px) {
    .search-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .search-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.search-input-wrapper {
    position: relative;
    background: #f8f9ff;
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
}

.search-input-wrapper:hover,
.search-input-wrapper:focus-within {
    border-color: #667eea;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.1);
}

.input-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #667eea;
    font-size: 18px;
    z-index: 2;
}

.input-content {
    flex: 1;
    min-width: 0; /* Allow shrinking */
    position: relative;
    padding-right: 35px; /* Space for icon */
}

.input-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modern-input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    padding: 4px 0;
    z-index: 1;
    box-sizing: border-box;
}

.modern-input:focus {
    outline: none;
    box-shadow: none;
}

.modern-search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 15px;
    padding: 15px 20px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    width: 100%;
    min-height: 70px;
    white-space: nowrap;
    box-sizing: border-box;
}

.modern-search-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

/* Enhanced form styling */
.modern-input[type="date"] {
    color: #374151;
    cursor: pointer;
    padding-right: 25px !important; /* Space for calendar icon */
    position: relative;
    z-index: 1;
}

.modern-input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    color: #6366f1;
    cursor: pointer;
    font-size: 16px;
    padding: 2px;
    border-radius: 4px;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    z-index: 2;
}

.modern-input[type="date"]::-webkit-calendar-picker-indicator:hover {
    background: rgba(99, 102, 241, 0.1);
}

.modern-input[type="number"] {
    appearance: textfield; /* Standard */
    -moz-appearance: textfield; /* Firefox */
}

.modern-input[type="number"]::-webkit-outer-spin-button,
.modern-input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Error message styling */
.search-error-message {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin-top: 15px !important;
    font-size: 14px !important;
    text-align: center !important;
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state for search button */
.modern-search-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.modern-search-btn .spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.1em;
}

/* Modern About Section */
.modern-about-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.about-images-container {
    position: relative;
}

.main-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-image:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-image:hover .image-overlay {
    opacity: 1;
}

.play-button {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
}

.secondary-images {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.secondary-image {
    flex: 1;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.secondary-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.secondary-image:hover img {
    transform: scale(1.05);
}

.floating-badge {
    position: absolute;
    bottom: 20px;
    right: -20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
    animation: floatBadge 3s ease-in-out infinite;
}

.badge-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.badge-text {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 5px;
}

@keyframes floatBadge {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.about-content-modern {
    padding-left: 50px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 20px;
    gap: 8px;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    color: #333;
    line-height: 1.2;
    margin-bottom: 30px;
}

.section-description {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 900;
    color: #333;
    margin: 0 0 5px 0;
}

.stat-info p {
    color: #666;
    margin: 0;
    font-weight: 500;
}

/* Modern Offer Section */
.modern-offer-section {
    padding: 100px 0;
    background: #fff;
    position: relative;
}

.section-header-modern {
    margin-bottom: 80px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.modern-offer-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-bottom: 40px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-offer-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 80px rgba(102, 126, 234, 0.15);
}

.offer-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.offer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.modern-offer-card:hover .offer-image {
    transform: scale(1.1);
}

.offer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-offer-card:hover .offer-overlay {
    opacity: 1;
}

.offer-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid white;
    border-radius: 50px;
    padding: 15px 30px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    animation: pulse 2s ease-in-out infinite;
}

.offer-content-modern {
    padding: 35px 30px;
    position: relative;
    z-index: 2;
}

.offer-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.offer-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.modern-offer-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.modern-offer-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.modern-offer-btn i {
    transition: transform 0.3s ease;
}

.modern-offer-btn:hover i {
    transform: translateX(5px);
}

.offer-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modern-offer-card:hover .offer-glow {
    opacity: 1;
}

/* Modern Featured Rooms Section */
.modern-featured-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.modern-featured-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -15%;
    width: 80%;
    height: 120%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.03) 0%, transparent 70%);
    transform: rotate(15deg);
    pointer-events: none;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.room-card-modern {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.room-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.room-card-modern:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 80px rgba(102, 126, 234, 0.15);
}

.room-card-modern:hover::before {
    opacity: 1;
}

.room-image-container {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.room-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.room-card-modern:hover .room-image {
    transform: scale(1.1);
}

.discount-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 20px;
    font-weight: 700;
    z-index: 3;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.discount-percentage {
    font-size: 1.1rem;
    display: block;
    line-height: 1;
}

.discount-text {
    font-size: 0.8rem;
    opacity: 0.9;
}

.room-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.room-card-modern:hover .room-overlay {
    opacity: 1;
}

.room-features {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.room-card-modern:hover .room-features {
    transform: translateY(0);
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 500;
}

.feature-item i {
    font-size: 1.2rem;
}

.favorite-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
}

.favorite-btn:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1);
}

/* Favorited state */
.favorite-btn.favorited {
    background: #ef4444;
    color: white;
    transform: scale(1.1);
}

.favorite-btn.favorited::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid #ef4444;
    border-radius: 50%;
    animation: heartPulse 1s ease-out;
}

@keyframes heartPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.room-content-modern {
    padding: 30px;
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.room-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
    margin-right: 15px;
}

.room-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.room-title a:hover {
    color: #667eea;
    text-decoration: none;
}

.room-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    padding: 8px 15px;
    border-radius: 25px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.3);
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    font-size: 0.8rem;
}

.price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.old-price {
    font-size: 1rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.current-price {
    font-size: 1.6rem;
    font-weight: 900;
    color: #667eea;
    line-height: 1;
}

.price-unit {
    font-size: 0.9rem;
    color: #666;
}

.modern-book-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 25px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    border: none;
    cursor: pointer;
}

.modern-book-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.modern-book-btn i {
    transition: transform 0.3s ease;
}

.modern-book-btn:hover i {
    transform: translateX(5px);
}

/* Loading spinner for buttons */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.1em;
}

.spinner-border {
    display: inline-block;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-hero-section {
        min-height: 60vh; /* Reduced for mobile */
    }
    
    .hero-slide {
        min-height: 60vh; /* Reduced for mobile */
        padding: 40px 0;
    }
    
    .hero-row {
        min-height: 60vh;
    }
    
    .hero-content-modern {
        padding: 20px 0;
    }
    
    .hero-title {
        font-size: 2.2rem; /* Reduced from 2.5rem */
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 15px; /* Reduced gap */
        text-align: center;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .modern-btn-primary,
    .modern-btn-outline {
        width: 100%;
        justify-content: center;
    }
    
    .search-grid {
        grid-template-columns: 1fr;
    }
    
    .modern-search-section {
        padding: 50px 0; /* Reduced for tablet */
        margin-top: 0; /* No overlap */
    }
    
    .modern-search-container {
        position: relative;
        bottom: auto;
        margin-top: 0;
        padding: 0 10px;
    }
    
    .about-content-modern {
        padding-left: 0;
        margin-top: 50px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-badge {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 20px;
        display: inline-block;
    }
}

@media (max-width: 480px) {
    .modern-hero-section {
        min-height: 50vh; /* Further reduced for small mobile */
    }
    
    .hero-slide {
        min-height: 50vh;
        padding: 30px 0;
    }
    
    .hero-row {
        min-height: 50vh;
    }
    
    .hero-content-modern {
        padding: 15px 0;
    }
    
    .hero-title {
        font-size: 1.8rem; /* Reduced from 2rem */
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 12px; /* Reduced gap */
        margin-bottom: 20px;
    }
    
    .stat-item {
        flex: 1;
        min-width: 100px; /* Reduced min-width */
    }
    
    .stat-number {
        font-size: 1.8rem; /* Reduced size */
    }
    
    .modern-search-card {
        padding: 25px 15px;
    }
    
    .search-header h3 {
        font-size: 1.5rem;
    }
    
    .floating-card {
        padding: 20px 15px;
        margin: 0 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modern-offer-card,
    .room-card-modern {
        margin: 0 10px 30px 10px;
    }
    
    .room-content-modern {
        padding: 25px 20px;
    }
    
    .current-price {
        font-size: 1.4rem;
    }
}

/* Mobile and Tablet Responsive Improvements */
@media (max-width: 992px) {
    .modern-hero-section {
        padding-bottom: 0;
    }
    
    .hero-slide {
        padding-bottom: 0;
    }
    
    .modern-search-section {
        padding: 50px 0; /* Reduced padding for tablet */
        margin-top: 0; /* No overlap */
    }
    
    .modern-search-container {
        margin-top: 0;
        padding: 0 10px;
    }
    
    .modern-search-card {
        padding: 25px 15px;
        margin: 0 5px;
        /* Remove transform */
    }
    
    .search-header h3 {
        font-size: 1.4rem;
    }
    
    .search-header p {
        font-size: 0.95rem;
    }
    
    .search-input-wrapper {
        padding: 10px 12px;
        min-height: 65px;
    }
    
    .modern-search-btn {
        padding: 12px 15px;
        min-height: 65px;
        font-size: 0.95rem;
    }
    
    .input-icon {
        top: 10px;
        right: 10px;
        font-size: 16px;
    }
    
    .input-content {
        padding-right: 30px;
    }
}

@media (max-width: 768px) {
    .modern-hero-section {
        padding-bottom: 0;
    }
    
    .hero-slide {
        padding-bottom: 0;
    }
    
    .modern-search-section {
        padding: 40px 0; /* Reduced padding for mobile */
        margin-top: 0; /* No overlap */
    }
    
    .modern-search-container {
        margin-top: 0;
        padding: 0 5px;
    }
    
    .modern-search-card {
        padding: 20px 12px;
        margin: 0;
        border-radius: 15px;
        /* Remove transform */
    }
    
    .search-header {
        margin-bottom: 15px;
    }
    
    .search-header h3 {
        font-size: 1.2rem;
    }
    
    .search-input-wrapper {
        min-height: 60px;
        padding: 8px 10px;
    }
    
    .modern-search-btn {
        min-height: 60px;
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .input-label {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    .modern-input {
        font-size: 0.85rem;
        padding: 3px 0;
    }
    
    .input-content {
        padding-right: 25px;
    }
}

@media (max-width: 576px) {
    .modern-hero-section {
        padding-bottom: 0;
    }
    
    .hero-slide {
        padding-bottom: 0;
    }
    
    .modern-search-section {
        padding: 30px 0; /* Reduced padding for small mobile */
        margin-top: 0; /* No overlap */
    }
    
    .modern-search-container {
        margin-top: 0;
        padding: 0 3px;
    }
    
    .modern-search-card {
        padding: 15px 8px;
        margin: 0;
        /* Remove transform */
    }
    
    .search-grid {
        gap: 10px;
    }
    
    .search-input-wrapper {
        min-height: 55px;
        padding: 6px 8px;
        border-radius: 12px;
    }
    
    .modern-search-btn {
        min-height: 55px;
        padding: 8px 10px;
        font-size: 0.85rem;
        border-radius: 12px;
    }
    
    .input-icon {
        top: 6px;
        right: 8px;
        font-size: 14px;
    }
    
    .search-header h3 {
        font-size: 1.1rem;
    }
    
    .search-header p {
        font-size: 0.85rem;
    }
    
    .input-content {
        padding-right: 22px;
    }
}

/* Fix for very small screens */
@media (max-width: 380px) {
    .modern-search-card {
        padding: 12px 6px;
        margin: 0;
    }
    
    .search-input-wrapper {
        min-height: 50px;
        padding: 5px 6px;
    }
    
    .modern-search-btn {
        min-height: 50px;
        font-size: 0.8rem;
        padding: 6px 8px;
    }
    
    .input-content {
        padding-right: 20px;
    }
    
    .input-label {
        font-size: 0.75rem;
    }
    
    .modern-input {
        font-size: 0.8rem;
    }
}

/* Landscape mobile improvements */
@media (max-width: 768px) and (orientation: landscape) {
    .modern-hero-section {
        min-height: 50vh; /* Smaller height for landscape */
    }
    
    .hero-slide {
        min-height: 50vh;
        padding: 20px 0; /* Reduced padding */
    }
    
    .hero-row {
        min-height: 50vh;
    }
    
    .modern-search-section {
        padding: 20px 0; /* Reduced padding for landscape */
    }
    
    .modern-search-container {
        margin-top: 0;
    }
    
    .modern-search-card {
        padding: 20px 15px;
    }
    
    .search-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .search-input-wrapper,
    .modern-search-btn {
        min-height: 50px;
    }
}

/* Additional overflow protection */
.search-input-wrapper * {
    box-sizing: border-box;
}

/* Ensure input content doesn't overflow */
.input-content * {
    max-width: 100%;
}

/* Better icon positioning to prevent overlap */
.input-icon {
    pointer-events: none; /* Prevent icon from blocking input */
}

/* Container safety */
.modern-search-container .container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
    box-sizing: border-box;
}

/* Prevent horizontal scroll */
.modern-search-card,
.search-grid,
.search-group,
.search-input-wrapper {
    max-width: 100%;
    box-sizing: border-box;
}

/* Enhanced mobile safety */
@media (max-width: 480px) {
    .modern-hero-section {
        padding-bottom: 0;
    }
    
    .hero-slide {
        padding-bottom: 0;
    }
    
    .modern-search-section {
        padding: 25px 0; /* Minimal padding for very small screens */
        margin-top: 0; /* No overlap */
    }
    
    .modern-search-container {
        margin-top: 0;
        padding: 0 2px;
    }
    
    .modern-search-card {
        padding: 12px 6px;
        margin: 0;
        border-radius: 12px;
        /* Remove transform completely */
    }
    
    .search-grid {
        gap: 8px;
    }
    
    .search-input-wrapper {
        padding: 6px 8px;
        min-height: 48px;
    }
    
    .modern-search-btn {
        padding: 8px 12px;
        min-height: 48px;
        font-size: 0.8rem;
    }
    
    .input-content {
        padding-right: 22px;
    }
    
    .modern-input {
        font-size: 0.8rem;
        min-width: 0;
    }
    
    .input-label {
        font-size: 0.7rem;
        margin-bottom: 2px;
    }
    
    .search-header {
        margin-bottom: 10px;
    }
    
    .search-header h3 {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .search-header p {
        font-size: 0.8rem;
        margin: 0;
    }
}

/* Section spacing adjustments */
.modern-about-section {
    padding-top: 40px;
    margin-top: 0;
}

@media (max-width: 768px) {
    .modern-about-section {
        padding-top: 30px;
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .modern-about-section {
        padding-top: 20px;
        margin-top: 0;
    }
}

/* Viewport height adjustments */
body.modern-homepage {
    overflow-x: hidden;
}

.main.modern-homepage {
    width: 100%;
    overflow-x: hidden;
}

/* Print Styles */
@media print {
    .hero-particles,
    .floating-card,
    .modern-search-container {
        display: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .modern-btn-primary,
    .modern-btn-outline,
    .modern-search-btn,
    .modern-offer-btn,
    .modern-book-btn {
        border: 2px solid;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus Styles for Accessibility */
.modern-btn-primary:focus,
.modern-btn-outline:focus,
.modern-search-btn:focus,
.modern-offer-btn:focus,
.modern-book-btn:focus,
.modern-input:focus {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6b5b95 100%);
}

/* AOS Animation Overrides */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-right"] {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-right"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

[data-aos="fade-left"] {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-left"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

/* Grid overflow protection */
.search-group {
    min-width: 0;
    box-sizing: border-box;
}

.search-button-group {
    min-width: 150px;
}

/* Ensure proper spacing and no overflow */
.modern-search-form {
    width: 100%;
    overflow: visible;
}

/* Date input specific fixes */
.modern-input[type="date"] {
    padding-right: 25px !important; /* Space for calendar icon */
    min-width: 120px;
}

/* Number input fixes */
.modern-input[type="number"] {
    min-width: 80px;
}

/* Desktop and large screen adjustments */
@media (min-width: 1200px) {
    .modern-hero-section {
        min-height: 80vh; /* Slightly larger for big screens */
    }
    
    .hero-slide {
        min-height: 80vh;
        padding: 80px 0;
    }
    
    .hero-row {
        min-height: 80vh;
    }
    
    .hero-content-modern {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 3.5rem; /* Slightly larger for big screens */
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
}

.hero-row {
    min-height: 60vh; /* Match with hero-slide height - reduced */
}

/* Enhanced visual effects for search section */
