/* Reset & Base */
:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --text-light: #6b7280;
    --primary-color: #2563eb;
    --border-color: #e5e5e5;
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --container-width: 1200px;
    --header-height: auto;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 32px;
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

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

/* Header */
.site-header {
    height: var(--header-height);
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.header-top {
    padding: 1rem 0;
}

.header-bottom {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
}

/* Wrapper for Content Alignment (Matches Grid) */
.header-content-wrapper,
.nav-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.site-logo {
    display: flex;
    align-items: center;
}

/* Contact Block */
.contact-block {
    background-color: #dc2626;
    /* Red color */
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-title {
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.contact-info {
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-hours {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Navigation */
.main-nav ul {
    display: flex;
    gap: 2rem;
    padding: 0;
    margin: 0;
}

.main-nav a {
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
}

.main-nav a:hover {
    color: var(--text-color);
}

/* Main Content */
.site-main {
    min-height: calc(100vh - 250px);
    padding: 2rem 0;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    margin-top: auto;
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--text-color);
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: var(--text-color);
    color: #fff;
}

/* Search Bar */
.search-container {
    max-width: 600px;
    margin: 2rem auto;
    width: 100%;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    background: #fff;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.search-input {
    flex: 1;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    outline: none;
    border-radius: 50px;
    color: var(--text-color);
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

/* Property List (Horizontal) */
.property-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    /* Ensure it takes width up to max */
}

/* Property Card */
.property-card {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
    height: 220px;
    text-align: left;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.property-image {
    width: 35%;
    height: 100%;
    background-color: #f3f4f6;
    overflow: hidden;
    flex-shrink: 0;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.property-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.property-location {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: auto;
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
}

.property-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-color);
}

.property-price small {
    font-weight: 400;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Property Detail Page */
.property-hero {
    background: #f9fafb;
    padding: 2rem 0 0 0;
}

.hero-image-wrapper {
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.property-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 900px) {
    .property-detail-grid {
        grid-template-columns: 1fr;
    }

    .hero-image-wrapper {
        height: 300px;
    }
}

.property-location-tag {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: block;
}

.detail-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: var(--text-color);
}

.property-stats {
    display: flex;
    gap: 1rem;
    color: var(--text-light);
    font-size: 1rem;
}

.divider {
    height: 1px;
    background: var(--border-color);
    margin: 2rem 0;
}

.property-description h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.property-description p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
}

/* Sticky Booking Card */
.sticky-card {
    position: sticky;
    top: 180px;
    /* Below header */
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    /* Stronger shadow */
    background: #fff;
}

.booking-header {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.booking-header .price {
    font-size: 1.5rem;
    font-weight: 700;
}

.booking-header .light {
    color: var(--text-light);
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.date-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--text-light);
    /* Darker border for contrast */
    border-radius: 8px;
    overflow: hidden;
}

.date-inputs .input-group {
    padding: 0.5rem;
    border-right: 1px solid var(--text-light);
}

.date-inputs .input-group:last-child {
    border-right: none;
}

.input-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.input-group input {
    border: none;
    width: 100%;
    outline: none;
    font-size: 0.9rem;
    color: var(--text-color);
    font-family: inherit;
}

.full-width {
    border: 1px solid var(--text-light);
    border-radius: 8px;
    padding: 0.5rem;
}

.btn-block {
    width: 100%;
    text-align: center;
    background: #e11d48;
    /* Airbnb red-ish */
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.booking-footer {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}