* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #ff385c;
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #222;
    font-weight: 500;
}

.nav-link:hover {
    color: #ff385c;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #ff385c;
    color: white;
}

.btn-primary:hover {
    background: #e31c5f;
}

.btn-outline {
    border: 1px solid #ddd;
    background: white;
    color: #222;
}

.btn-outline:hover {
    border-color: #222;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Search Form */
.search-form {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 40px;
    padding: 10px;
}

.search-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 10px;
}

.search-input {
    width: 100%;
    padding: 15px;
    border: none;
    outline: none;
    font-size: 16px;
    border-radius: 30px;
    background: #f7f7f7;
}

.search-btn {
    background: #ff385c;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #e31c5f;
}

/* Listings Grid */
.section-title {
    font-size: 32px;
    margin: 40px 0 20px;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.listing-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.card-link {
    text-decoration: none;
    color: inherit;
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    margin-bottom: 5px;
    color: #222;
}

.card-location {
    color: #717171;
    font-size: 14px;
    margin-bottom: 10px;
}

.card-price {
    font-size: 20px;
    font-weight: bold;
    color: #222;
}

.card-price span {
    font-size: 14px;
    font-weight: normal;
    color: #717171;
}

.card-host {
    color: #717171;
    font-size: 14px;
    margin-top: 10px;
}

/* Forms */
.auth-form {
    max-width: 400px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.auth-title {
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.form-control:focus {
    outline: none;
    border-color: #ff385c;
}

/* Listing Detail Page */
.listing-detail {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.listing-gallery {
    margin-bottom: 30px;
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

.booking-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 100px;
}

.booking-price {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.booking-price span {
    font-size: 16px;
    font-weight: normal;
    color: #717171;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.date-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.total-price {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    font-size: 18px;
    font-weight: bold;
}

/* Profile Page */
.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 40px 0;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
}

.tab-btn.active {
    border-bottom-color: #ff385c;
    color: #ff385c;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Footer */
.footer {
    background: #f7f7f7;
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
    color: #717171;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .search-grid {
        grid-template-columns: 1fr;
    }
    
    .listings-grid {
        grid-template-columns: 1fr;
    }
    
    .listing-detail {
        grid-template-columns: 1fr;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
}