/*
Theme Name: Twenty Twenty-Five Child
Template: twentytwentyfive
Version: 1.0
*/
/* General body and container styles */
.rental-calendar {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 24px;
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rental-calendar .calendar-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.rental-calendar .month {
    flex: 1 1 300px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.rental-calendar .month-title {
    background-color: #4f46e5;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 15px 20px;
    text-align: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    margin-bottom: 10px;
}

.rental-calendar .day-headers, .days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 5px;
    padding: 0 15px 15px 15px;
}

.rental-calendar .day-headers span {
    font-weight: 600;
    color: #4a5568;
    padding: 8px 0;
    font-size: 0.9rem;
}

/* Calendar Cells */
.rental-calendar .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;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rental-calendar .calendar-cell.empty {
    visibility: hidden;
}

.rental-calendar .calendar-date {
    background-color: #f1f5f9;
    color: #333;
    cursor: pointer;
}
.rental-calendar .calendar-date:hover {
    background-color: #e2e8f0;
}
.rental-calendar .calendar-date.past {
    background-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Booked and Unavailable Dates */
.rental-calendar .calendar-cell.booked {
    background-color: #ef4444;
    color: #fff;
    cursor: not-allowed;
}
.rental-calendar .calendar-cell.unavailable {
    background-color: #a5a5a5;
    color: #f3f4f6;
    cursor: not-allowed;
}

/* Range Selection Styles */
.rental-calendar .calendar-cell.selected {
    background-color: #4f46e5;
    color: #fff;
}
.rental-calendar .calendar-cell.selected:hover {
    background-color: #4338ca;
}
.rental-calendar .calendar-cell.range-start,
.rental-calendar .calendar-cell.range-end {
    background-color: #4f46e5;
    color: #ffffff;
    z-index: 1;
    position: relative;
}
.rental-calendar .calendar-cell.selected-range {
    background-color: #a5b4fc;
    color: #4f46e5;
    border-radius: 0;
}
.rental-calendar .calendar-cell.range-start {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}
.rental-calendar .calendar-cell.range-end {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}
.rental-calendar .calendar-cell.range-start.range-end {
    border-radius: 6px;
    background-color: #4f46e5;
}

/* Form Styles */
.rental-calendar .booking-form-container {
    display: none;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    background-color: #f7fafc;
    padding: 20px;
    border-radius: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

/* Message Styles */
.rental-calendar #booking-message-container {
    margin-top: 20px;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    display: none;
}
.rental-calendar #booking-message-container.success {
    background-color: #d1fae5;
    color: #065f46;
}
.rental-calendar #booking-message-container.error {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .rental-calendar {
        padding: 15px;
    }
    .rental-calendar .month-title {
        font-size: 1.3rem;
        padding: 12px 15px;
    }
    .rental-calendar .day-headers span, .calendar-cell {
        font-size: 0.85rem;
        padding: 10px 0;
    }
}
.rates h2 {
  font-size: 24px;
  color: #03a1fc;
}

.wrap h3 {
  font-size: 16px;
  color: #4f46e5;
}

.wrap p {
  font-size: 14px;
}
/* Initially hide confirmation */
#booking-confirmation {
  display: none;
}

#booking-form-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 40px;
  z-index: 9998;
}

#booking-form-overlay.show {
  display: flex !important;
}

/* Booking form & confirmation styles - positioned on top of each other */
#booking-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #fff;
  border-radius: 8px;
  padding: 12px;
  max-width: 400px;
  width: 90vw;
  max-height: 90%;
  margin-top: 1rem;
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
  position: absolute; /* Important to layer */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

#booking-confirmation {
  display: flex;
  flex-direction: column;
  gap: 1rem;
/*  background-color: #723737;*/
  border-radius: 8px;
  padding: 12px;
  max-width: 400px;
  width: 90vw;
  max-height: 90%;
  margin-top: 1rem;
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
  position: absolute; /* Important to layer */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


#cancel-booking,
#continue-payment {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  background-color: #0073aa;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  margin-bottom: 10px;
  width: 100%;
  box-sizing: border-box;
}

#cancel-booking {
  background-color: #aaa;
}

#booking-message {
  white-space: pre-line; /* preserves new lines if text contains \n */
  max-width: 400px;       /* limits width for better readability */
  margin: 0 auto;         /* center horizontally */
  line-height: 1.4em;    /* comfortable line spacing */
  text-align: center;       /* align text left inside the container */
}
#booking-message h3 {
    font-size: 1.75rem;
    color: #03bff9;
    line-height: 2.1rem;
    padding-bottom: 5px;
}
.property-layout main {
    float: left;
    width: 72%; /* Adjust as needed */
}
aside#sidebar {
    float: right;
    width: 28%; /* Adjust as needed */
}
.property-layout::after {
    content: "";
    display: table;
    clear: both;
}
/*.property-layout { border: 5px solid red !important; } */

#sidebar ul li {
    list-style-type: none;
}
#sidebar a {
    text-decoration: none;
}

#sidebar h2 {
    text-align: left;
}
/*
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;
}
.widget-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.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.3s ease, box-shadow 0.3s ease;
}

    .property-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }
.property-card img {
    width: 100%;
        height: 200px;
        object-fit: cover;
}

.property-card h2 {
    font-size: 1.5rem;
        margin: 16px 16px 8px;
        color: #333;
}

.property-card p {
    font-size: 1rem;
    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: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
}
#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-item {
  overflow: hidden;
  border-radius: 12px;
  display: inline-block;
  align-items: center;
  vertical-align: top;
  justify-content: center;
}
.gallery-thumb-img {
  width: 250px;
  height: 250px;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.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;
}

/* Base Calendar Container */
.rental-calendar-container {
    max-width: 800px;
    margin: 2rem auto;
    font-family: sans-serif;
    color: #333;
}

