/* style.css - Flat Colors & Modern Minimalist Design */
/* Color Palette: Flat Colors Only - No Gradients */

:root {
    /* Flat Color Palette */
    --primary: #2C3E50;      /* Dark Blue - Primary */
    --primary-dark: #1A252F;  /* Darker Blue */
    --secondary: #E74C3C;     /* Flat Red - Accent */
    --secondary-light: #EC7063;
    --success: #27AE60;       /* Flat Green */
    --warning: #F39C12;       /* Flat Orange */
    --info: #3498DB;          /* Flat Light Blue */
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --gray-light: #ECF0F1;
    --gray: #BDC3C7;
    --gray-dark: #7F8C8D;
    --text-dark: #2C3E50;
    --text-light: #6C7A89;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.12);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--off-white);
}

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

/* ==================== NAVBAR ==================== */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* ==================== HERO SECTION ==================== */
.hero {
    background: var(--white);
    padding: 80px 20px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.hero-content .highlight {
    color: var(--secondary);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: var(--secondary);
    color: var(--white);
    padding: 12px 32px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--secondary-light);
}

/* ==================== PROPERTIES SECTION ==================== */
.properties-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.property-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.price-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.1rem;
}

.price-tag span {
    font-size: 0.8rem;
    font-weight: normal;
}

.property-info {
    padding: 20px;
}

.property-info h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.property-location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.property-details {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--gray-dark);
}

.property-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.book-button {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.book-button:hover {
    background: var(--primary-dark);
}

/* ==================== FEATURES SECTION ==================== */
.features {
    background: var(--white);
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.feature-card p {
    color: var(--text-light);
}

/* ==================== BOOKING PAGE ==================== */
.booking-section {
    padding: 60px 0;
    min-height: calc(100vh - 300px);
}

.booking-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

.summary-card {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.summary-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.summary-card h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.summary-card .location {
    color: var(--text-light);
    margin-bottom: 15px;
}

.summary-details {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-light);
}

.price-large {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary);
}

.price-large span {
    font-size: 1rem;
    font-weight: normal;
    color: var(--text-light);
}

.booking-form-container {
    background: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.booking-form-container h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid var(--gray);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
}

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

.submit-booking {
    background: var(--secondary);
    color: var(--white);
    padding: 14px;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-booking:hover {
    background: var(--secondary-light);
}

/* ==================== ALERTS ==================== */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-error {
    background: #FADBD8;
    color: #C0392B;
    border-left: 4px solid var(--secondary);
}

.alert-success {
    background: #D5F5E3;
    color: var(--success);
    border-left: 4px solid var(--success);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
}

.footer-section p {
    color: var(--gray);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--gray);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .booking-wrapper {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 1rem;
    }
    
    .hero {
        padding: 50px 20px;
    }
    
    .property-card {
        margin: 0 10px;
    }
}

/* ==================== UTILITY CLASSES ==================== */
.no-properties {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}