/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

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

/* Header Styles */
.header {
    background-image: url('../images/Peony Bloom Estates Logo_Name.jpg');
    background-size: contain;
    background-position: left center;
    background-repeat: no-repeat;
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 80px;
}

/* Overlay for better navigation readability */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.85) 30%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
    z-index: 1;
}

.header-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem 0;
    position: relative;
    z-index: 2;
}

.logo {
    display: none; /* Logo is now background */
}

.logo-img {
    display: none; /* Logo is now background */
}

.logo-text {
    display: none; /* Logo is now background */
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

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

.nav-dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-hover);
    list-style: none;
    min-width: 200px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    margin-top: 10px;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--secondary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease;
}

.hero-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 3;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 4;
}

.hero-nav-btn {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: var(--white);
    font-size: 3rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-nav-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.hero-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 4;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.hero-indicator.active {
    background: var(--white);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: var(--text-light);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--text-color);
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

/* Properties Section */
.properties-section {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

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

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

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

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

.property-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.property-card-content {
    padding: 1.5rem;
}

.property-card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.property-card-location {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.property-card-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.property-card-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.property-card-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Property Details Page */
.property-details {
    padding: 2rem 0;
}

.property-header {
    margin-bottom: 2rem;
}

.property-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.property-header .property-location {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.property-header .property-meta {
    display: flex;
    gap: 2rem;
    color: var(--text-light);
}

.property-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.property-gallery {
    margin-bottom: 2rem;
}

.property-gallery-main {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.property-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.property-gallery-thumb {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.property-gallery-thumb:hover,
.property-gallery-thumb.active {
    opacity: 1;
}

.property-description {
    margin-bottom: 2rem;
    line-height: 1.8;
    color: var(--text-color);
}

.property-description h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.75rem;
    font-weight: 600;
}

.description-section-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.description-section-heading:first-of-type {
    margin-top: 0;
}

.description-subheading {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.description-paragraph {
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-color);
}

.description-list {
    margin: 1rem 0 1.5rem 0;
    padding-left: 1.5rem;
    list-style: none;
}

.description-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: var(--text-color);
}

.description-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.property-features {
    margin-top: 2rem;
}

.amenities-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.amenity-category {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.amenity-category:last-child {
    border-bottom: none;
}

.amenity-category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.amenity-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
}

.amenity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-color);
    line-height: 1.5;
}

.amenity-item::before {
    content: "✓";
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.amenity-category.not-included {
    opacity: 0.7;
}

.amenity-item.unavailable::before {
    content: "✗";
    color: var(--text-light);
}

/* Fallback for simple features */
.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem;
}

.feature-item::before {
    content: "✓";
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Booking Widget */
.booking-widget-container {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.booking-widget-container h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

#smoobu-widget {
    width: 100%;
    overflow: visible;
    min-height: 600px;
}

/* Smoobu widget iframe styling */
#smoobu-widget iframe {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 500px !important;
    min-height: 800px !important;
    height: 800px !important;
    border: none;
    border-radius: 10px;
    overflow: auto !important;
    display: block !important;
}

/* Ensure Smoobu calendar widget has proper spacing */
#smoobu-widget #smoobuCalendarIframe {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
    overflow: visible !important;
}

/* Hide small devices iframe, show big devices */
#smoobu-widget .smallDevices {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

#smoobu-widget .bigDevices {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 500px !important;
    min-height: 800px !important;
    height: 800px !important;
    overflow: auto !important;
}

/* Ensure proper spacing in calendar */
#smoobu-widget table,
#smoobu-widget .calendar-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 2px !important;
}

#smoobu-widget td,
#smoobu-widget th {
    padding: 8px 4px !important;
    min-width: 40px !important;
}

/* Booking Form */
.booking-section {
    padding: 2rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.booking-header {
    text-align: center;
    margin-bottom: 3rem;
}

.booking-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.booking-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

.form-group input[type="date"],
.form-group input[type="number"] {
    cursor: pointer;
}

.date-selection-container {
    margin-top: 1rem;
}

.booking-details-display {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 5px;
    margin-top: 1rem;
}

.booking-details-display p {
    margin-bottom: 0.5rem;
}

/* Rental Agreement */
.agreement-container {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.agreement-text {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.agreement-text h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.agreement-text ol {
    margin-left: 2rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.agreement-text li {
    margin-bottom: 0.5rem;
}

.signature-section {
    margin-top: 2rem;
}

.signature-section label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
}

.signature-container {
    border: 2px solid var(--border-color);
    border-radius: 5px;
    background: var(--white);
    padding: 10px;
    margin-bottom: 1rem;
}

#signature-canvas {
    width: 100%;
    height: 200px;
    cursor: crosshair;
    border: 1px dashed var(--border-color);
    border-radius: 5px;
}

.signature-actions {
    display: flex;
    gap: 1rem;
}

.signature-display {
    margin-top: 2rem;
}

.signature-display label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
}

.signature-display img {
    max-width: 100%;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    padding: 10px;
    background: var(--white);
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.form-note {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Confirmation Page */
.confirmation-section {
    padding: 4rem 0;
    min-height: 60vh;
}

.confirmation-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    color: #27ae60;
}

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

.confirmation-message {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.confirmation-details {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    text-align: left;
}

.confirmation-details h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.confirmation-details p {
    margin-bottom: 0.5rem;
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.agreement-note {
    margin-top: 1rem;
    color: var(--text-light);
    font-style: italic;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-list {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .property-content {
        grid-template-columns: 1fr;
    }

    .booking-widget-container {
        position: static;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .confirmation-actions {
        flex-direction: column;
    }

    .hero-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
}

