/**
 * Main CSS file for Com4thPlus Booking Plugin
 * Enhanced professional design
 */

/* Global Styles */
.com4thplus-container {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    box-sizing: border-box;
    color: #333;
    line-height: 1.6;
}

.com4thplus-title {
    font-size: 32px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 35px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.com4thplus-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: #3498db;
    bottom: -2px;
    left: 0;
}

.com4thplus-button {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.com4thplus-button:hover {
    background-color: #2980b9;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.com4thplus-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.com4thplus-button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.com4thplus-message {
    padding: 18px;
    margin-bottom: 25px;
    border-radius: 8px;
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.com4thplus-message.success {
    background-color: #e8f8f3;
    color: #27ae60;
    border-left: 5px solid #2ecc71;
}

.com4thplus-message.error {
    background-color: #fbeaea;
    color: #c0392b;
    border-left: 5px solid #e74c3c;
}

.com4thplus-error {
    padding: 18px;
    background-color: #fbeaea;
    color: #c0392b;
    border-left: 5px solid #e74c3c;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.required {
    color: #e74c3c;
    margin-left: 3px;
}
/* Form Styles */
.com4thplus-form {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 16px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
    background-color: #fff;
}

.form-group small {
    display: block;
    margin-top: 8px;
    color: #7f8c8d;
    font-size: 14px;
}

.submit-group {
    margin-top: 35px;
}

/* Apartment Upload Form Styles */
.photo-uploads,
.video-uploads {
    margin-bottom: 35px;
}

.photo-upload-group,
.video-upload-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.photo-upload-item,
.video-upload-item {
    margin-bottom: 15px;
    position: relative;
}

.file-preview {
    margin-top: 12px;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.file-preview img {
    max-width: 100%;
    max-height: 170px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.file-preview img:hover {
    transform: scale(1.03);
}

.file-preview .filename {
    display: inline-block;
    padding: 10px 15px;
    background-color: #f8f8f8;
    border-radius: 6px;
    border: 1px solid #eee;
    font-size: 14px;
    word-break: break-all;
}
/* Apartment Listing Styles */
.apartment-filters {
    margin-bottom: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-filter {
    display: flex;
    gap: 12px;
    flex-grow: 1;
}

.search-filter input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.search-filter input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.apartment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.apartment-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.apartment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.apartment-image {
    height: 230px;
    overflow: hidden;
    position: relative;
}

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

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

.no-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    background-color: #f5f5f5;
    color: #95a5a6;
    font-size: 16px;
}

.apartment-details {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.apartment-details h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #2c3e50;
    font-size: 22px;
    font-weight: 600;
}

.apartment-location {
    color: #7f8c8d;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
}

.location-icon {
    color: #e74c3c;
}

.apartment-price {
    font-size: 20px;
    font-weight: 600;
    color: #3498db;
    margin-bottom: 20px;
}

.apartment-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.view-details {
    background-color: transparent;
    color: #3498db;
    border: 1px solid #3498db;
    transition: all 0.3s ease;
}

.view-details:hover {
    background-color: rgba(52, 152, 219, 0.1);
    color: #2980b9;
}

.book-now {
    flex-grow: 1;
}

.no-apartments {
    text-align: center;
    padding: 60px 20px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 25px;
    background-color: #f8f8f8;
    border-radius: 8px;
    margin-top: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: #7f8c8d;
}
/* Single Apartment Styles */
.single-apartment {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.apartment-header {
    padding: 25px 30px;
    border-bottom: 1px solid #f0f0f0;
}

.apartment-header h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 30px;
    font-weight: 700;
    color: #2c3e50;
}

.apartment-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7f8c8d;
    font-size: 16px;
}

.location-icon {
    color: #e74c3c;
    font-size: 18px;
}

.apartment-media {
    padding: 30px;
}

.apartment-photos {
    margin-bottom: 35px;
}

.main-photo {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    height: 450px;
    text-align: center;
    background-color: #f8f8f8;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.main-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: thin;
    scrollbar-color: #bdc3c7 #f1f1f1;
}

.photo-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.photo-thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.photo-thumbnails::-webkit-scrollbar-thumb {
    background: #bdc3c7;
    border-radius: 10px;
}

.photo-thumbnails::-webkit-scrollbar-thumb:hover {
    background: #95a5a6;
}

.thumbnail {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail:hover img {
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

.apartment-videos {
    margin-top: 35px;
}

.apartment-videos h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
}

.video-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.video-item {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-item video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.apartment-info {
    padding: 30px;
    border-top: 1px solid #f0f0f0;
}

.price-section,
.description-section {
    margin-bottom: 35px;
}

.price-section h3,
.description-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    position: relative;
    padding-bottom: 10px;
}

.price-section h3:after,
.description-section h3:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: #3498db;
    bottom: 0;
    left: 0;
}

.price {
    font-size: 28px;
    font-weight: 700;
    color: #3498db;
}

.price span {
    font-size: 17px;
    font-weight: normal;
    color: #7f8c8d;
}

.apartment-description {
    color: #34495e;
    line-height: 1.7;
    font-size: 16px;
}

.booking-action {
    margin-top: 35px;
    text-align: center;
}

.book-now-large {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.unavailable-dates {
    margin-top: 35px;
    padding: 25px;
    background-color: #fef9e7;
    border-radius: 10px;
    border-left: 5px solid #f39c12;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.unavailable-dates h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
}

.unavailable-dates ul {
    margin: 0;
    padding-left: 25px;
}

.unavailable-dates li {
    margin-bottom: 10px;
    color: #34495e;
}
/* Booking Form Styles */
.booking-layout {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 35px;
}

.apartment-summary {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 30px;
    align-self: start;
}

.apartment-thumbnail {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.apartment-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.apartment-brief h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
}

.apartment-brief p {
    margin-bottom: 10px;
    color: #34495e;
}

.apartment-brief .location {
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 5px;
}

.apartment-brief .price {
    font-size: 22px;
    font-weight: 600;
    color: #3498db;
    margin-bottom: 20px;
}

.view-details-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.view-details-link:hover {
    color: #2980b9;
}

.view-details-link:after {
    content: '→';
    transition: transform 0.3s;
}

.view-details-link:hover:after {
    transform: translateX(3px);
}

.form-section {
    margin-bottom: 35px;
}

.form-section h3 {
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    position: relative;
}

.form-section h3:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #3498db;
    bottom: -2px;
    left: 0;
}

.date-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.calculation-result {
    margin-top: 25px;
}

.calculation-box {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.calculation-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 16px;
    color: #34495e;
}

.calculation-row.caution-fee {
    color: #f39c12;
    font-weight: 500;
    font-style: italic;
}

.calculation-row.total {
    font-weight: 600;
    font-size: 20px;
    border-top: 1px solid #ddd;
    padding-top: 12px;
    margin-top: 12px;
    color: #2c3e50;
}

.caution-note {
    margin-top: 15px;
    padding: 10px;
    background-color: #fff3cd;
    border-left: 4px solid #f39c12;
    border-radius: 4px;
}

.caution-note small {
    color: #856404;
    font-size: 13px;
    line-height: 1.4;
}

/* Payment Related Styles */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.payment-option:hover {
    background-color: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.payment-option input {
    margin-right: 12px;
    transform: scale(1.2);
}

.payment-option input:checked + .payment-label {
    font-weight: 500;
    color: #2c3e50;
}

.payment-option:has(input:checked) {
    border-color: #3498db;
    background-color: rgba(52, 152, 219, 0.05);
    box-shadow: 0 0 0 1px #3498db;
}

.payment-label {
    font-weight: 500;
}

.bank-transfer-info {
    margin-top: 25px;
    padding: 20px;
    background-color: #eef7fb;
    border-radius: 8px;
    border-left: 5px solid #3498db;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.bank-transfer-info h4 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 15px;
}

/* Bank Transfer Confirmation Styles */
.bank-transfer-confirmation {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 40px;
}

.bank-transfer-confirmation h2 {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.bank-transfer-confirmation h2:after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background-color: #3498db;
    bottom: -2px;
    left: 0;
}

.booking-summary, 
.bank-details {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.booking-summary h3, 
.bank-details h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

/* Paystack Payment Styles */
.com4thplus-payment-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.com4thplus-payment-container h2 {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.com4thplus-payment-container h2:after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background-color: #3498db;
    bottom: -2px;
    left: 0;
}

/* Success and Error Messages */
.com4thplus-success-permanent {
    background-color: #e8f8f3;
    color: #27ae60;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #2ecc71;
}

.com4thplus-success-permanent h2 {
    margin-top: 0;
    color: #27ae60;
    font-size: 24px;
    margin-bottom: 15px;
}

.booking-details {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.booking-details h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #2c3e50;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .apartment-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .booking-layout {
        grid-template-columns: 1fr;
    }
    
    .apartment-summary {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }
    
    .date-selection {
        grid-template-columns: 1fr;
    }
    
    .main-photo {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .com4thplus-container {
        padding: 20px 15px;
    }
    
    .apartment-header h2 {
        font-size: 24px;
    }
    
    .price {
        font-size: 24px;
    }
    
    .book-now-large {
        padding: 12px 30px;
        font-size: 16px;
    }
}
