/* 
 * The Village Rentals - Main Stylesheet
 * This file contains all styles for The Village Rentals website
 */

body {
    font-family: 'Montserrat', sans-serif;
}

/* Header Styles */
.top-header {
    padding: 20px 0;
}

.brand-name {
    font-weight: 500;
    letter-spacing: 2px;
    font-size: 1rem;
    color: #333;
}

.contact-info a {
    color: #333;
    text-decoration: none;
    margin-right: 20px;
    font-size: 0.9rem;
}

.book-now-btn {
    border: 1px solid #333;
    color: #333;
    background: transparent;
    padding: 10px 25px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s;
    text-decoration: none;
}

.book-now-btn:hover {
    background-color: #333;
    color: #fff;
}

.nav-menu {
    padding: 15px 0;
}

.nav-menu .nav-link {
    color: #333;
    font-weight: bolder;
    font-size: 1.3rem;
    padding: 0 80px; /* Increased padding to space out menu items */
    margin: 0 5px;
}

.nav-menu .nav-link:hover {
    color: #666;
}

/* Mobile Menu Toggle */
.navbar-toggler {
    border: none;
    padding: 10px;
    background-color: transparent;
    margin: 0 auto;
    display: none;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 30px;
    height: 30px;
}

/* Property Title Styling */
.property-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
}

.property-subtitle {
    font-size: 1rem;
    color: #666;
}

/* Property Tabs Styling */
.property-tabs {
    border-bottom: none;
}

.property-tabs .nav-link {
    color: #f88;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: none;
}

.property-tabs .nav-link.active {
    color: #f88;
    border-bottom: none;
}

.property-tabs .nav-link:hover {
    color: #f66;
}

/* Property Image Styling */
.main-property-image {
    border-radius: 4px;
}

.thumbnail-image {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

/* Booking Form Styling */
.booking-form {
    border-radius: 4px;
    /* border: 1px solid #ddd; */
}

.booking-form label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #666;
}

.booking-form .form-control,
.booking-form .form-select,
.booking-form .input-group-text {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
}

.booking-form .btn-primary {
    background-color: #333;
    border-color: #333;
}

.booking-form .btn-primary:hover {
    background-color: #555;
    border-color: #555;
}

.booking-form .btn-outline-secondary {
    color: #333;
    border-color: #333;
}

.booking-form .btn-outline-secondary:hover {
    background-color: #f5f5f5;
}

/* Property Details Styling */
.property-details {
    margin-top: 30px;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

/* Rates and Size Styling */
.info-section p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Amenities Styling */
.amenities-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0;
}

.amenities-list li {
    color: #666;
    font-size: 0.9rem;
}

.amenities-list i {
    color: #f88;
    margin-right: 5px;
}

.more-amenities {
    color: #f88;
    text-decoration: none;
}

.more-amenities:hover {
    text-decoration: underline;
}

