/* === Brina Properties Frontend Styles === */

/* --- Property Grid (Listing) --- */
.brina-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.brina-property-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brina-property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.brina-property-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.brina-property-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #f5f5f5;
}

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

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

.brina-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.brina-property-price {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 700;
}

.brina-property-price small {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.8;
}

.brina-property-card-content {
    padding: 20px;
}

.brina-property-title {
    font-size: 20px;
    margin: 0 0 6px;
    line-height: 1.3;
}

.brina-property-location {
    color: #666;
    font-size: 14px;
    margin: 0 0 12px;
}

.brina-property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.brina-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #555;
}

.brina-meta-icon {
    font-size: 16px;
}

.brina-property-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* --- Single Property --- */
.brina-single-property {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Gallery */
.brina-property-gallery {
    margin-bottom: 30px;
}

.brina-gallery-main {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
}

.brina-gallery-main img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.brina-gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.brina-gallery-thumb {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
    flex-shrink: 0;
    border: 2px solid transparent;
}

.brina-gallery-thumb:hover,
.brina-gallery-thumb.active {
    opacity: 1;
    transform: translateY(-2px);
    border-color: #007cba;
}

.brina-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content Layout */
.brina-property-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

.brina-property-header {
    margin-bottom: 24px;
}

.brina-property-title {
    font-size: 32px;
    margin: 0 0 8px;
    line-height: 1.2;
}

.brina-property-location {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Details Bar */
.brina-property-details-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 24px;
}

.brina-detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    padding: 0 10px;
    text-align: center;
}

.brina-detail-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.brina-detail-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.brina-detail-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brina-detail-price .brina-detail-value {
    color: #007cba;
    font-size: 22px;
}

/* Description */
.brina-property-description {
    margin-bottom: 30px;
    line-height: 1.8;
}

.brina-property-description h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

/* Amenities */
.brina-property-amenities {
    margin-bottom: 30px;
}

.brina-property-amenities h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.brina-amenities-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.brina-amenities-list li {
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
}

/* Check-in/out Times */
.brina-property-times {
    margin-bottom: 30px;
}

.brina-property-times h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.brina-times-grid {
    display: flex;
    gap: 20px;
}

.brina-time-item {
    flex: 1;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.brina-time-label {
    display: block;
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.brina-time-value {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

/* --- Sidebar Enquiry Form --- */
.brina-property-sidebar {
    position: sticky;
    top: 30px;
}

.brina-enquiry-form-wrapper {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.brina-enquiry-title {
    font-size: 20px;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #007cba;
}

.brina-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.brina-form-field {
    margin-bottom: 12px;
}

.brina-form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.brina-form-field input,
.brina-form-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.brina-form-field input:focus,
.brina-form-field textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0,124,186,0.1);
}

.brina-enquiry-submit {
    width: 100%;
    padding: 14px 20px;
    background: #007cba;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.brina-enquiry-submit:hover {
    background: #005a87;
}

.brina-enquiry-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.brina-form-response {
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 14px;
}

.brina-form-response.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.brina-form-response.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Availability Section */
.brina-availability-summary {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

.brina-availability-summary h4 {
    margin: 0 0 16px;
    font-size: 16px;
}

.brina-availability-calendar {
    margin-bottom: 12px;
}

.brina-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.brina-cal-prev,
.brina-cal-next {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 18px;
    color: #333;
}

.brina-cal-prev:hover,
.brina-cal-next:hover {
    background: #f0f0f0;
}

.brina-cal-month-year {
    font-weight: 600;
    font-size: 14px;
}

.brina-cal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.brina-cal-table th {
    padding: 4px;
    text-align: center;
    color: #888;
    font-weight: 600;
    font-size: 11px;
}

.brina-cal-table td {
    padding: 2px;
    text-align: center;
}

.brina-cal-table td span {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    border-radius: 50%;
    font-size: 12px;
}

.brina-cal-table td .brina-cal-available {
    background: #e8f5e9;
    color: #2e7d32;
}

.brina-cal-table td .brina-cal-booked {
    background: #ffebee;
    color: #c62828;
    text-decoration: line-through;
}

.brina-cal-table td .brina-cal-today {
    font-weight: 700;
    border: 2px solid #007cba;
}

.brina-cal-legend {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.brina-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
}

.brina-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.brina-legend-avail {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
}

.brina-legend-booked {
    background: #ffebee;
    border: 1px solid #ef9a9a;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .brina-properties-grid {
        grid-template-columns: 1fr;
    }

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

    .brina-property-sidebar {
        position: static;
    }

    .brina-gallery-main img {
        height: 250px;
    }

    .brina-property-details-bar {
        gap: 12px;
        padding: 16px;
    }

    .brina-detail-item {
        min-width: 60px;
    }

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

    .brina-property-title {
        font-size: 24px;
    }

    .brina-amenities-list {
        grid-template-columns: 1fr;
    }
}