/* 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: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
    font-size: 0.875rem;
    font-weight: 500;
    user-select: none;
    line-height: 1.5;
}

.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: #2408f5ff !important;
      border-radius: 50%;
    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 */
#booking-form-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  background-color: rgba(0,0,0,0.1);
border-radius: 50%;
z-index: auto;
}

#booking-form button[type="submit"] {
  margin-top: 1rem;
}

.center-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  background: #fff;
  padding: 20px 20px 40px; /* extra bottom padding for buttons */
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  width: 450px;
  max-width: 90%;
  min-height: 600px;
  max-height: none;
  overflow: visible;
  position: relative;
  opacity: 1;
  visibility: visible;
}



.center-container.active {
  display: flex !important;
  opacity: 1;
  visibility: visible;
}

/*#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="tel"] {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    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: #28a745;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

button[type="submit"]:hover {
    background-color: #4f46e5;
    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;
}
.page-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 960px;
    margin: 20px auto;
    padding: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
.main-content {
    flex: 3;
    flex-flow: row wrap;
    min-width: 0;
    flex-grow: 1;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
    
    h2 {
        color: #333;
        text-align: center;
        margin-bottom: 20px;
    }
    .calendar-row {
        display: flex;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .month {
        flex: 1 1 300px;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 6px;
        padding: 15px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }


    
    .month-title {
        text-align: center;
        margin: 0 0 15px;
        font-size: 1.2em;
        color: #555;
    }
    .day-headers {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        text-align: center;
        font-weight: bold;
        color: #777;
        margin-bottom: 10px;
    }

    
    .days-grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 5px;
    }

    
    .calendar-cell.empty {
        background-color: transparent;
        cursor: default;
    }
    .calendar-cell:not(.empty):not(.past):not(.booked):not(.unavailable):hover {
        background-color: #e6f2ff;
    }
    .calendar-cell.past, .calendar-cell.booked, .calendar-cell.unavailable {
        cursor: not-allowed;
        color: #aaa;
    }

    .calendar-cell.unavailable {
      background-color: #2104fcff;
      border-radius: 50%;
      color: white;
    }
    .calendar-cell.past {
        background-color: #f0f0f0;
    }
    
    /* New styles for selection and booked ranges */
    .calendar-cell.selected, .calendar-cell.selected-range, .calendar-cell.booked {
        background-color: #b3d9ff;
        color: white;
    }
    .calendar-cell.booked-in-range {
      border-radius:0px;
      background-color: #02ff2cff;
      color: white;
    }
    .calendar-cell.booked.single-day {
      border-radius: 50%;
      background-color: #ff029eff;
      color: white;
    }
    .calendar-cell.booked-start, .calendar-cell.booked-in-range {
      border-radius:0px;
      margin-right: -2.5px;
      background-color: #02ff2cff;
      color: white;
    }
    .calendar-cell.booked-end, .calendar-cell.booked-in-range {
      border-radius:0px;
      margin-left: -2.5px;
      background-color: #02ff2cff;
      color: white;
    }    

    .calendar-cell.booked-start {
      border-top-left-radius:50% !important;
      background-color: #02ff2cff;
      color: white;
    }
    .calendar-cell.booked-end {
      border-bottom-right-radius:50% !important;
      background-color: #02ff2cff;
      color: white;
    }
    
    .hidden-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    .hidden-overlay {
        display: none !important;
    }
    .hidden-overlay.show {
        display: flex !important;
    }
    .form-field {
        margin-bottom: 15px;
    }
    .form-field label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
    }
    .form-field input {
        width: 100%;
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 4px;
    }
            /* New styles for the frontend property grid */
    .property-card a {
        display: block;
        text-decoration: none;
        color: inherit;
    }
.hidden-form {
    display: none !important;
}


.selected-start {
    background-color: #a0d8ef;
}
.selected-end {
    background-color: #f9c74f;
}
#booking-confirmation ul li {
  list-style-type: none;
  position: relative;
  padding-left: 15px;
}

.hidden {
  display: none !important;
}


#booking-confirmation ul li:before {
  content: "\25BA \0020";
  font-size: 16px;
  position: absolute;
  top: 8px;
  left: -10px;
}
.confirmation-wrapper {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
}
#booking-form-overlay {
  transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

#booking-form-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
#booking-form {
  display: block;
  width: 100%;
}
.center-container {
  width: 450px;
  max-width: 90%;
}
@media (max-height: 460px) {
  .center-container {
    max-height: 90vh;
    overflow-y: auto;
  }
}
#booking-header {
    background-color: rgb(226, 30, 30);
    margin-bottom: 5px;
    line-height: 1.5rem;
    text-align: center;
}
#booking-header h3 {
    font-size: 1.5rem;
    color: rgb(6, 241, 53);
    margin-bottom: 5px;
    line-height: 1.5rem;
    text-align: center;
}
.property-meta li::before {
  content: "✓";
  color: green;
  margin-right: 8px;
}
.feature-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.rounded-image {
  border-radius: 125px;
  max-width: 100%;
  height: auto;
}
.wp-image-10 {
  width: 100% !important;
  max-width: 600px;
}
