* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    color: #1d1d1f;
    background: #fbfbfd;
    line-height: 1.6;
}

.banner-ad-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #f5f5f5;
    z-index: 1001;
    padding: 0.5rem 0;
    transition: transform 0.5s ease-out;
}

.banner-ad-top.hidden {
    transform: translateY(-100%);
}

.header {
    position: fixed;
    top: -100px;
    left: 0;
    right: 0;
    background: rgb(92, 183, 144, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: top 0.5s ease-out;
    opacity: 0;
}

.header.visible {
    top: 0;
    opacity: 1;
}

.header-content h2 {
    color: #fff;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    letter-spacing: -0.02em;
}

.ad-space-text {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 500;
    opacity: 0.9;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#google_translate_element {
    display: inline-block;
}

#google_translate_element select {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 14px;
}

.logo {
    height: 40px;
}

.btn-login, .btn-secondary, .btn-logout {
    padding: 0.5rem 1.5rem;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 980px;
    font-size: 14px;
    transition: background 0.3s;
    margin-left: 10px;
    display: inline-block;
}

.btn-login:hover, .btn-secondary:hover, .btn-logout:hover {
    background: #333;
}

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-container {
    text-align: center;
    color: #fff;
}

.search-container h1 {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.date-selector {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 20px;
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.date-input {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.date-input label {
    font-size: 12px;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.date-field {
    padding: 0.75rem 1rem;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    font-size: 16px;
    background: #fff;
    min-width: 180px;
}

.btn-search {
    padding: 0.75rem 2rem;
    background: #0071e3;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-search:hover {
    background: #0077ed;
}

.banner-ad-top .ad-banner {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.about-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.about-content h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #0071e3;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-content p {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.lead-text {
    font-size: 1.25rem !important;
    font-weight: 500;
    color: #555;
    margin-bottom: 2rem !important;
}

.cta-text {
    font-size: 1.3rem !important;
    margin-top: 2rem !important;
    color: #0071e3;
}

.listings {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: #1d1d1f;
}

.listing-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0071e3;
    margin-top: 0.5rem;
}

.banner-section {
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.banner-section h2 {
    margin-bottom: 1rem;
}

.image-item {
    position: relative;
    cursor: move;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.listing-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.listing-card.promoted {
    border: 2px solid #0071e3;
}

.image-gallery {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.gallery-image.active {
    display: block;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: background 0.3s;
    z-index: 10;
}

.gallery-arrow:hover {
    background: rgba(255, 255, 255, 1);
}

.gallery-arrow.prev {
    left: 10px;
}

.gallery-arrow.next {
    right: 10px;
}

.listing-info {
    padding: 1.5rem;
}

.listing-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.listing-stars {
    color: #f5a623;
    margin-bottom: 0.5rem;
    font-size: 14px;
}

.listing-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.promoted-badge {
    background: #0071e3;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 18px;
}

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    background: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
}

.btn-primary {
    width: 100%;
    padding: 0.75rem;
    background: #0071e3;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #0077ed;
}

.error-message {
    background: #ff3b30;
    color: #fff;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #0071e3;
    text-decoration: none;
}

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 1.5rem;
    z-index: 10000;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-content p {
    margin: 0;
    flex: 1;
}

.btn-accept {
    padding: 0.75rem 2rem;
    background: #0071e3;
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
}

.admin-container {
    max-width: 1200px;
    margin: 100px auto 50px;
    padding: 0 2rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-header h1 {
    margin: 0;
    font-size: 2.5rem;
}

.btn-create {
    padding: 0.75rem 2rem;
    background: #0071e3;
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

.btn-create:hover {
    background: #0077ed;
}

.admin-listings {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.admin-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.admin-card-header h3 {
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.button-row {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-save {
    padding: 0.75rem 2rem;
    background: #34c759;
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

.btn-save:hover {
    background: #30b350;
}

.btn-delete-listing {
    padding: 0.75rem 2rem;
    background: #ff3b30;
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

.btn-delete-listing:hover {
    background: #e63329;
}

.images-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #d2d2d7;
}

.images-section h4 {
    margin-bottom: 1rem;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.image-item {
    position: relative;
}

.image-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
}

.image-actions {
    position: absolute;
    top: 5px;
    right: 5px;
}

.btn-delete-image {
    padding: 0.25rem 0.75rem;
    background: #ff3b30;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
}

.btn-upload {
    padding: 0.75rem 1.5rem;
    background: #0071e3;
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
}

.modal-content h2 {
    margin-bottom: 1.5rem;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-buttons button {
    flex: 1;
}

@media (max-width: 768px) {
    .site-title {
        font-size: 1.25rem;
    }
    
    .header-content {
        padding: 0.75rem 1rem;
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }
    
    .ad-space-text {
        font-size: 1.2rem;
    }
    
    .header-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .about-content h2 {
        font-size: 1.5rem;
    }
    
    .about-content h3 {
        font-size: 1.3rem;
    }
    
    .about-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .search-container h1 {
        font-size: 2rem;
    }
    
    .date-selector {
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem;
    }
    
    .date-field {
        min-width: 100%;
    }
    
    .listings-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .listing-card {
        margin: 0 auto;
        max-width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .button-row {
        flex-direction: column;
    }
    
    .hero {
        height: 90vh;
        min-height: 500px;
    }
    
    .image-gallery {
        height: 220px;
    }
    
    .container {
        padding: 0 1rem;
    }
}