/* Property Description Styling */
.property-description p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Calendar Styling */
.section-heading {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.calendar-navigation {
    margin-bottom: 20px;
}

.current-date {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Calendar Legend */
.calendar-legend {
    display: flex;
    align-items: center;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
}

.legend-color {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 5px;
    border-radius: 3px;
}

.legend-color.unavailable {
    background-color: #6c757d;
}

.legend-color.available {
    background-color: #fff;
    border: 1px solid #ddd;
}

.legend-color.holiday {
    background-color: #a8c9ff;
}

/* Calendar Table */
.month-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
    color: #333;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
}

.calendar-table th {
    padding: 8px 0;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
}

.calendar-table td {
    width: 14.28%;
    height: 45px; /* Increased height to accommodate rate */
    text-align: center;
    font-size: 0.8rem;
    border: 1px solid #ddd;
    padding: 5px;
    vertical-align: top;
}

.calendar-table td .day-number {
    font-weight: 500;
}

.calendar-table td .day-rate {
    font-size: 0.7rem;
    color: #f88;
    margin-top: 2px;
}

.calendar-table td.empty {
    border: none;
}

.calendar-table td.available {
    background-color: #fff;
    color: #333;
    cursor: pointer;
}

.calendar-table td.available:hover {
    background-color: #f5f5f5;
}

.calendar-table td.unavailable {
    background-color: #6c757d;
    color: #fff;
    position: relative;
    cursor: not-allowed;
}

.calendar-table td.unavailable:hover::after {
    content: "Unavailable";
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 100;
    white-space: nowrap;
}

.calendar-table td.unavailable:hover {
    background-color: #5a6268;
}

.calendar-table td.holiday {
    background-color: #a8c9ff;
    color: #333;
}

/* Cancellation Policy Styling */
.cancellation-policy .policy-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* About Owner Styling */
.about-owner .owner-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.about-owner .owner-name {
    font-weight: 600;
    color: #333;
}

/* Location Styling */
.map-container {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.google-map {
    width: 100%;
    height: 450px;
    background-color: #f5f5f5;
}

/* Amenities Section Styling */
.amenities-container {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
}

.amenity-row {
    background-color: #fff;
}

.amenity-row:nth-child(odd) {
    background-color: #f5f5f5;
}

.amenity-label {
    font-weight: 600;
    color: #333;
}

.amenity-row .border-bottom {
    border-color: #eee !important;
}

/* Guest Reviews Styling */
.reviews-section {
    margin-top: 30px;
}

.rating-summary {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.overall-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #f5f5f5;
    margin-right: 20px;
}

.rating-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #333;
    color: #fff;
}

.rating-number {
    font-size: 1.5rem;
    font-weight: 600;
}

.rating-stars {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stars {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.rating-count {
    font-size: 0.8rem;
    color: #666;
}

.filter-controls {
    margin-bottom: 20px;
}

.sort-by, .filter-by {
    display: flex;
    align-items: center;
}

.sort-by .dropdown-toggle, .filter-by .dropdown-toggle {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

.search-reviews {
    margin-left: auto;
}

.search-reviews .input-group {
    width: 250px;
}

.search-reviews .form-control {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

.search-reviews .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

.review-count {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 20px;
}

.review-list {
    margin-bottom: 20px;
}

.review-item {
    padding-bottom: 20px;
}

.review-rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.review-author {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 10px;
}

.author-name {
    font-weight: 600;
}

.stay-date {
    color: #999;
}

.review-content {
    font-size: 0.9rem;
    color: #666;
}

.dropdown-item {
    color: #f88;
}

/* Footer Styling */
.footer {
    border-top: 1px solid #eee;
}

.footer a {
    color: #f88;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive styles */
/* Mobile responsive styles */
@media (max-width: 991px) {
    .top-header {
        text-align: center;
    }
    
    .contact-info, .brand-name, .booking-btn {
        margin-bottom: 15px;
    }
    
    .nav-menu .nav {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-menu .nav-link {
        padding: 10px 20px;
        text-align: center;
        margin: 5px 0;
        width: 100%;
        border-top: 2px solid #ff0000;
        border-bottom: 2px solid #ff0000;
    }
    
    .navbar-toggler {
        display: block;
        margin-bottom: 15px;
    }
    
    .nav-container {
        display: none;
    }
    
    .nav-container.show {
        display: block;
    }
    
    /* Main content responsive styles */
    .property-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: -ms-autohiding-scrollbar;
        padding-bottom: 10px;
    }
    
    .property-tabs .nav-item {
        flex-shrink: 0;
    }
    
    .property-tabs .nav-link {
        white-space: nowrap;
        padding: 0.5rem 0.75rem;
    }
    
    .thumbnail-gallery {
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }
    
    .booking-form {
        margin-top: 20px;
    }
    
    .calendar-legend {
        margin-top: 15px;
        justify-content: center;
    }
    
    .calendar-navigation {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .calendar-table td {
        height: 40px;
    }
    
    .google-map {
        height: 350px;
    }
}

/* Medium screens */
@media (min-width: 992px) and (max-width: 1199px) {
    .nav-menu .nav-link {
        padding: 0 30px; /* Slightly less padding on medium screens */
    }
    
    /* Main content medium screen adjustments */
    .property-tabs .nav-link {
        padding: 0.5rem 0.75rem;
    }
}

/* Small screens */
@media (max-width: 767px) {
    .contact-info a {
        display: block;
        margin-bottom: 5px;
    }
    
    /* Main content small screen adjustments */
    .property-title {
        font-size: 1.5rem;
    }
    
    .property-subtitle {
        font-size: 0.9rem;
    }
    
    .booking-form .btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .booking-form .row > div {
        margin-bottom: 10px;
    }
    
    .amenities-list {
        flex-direction: column;
        gap: 10px;
    }
    
    .info-section p {
        font-size: 0.9rem;
    }
    
    .legend-item {
        margin-bottom: 5px;
    }
    
    .calendar-table td {
        height: 35px;
        font-size: 0.75rem;
    }
    
    .calendar-table td .day-rate {
        font-size: 0.65rem;
    }
    
    .amenity-label {
        font-weight: 700;
        margin-bottom: 10px;
        border-bottom: 1px solid #eee;
        padding-bottom: 5px;
    }
}

/* Extra small screens */
@media (max-width: 575px) {
    .property-title {
        font-size: 1.3rem;
    }
    
    .property-tabs .nav-link {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }
    
    .thumbnail-image {
        width: 80px;
        height: 60px;
    }
    
    .booking-form {
        padding: 15px 10px;
    }
    
    .booking-form .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .booking-form .d-flex {
        flex-direction: column;
    }
}
