/*
Theme Name: Rentals
Author: Brian
Description: A simple starter theme for managing Rentals
Version: 1.0
*/
.site-header {
    position: sticky;
    top: 0;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}
.logo img {
    max-height: 40px;
}
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
}
.main-navigation a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}
.sidebar {
    flex: 0 0 28%;
    max-width: 320px;
    background: #fff;
    padding: 16px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: auto;
    position: sticky;
    top: 80px; /* stays visible when scrolling */
}
.site-footer {
    background: #333;
    color: #eee;
    padding: 40px 30px;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.social-icons a {
    color: #eee;
    margin-right: 10px;
}
.newsletter-form input {
    padding: 8px;
    margin-right: 5px;
}
.footer-bottom {
    margin-top: 20px;
    text-align: center;
}
.hero-header .hero-image {
    background-image: url('http://property-booking.local/wp-content/uploads/2025/08/sunset-image-reduced.jpg');
    background-size: cover;
    background-position: center;
    height: 300px;
    position: relative;
    color: #fff;
}
.hero-header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #ff0;
}
.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}
.content-area {
    display: flex;
    gap: 20px;
    padding: 20px;
}
.main-content {
    flex: 3;
}
.widget-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
}
.property-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}
.property-card:hover {
    transform: translateY(-5px);
}
.property-card img {
    width: 100%;
    height: auto;
    display: block;
}
.property-card h2 {
    font-size: 1.2rem;
    margin: 1rem;
}
.property-card p {
    margin: 0 1rem 1rem;
    color: #555;
}
.single-property {
    max-width: 100%;
    margin: 2rem auto;
    padding: 1rem;
}
.property-header img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.property-header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.property-details {
    font-size: 1rem;
    line-height: 1.6;
}
.property-meta {
    column-count: 2;
    column-gap: 2rem;
    padding-left: 0;
    list-style: none;
}
.property-meta li {
    break-inside: avoid;
    margin-bottom: 0.5rem;
}
.property-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.property-gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
}
#property-gallery-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}
.gallery-thumb {
    width: 100px;
    height: 100px;
    overflow: hidden;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
}
.property-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}
.property-layout main {
    flex: 3;
}
.property-layout aside {
    flex: 1;
}
.property-meta-columns {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.property-meta {
    flex: 1;
    min-width: 200px;
    list-style: none;
    padding-left: 0;
}
.property-meta li {
    margin-bottom: 0.5rem;
}
.center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 80vh;
    max-width: 50%;
    padding: 20px;
    background: #f9f9f9;
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
}
.center-container > div {
    width: 100%;
    max-width: 880px;
}
.page-layout {
    display: flex;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}
.main-content {
    flex-flow: row wrap;
    min-width: 0;
}
/* Base Calendar Container */
.rental-calendar-container {
    max-width: 800px;
    margin: 2rem auto;
    font-family: sans-serif;
    color: #333;
}
/* Page Layout */
.page-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
}
.main-content {
    flex-grow: 1;
}
/* Month and Grid Layout */
.calendar-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.month {
    flex: 1 1 300px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}
.month-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #4f46e5;
}
.day-headers {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0.5rem;
}
.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
/* Calendar Cells */
.calendar-cell {
    position: relative;
    padding: 0.5rem 0.2rem;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
    font-size: 0.875rem;
    user-select: none;
    line-height: 1.5;
}
.calendar-cell.empty {
    visibility: hidden;
}
.calendar-date {
    background-color: #f1f5f9 !important;
    color: #333 !important;
    cursor: pointer;
}
.calendar-date:hover {
    background-color: #e2e8f0 !important;
}
.calendar-date.past {
    background-color: #e5e7eb !important;
    color: #9ca3af !important;
    cursor: not-allowed;
}
/* Booked Date Styling */
.calendar-cell.booked {
    background-color: #ef4444 !important; /* A clear, solid color for booked dates */
    color: #fff !important;
    cursor: not-allowed;
    position: relative;
    z-index: 0;
}
.calendar-cell.unavailable {
    background-color: #a5a5a5 !important;
    color: #f3f4f6 !important;
    cursor: not-allowed;
    position: relative;
    z-index: 0;
}
/* Range Selection Styling */
.calendar-cell.selected {
    background-color: #4f46e5 !important;
    color: #fff !important;
    border-radius: 6px;
}
.calendar-cell.selected:hover {
    background-color: #4338ca !important;
}
.calendar-cell.range-start,
.calendar-cell.range-end {
    background-color: #4f46e5 !important;
    color: #ffffff !important;
    border-radius: 6px;
    z-index: 1;
    position: relative;
}
.calendar-cell.selected-range {
    background-color: #a5b4fc !important; /* A lighter color for the dates in between */
    color: #4f46e5 !important;
    border-radius: 0;
}
.calendar-cell.range-start {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}
.calendar-cell.range-end {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}
.calendar-cell.range-start.range-end {
    border-radius: 6px;
    background-color: #4f46e5 !important;
}
/* Form Styling */
.hidden-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
#booking-form-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}
.center-container {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    max-width: 90%;
    width: 450px;
}
#booking-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
label {
    font-weight: 500;
    color: #4b5563;
}
input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"] {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    width: 90%;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}
button[type="submit"] {
    padding: 0.75rem 1.5rem;
    background-color: #4f46e5;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}
button[type="submit"]:hover {
    background-color: #4338ca;
    transform: translateY(-2px);
}
#booking-message {
    text-align: center;
    font-weight: 600;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}
#booking-message.success {
    background-color: #dcfce7;
    color: #166534;
}
#booking-message.error {
    background-color: #fee2e2;
    color: #991b1b;
}
#booking-message-container {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 1.5rem;
}
