﻿/* ===== COMPACT HERO SECTION STYLES ===== */

/* Compact Hero Section */
.compact-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 0 2rem 0;
    border-bottom: 1px solid #dee2e6;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Hero Typography with Typing Animation */
.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
    margin-bottom: 1rem;
    min-height: 3rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
    min-height: 1.5rem;
}

/* Typing Animation */
.typing-text {
    display: inline-block;
    border-right: 3px solid var(--primary-blue, #00A6FF);
    animation: blink-cursor 1s infinite;
}

.typing-text.typing {
    animation: blink-cursor 1s infinite;
}

.typing-text.completed {
    border-right: none;
}

@keyframes blink-cursor {
    0%, 50% { border-color: var(--primary-blue, #00A6FF); }
    51%, 100% { border-color: transparent; }
}

/* Fade in/out animation for rotating text */
.fade-text {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.fade-text.fade-out {
    opacity: 0;
}

.fade-text.fade-in {
    opacity: 1;
}

/* Standout Search Bar */
.standout-search {
    margin-top: 2rem;
}

.search-bar-container {
    display: flex;
    background: white;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 8px;
    max-width: 900px;
    margin: 0 auto;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    gap: 0.5rem;
}

.search-bar-container:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue, #00A6FF);
}

.search-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    border-right: 1px solid #e9ecef;
}

.search-input-group i {
    color: var(--primary-blue, #00A6FF);
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.search-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    width: 100%;
    color: #2c3e50;
}

.search-input::placeholder {
    color: #6c757d;
    font-style: italic;
}

.search-input:focus {
    outline: none;
    color: var(--primary-blue, #00A6FF);
}

.search-input:focus::placeholder {
    color: rgba(0, 166, 255, 0.6);
}



.city-select option {
    background: white;
    color: #2c3e50;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: none;
    transition: all 0.3s ease;
}

.city-select option:hover {
    background: #f8f9fa;
    color: var(--primary-blue, #00A6FF);
}

.city-select option:checked {
    background: var(--primary-blue, #00A6FF);
    color: white;
    font-weight: 600;
}

.city-select option[value=""] {
    color: #6c757d;
    font-style: italic;
}

/* Enhanced select styling */
.city-select {
    background-color: transparent;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #2c3e50;
    cursor: pointer;
    width: 100%;
    padding-right: 2.5rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300A6FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

.city-select:focus {
    outline: none;
    box-shadow: none;
}

.city-select:hover {
    color: var(--primary-blue, #00A6FF);
}

.filter-btn, .search-btn {
    border: none;
    background: transparent;
    padding: 0.75rem 1.25rem;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.filter-btn {
    color: #6c757d;
    border-right: 1px solid #e9ecef;
}

.filter-btn:hover {
    background: #f8f9fa;
    color: var(--primary-blue, #00A6FF);
}

.search-btn {
    background: var(--primary-blue, #00A6FF);
    color: white;
}

.search-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.filter-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Accommodation Tabs Section */
.accommodation-tabs-section {
    margin-top: 2rem;
}

.tabs-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.accommodation-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 2px solid transparent;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #6c757d;
    min-width: 80px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tab-item:hover {
    border-color: var(--primary-blue, #00A6FF);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 166, 255, 0.15);
    color: var(--primary-blue, #00A6FF);
}

.tab-item.active {
    border-color: var(--primary-blue, #00A6FF);
    background: var(--primary-blue, #00A6FF);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 166, 255, 0.3);
}

.tab-item i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    display: inline-block;
    width: 1.5rem;
    text-align: center;
}

/* Ensure Font Awesome icons are visible */
.tab-item i {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome" !important;
    font-weight: 900 !important;
    font-style: normal !important;
}

/* Force Font Awesome to load properly */
.fas {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.tab-item span {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

.more-btn {
    background: #f8f9fa !important;
    border-color: #dee2e6 !important;
}

.more-btn:hover {
    background: var(--primary-blue, #00A6FF) !important;
    color: white !important;
}

/* Enhanced Filter Modal */
.filter-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.filter-section .form-control:focus {
    border-color: var(--primary-blue, #00A6FF);
    box-shadow: 0 0 0 0.2rem rgba(0, 166, 255, 0.25);
}

.filter-section .form-select:focus {
    border-color: var(--primary-blue, #00A6FF);
    box-shadow: 0 0 0 0.2rem rgba(0, 166, 255, 0.25);
}

.filter-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.accommodation-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.filter-option {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.filter-option:hover {
    border-color: var(--primary-blue, #00A6FF);
    background: rgba(0, 166, 255, 0.05);
}

.filter-option.selected {
    border-color: var(--primary-blue, #00A6FF);
    background: rgba(0, 166, 255, 0.1);
    color: var(--primary-blue, #00A6FF);
    font-weight: 600;
}

.filter-option span {
    flex: 1;
}

/* Price Suggestions */
.price-suggestions .btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

/* Amenities Grid */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.form-check {
    margin-bottom: 0.5rem;
}

.form-check-label {
    cursor: pointer;
    font-weight: 500;
    color: #495057;
}

.form-check-input:checked {
    background-color: var(--primary-blue, #00A6FF);
    border-color: var(--primary-blue, #00A6FF);
}

/* Form Controls */
.form-select, .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-select:focus, .form-control:focus {
    border-color: var(--primary-blue, #00A6FF);
    box-shadow: 0 0 0 0.2rem rgba(0, 166, 255, 0.25);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .compact-hero {
        padding: 2rem 0 1.5rem 0;
    }

    .hero-title {
        font-size: 2rem;
        min-height: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        min-height: 1.25rem;
    }

    .search-bar-container {
        flex-direction: column;
        border-radius: 15px;
        padding: 1rem;
        margin: 0 1rem;
    }

    .search-input-group {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        padding: 0.75rem 0;
    }

    .filter-btn, .search-btn {
        justify-content: center;
        padding: 0.75rem;
        margin-top: 0.5rem;
        border-radius: 8px;
        border-right: none !important;
    }

    .search-btn {
        margin-top: 0.75rem;
    }

    .accommodation-tabs {
        gap: 0.25rem;
        padding: 0.75rem;
    }

    .tab-item {
        min-width: 70px;
        padding: 0.5rem 0.75rem;
    }

    .tab-item i {
        font-size: 1.1rem;
    }

    .tab-item span {
        font-size: 0.75rem;
    }

    .tabs-wrapper {
        margin: 0 1rem;
    }

    /* Modal responsive adjustments */
    .filter-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .accommodation-type-grid {
        grid-template-columns: 1fr;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .compact-hero {
        padding: 1.5rem 0 1rem 0;
    }

    .hero-title {
        font-size: 1.75rem;
        min-height: 2rem;
    }

    .search-bar-container {
        margin: 0 0.5rem;
    }

    .accommodation-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 0.75rem 0.5rem;
        gap: 0.5rem;
    }

    .tab-item {
        flex-shrink: 0;
        min-width: 65px;
        padding: 0.5rem;
    }

    .tab-item span {
        font-size: 0.7rem;
    }

    .tabs-wrapper {
        margin: 0 0.5rem;
    }

    /* Hide scrollbar but keep functionality */
    .accommodation-tabs::-webkit-scrollbar {
        height: 2px;
    }

    .accommodation-tabs::-webkit-scrollbar-track {
        background: transparent;
    }

    .accommodation-tabs::-webkit-scrollbar-thumb {
        background: rgba(0, 166, 255, 0.3);
        border-radius: 2px;
    }
}

/* Animation for smooth transitions */
.btn, .form-select {
    transition: all 0.3s ease;
}

/* Focus states for accessibility */
.btn:focus,
.form-select:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 166, 255, 0.25);
}

/* ===== BECOME HOST PAGE MOBILE RESPONSIVE STYLES ===== */

/* Ensure proper row behavior for BecomeHost page */
.become-host-grid {
    display: flex !important;
    flex-wrap: wrap !important;
}

/* Force 2-column layout on mobile devices */
@media (max-width: 767.98px) {
    /* Ensure become-host-item actually takes 50% width on mobile */
    .become-host-item {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }

    /* Benefits and Steps sections mobile adjustments */
    .become-host-item .p-4 {
        padding: 1.5rem 0.75rem !important;
    }

    .become-host-item .p-3 {
        padding: 1rem 0.5rem !important;
    }

    /* Adjust icon sizes for mobile 2-column layout */
    .become-host-item .fa-3x {
        font-size: 2.5rem !important;
    }

    /* Adjust step circles for mobile */
    .become-host-item .rounded-circle {
        width: 50px !important;
        height: 50px !important;
    }

    .become-host-item .rounded-circle .fs-4 {
        font-size: 1.25rem !important;
    }

    /* Ensure text remains readable */
    .become-host-item h5 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .become-host-item .small {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

/* Extra small devices adjustments */
@media (max-width: 575.98px) {
    /* Ensure become-host-item maintains 50% width on extra small devices */
    .become-host-item {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }

    .become-host-item .p-4 {
        padding: 1rem 0.5rem !important;
    }

    .become-host-item .p-3 {
        padding: 0.75rem 0.25rem !important;
    }

    .become-host-item .fa-3x {
        font-size: 2rem !important;
    }

    .become-host-item .rounded-circle {
        width: 45px !important;
        height: 45px !important;
    }

    .become-host-item .rounded-circle .fs-4 {
        font-size: 1.1rem !important;
    }

    .become-host-item h5 {
        font-size: 0.9rem;
    }

    .become-host-item .small {
        font-size: 0.75rem;
    }
}
