/* Global Styles */
:root {
    /* Modern color palette */
    --primary-color: #3B82F6; /* Vibrant blue */
    --primary-light: #60A5FA;
    --primary-dark: #2563EB;
    --secondary-color: #8B5CF6; /* Purple */
    --accent-color: #EC4899; /* Pink */
    --light-color: #F8FAFC; /* Very light gray */
    --dark-color: #1E293B; /* Dark blue-gray */
    --text-color: #475569;
    --text-light: #94A3B8;
    --success-color: #10B981;
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    --border-radius: 0.75rem;
    --border-radius-lg: 1rem;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.04), 0 10px 10px -5px rgba(0, 0, 0, 0.01);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background-color: #1e293b;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 1rem;
    font-weight: 400;
    overflow-x: hidden;
}
.content {
    padding-left: 1rem;
    padding-right: 1rem;
}
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition);
    top: 0;
    z-index: 1000;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--dark-color) !important;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition);
}

.nav-link {
    font-weight: 600;
    color: var(--text-color) !important;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(20, 184, 166, 0.85), rgba(15, 118, 110, 0.85)),
                url('../images/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 8rem 0;
    text-align: center;
    margin-bottom: 4rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Kosan Section */
.kosan-section {
    margin-bottom: 3rem;
}

.kosan-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.kosan-address {
    margin-bottom: 1rem;
}

/* Room Layout */
.room-list-item {
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid #E2E8F0;
    margin-bottom: 0.75rem;
    border-radius: var(--border-radius) !important;
    padding: 1rem 1.25rem !important;
    font-weight: 500;
    color: var(--text-color);
    background-color: white;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid transparent;
}

.room-list-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
    border-left-color: var(--primary-light);
}

.room-list-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    border-left-color: var(--primary-dark);
}

.room-details-card {
    border: 1px solid #E2E8F0;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.room-details-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.room-details-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.room-details-card:hover .room-details-img {
    transform: scale(1.02);
}

/* Mobile-specific room details container */
.room-details-container-mobile {
    margin-top: 1rem;
}

/* Room Cards */
.room-card {
    border: 1px solid #E2E8F0;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    background-color: #fff;
    box-shadow: var(--shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.room-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.5s ease;
}

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

.room-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
}

.status-available {
    background-color: var(--success-color);
}

.status-occupied {
    background-color: var(--danger-color);
}

.room-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0.5rem 0;
    line-height: 1.2;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.room-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    display: block;
    margin-top: 0.25rem;
}

.room-features {
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 1.5rem 0;
}

.room-features .col-6 {
    padding: 0.5rem;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.room-features .col-6:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

.room-features i {
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.room-features .col-6:hover i {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Gallery */
.gallery {
    background-color: var(--light-color);
    padding: 4rem 0;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 40%);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item:hover::before {
    opacity: 1;
}

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

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Modal Gallery */
.gallery-modal .modal-dialog {
    max-width: 90%;
    max-height: 90vh;
}

.gallery-modal .modal-content {
    background: transparent;
    border: none;
}

.gallery-modal .modal-body {
    padding: 0;
    text-align: center;
}

.gallery-modal img {
    max-height: 80vh;
    width: auto;
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

/* Contact Section */
.contact-info i {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-right: 1rem;
    width: 30px; /* Align text */
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    margin-top: 4rem;
}

.footer h5 {
    color: #fff;
    font-weight: 700;
}

.footer a {
    color: var(--light-color);
    opacity: 0.8;
}

.footer a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.8);
}

.footer .btn-outline-light:hover {
    border-color: #fff;
    background-color: #fff;
    color: var(--dark-color);
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: none;
    letter-spacing: 0.3px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: var(--shadow);
}

.btn i {
    font-size: 1.1em;
    transition: var(--transition);
}

.btn:hover i {
    transform: translateX(3px);
}

.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;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
    color: white;
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(59, 130, 246, 0.4);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 6rem 0;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }

    .room-details-column {
        display: none;
    }

    .room-details-container-mobile {
        display: block;
        margin: 1rem 0;
        padding: 0 0.5rem;
    }

    .room-details-container-mobile .room-details-card {
        margin-bottom: 1rem;
    }

    .room-details-img {
        height: 200px;
    }

    .room-features .col-6 h5 {
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}