.navbar {
    background-color: #4285F4;
}

.navbar.fixed-top {
    z-index: 9999 !important;
}

/* Flash Messages */
.flash-messages-container {
    position: fixed;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    width: 90%;
    max-width: 600px;
}

@media (max-width: 768px) {
    .flash-messages-container {
        top: 80px;
    }
}

.flash-messages-container .alert {
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: none;
    padding: 1rem 2.5rem 1rem 1.5rem;
}

.flash-messages-container .alert-success {
    background-color: #d4edda;
    color: #155724;
}

.flash-messages-container .alert .close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

.flash-messages-container .alert .close:hover {
    opacity: 1;
}

body {
    padding-top: 200px;
}

main {
    padding-bottom: 200px;
}

/* Shared Hero Section */
.page-hero {
    background: linear-gradient(135deg, #4285F4 0%, #e8f0fe 50%, #ffffff 100%);
    padding: 200px 0 40px;
    margin-top: -200px;
    margin-bottom: 30px;
}

.page-hero h1 {
    color: #1a1a1a;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-hero .subtitle {
    color: #5f6368;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Shared Amenity Tooltips */
.amenity-item {
    position: relative;
    cursor: help;
    display: inline-flex;
}

.amenity-item::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    pointer-events: none;
    margin-bottom: 6px;
    z-index: 10;
}

.amenity-item::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    pointer-events: none;
    margin-bottom: -4px;
    z-index: 10;
}

.amenity-item:hover::after,
.amenity-item:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Back Link */
.back-link {
    max-width: 900px;
    margin: 0 auto 20px;
    padding: 0 15px;
}

.back-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4285F4;
    text-decoration: none;
    font-weight: 500;
    transition: gap 0.3s ease;
}

.back-link a:hover {
    gap: 12px;
    text-decoration: none;
}

/* Textarea for Budget */
.md-textarea-budget {
    height: 18rem;
}

@media (max-width: 768px) {
    body {
        padding-top: 120px;
    }
    main {
        padding-bottom: 120px;
    }

    .page-hero {
        margin-top: -120px;
        padding: 160px 0 30px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }
}
