﻿/* CSS Variables */
:root {
    --color-blue: #2563eb;
    --color-orange: #f49405;
    --color-light-gray: #f3f4f6;
    --color-gray: #222222;
    --color-dark-gray: #374151;
    --color-white: #ffffff;
    --color-black: #000000;
}

/* Apartment Details Page Styles */
.apartment-detail-container {
    margin: 0;
    min-height: 100vh;
    background: var(--color-white);
    padding-top: 80px;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--color-white);
    color: var(--color-dark-gray);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--color-light-gray);
    border-top: 4px solid var(--color-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

/* Header Section */
.detail-header {
    padding: 15px 20px 0px 20px;
    background: var(--color-white);
    color: var(--color-dark-gray);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    position: absolute;
    left: 0;
    top: 0;
}

.breadcrumb-link {
    color: var(--color-dark-gray);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
    font-weight: 500;
}

    .breadcrumb-link:hover {
        color: var(--color-blue);
    }

.breadcrumb-separator {
    color: var(--color-gray);
    font-size: 0.75rem;
}

.breadcrumb-current {
    color: var(--color-gray);
    font-weight: 400;
}

.apartment-title {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #484848 !important;
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    margin-top: 25px;
    line-height: 1.3;
    letter-spacing: -0.5px;
    text-align: center;
    width: 100%;
}

/* Content Section */
.detail-content {
    background: var(--color-white);
    margin: 0 20px 20px;
    border-radius: 24px 24px 0 0;
    padding: 40px;
    min-height: 60vh;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

.main-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.detail-card {
    background: var(--color-white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--color-light-gray);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark-gray);
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .section-title i {
        color: var(--color-blue);
    }

.description {
    color: var(--color-gray);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.no-description {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-gray);
}

    .no-description i {
        font-size: 2.5rem;
        color: var(--color-light-gray);
        margin-bottom: 15px;
    }

.apartment-features {
    margin-top: 30px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--color-light-gray);
    border-radius: 16px;
    border: 2px solid var(--color-light-gray);
    transition: all 0.3s ease;
}

    .feature-item:hover {
        border-color: var(--color-blue);
        background: rgba(37, 99, 235, 0.05);
    }

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--color-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.2rem;
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.feature-label {
    font-size: 0.9rem;
    color: var(--color-gray);
    font-weight: 500;
}

.feature-value {
    font-size: 1.1rem;
    color: var(--color-dark-gray);
    font-weight: 600;
}

.status-active {
    color: #22c55e;
}

.status-inactive {
    color: #ef4444;
}

/* Booking Sidebar */
.booking-sidebar {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.booking-card {
    background: var(--color-white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--color-light-gray);
}

.booking-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-light-gray);
}

.price-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
}

.price-amount {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-dark-gray);
}

.price-period {
    color: var(--color-gray);
    font-size: 1.1rem;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.date-inputs {
    display: column;
}

.input-group {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-dark-gray);
}

.booking-input {
    padding: 15px;
    border: 2px solid var(--color-light-gray);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--color-white);
    transition: all 0.3s ease;
}

    .booking-input:focus {
        outline: none;
        border-color: var(--color-blue);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

.booking-summary {
    background: var(--color-light-gray);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--color-light-gray);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    color: var(--color-gray);
    margin-bottom: 10px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-dark-gray);
    padding-top: 10px;
    border-top: 2px solid var(--color-light-gray);
}

.date-error {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.unavailable-dates-warning {
    background: #fef2f2;
    color: #991b1b;
    border: 2px solid #fca5a5;
    padding: 12px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

.availability-info {
    background: #f0fdf4;
    border: 2px solid #86efac;
    border-radius: 16px;
    padding: 20px;
    margin-top: 15px;
}

.availability-title {
    font-size: 1rem;
    font-weight: 600;
    color: #14532d;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.availability-ranges {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.availability-range {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #14532d;
    font-size: 0.9rem;
}

    .availability-range i {
        color: #22c55e;
        font-size: 0.8rem;
    }

.booking-input:invalid {
    border-color: #fca5a5;
    box-shadow: 0 0 0 3px rgba(252, 165, 165, 0.1);
}

.booking-message {
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

    .booking-message.success {
        background: #f0fdf4;
        color: #14532d;
        border: 2px solid #86efac;
    }

    .booking-message.error {
        background: #fef2f2;
        color: #991b1b;
        border: 2px solid #fca5a5;
    }

.btn-book {
    background: var(--color-blue);
    color: var(--color-white);
    border: none;
    padding: 18px 25px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

    .btn-book:hover:not(:disabled) {
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(37, 99, 235, 0.6);
    }

    .btn-book:disabled {
        background: var(--color-gray);
        cursor: not-allowed;
        box-shadow: none;
        transform: none;
    }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quick-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    flex: 1;
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-blue);
    border: 2px solid var(--color-blue);
    padding: 15px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

    .action-btn:hover {
        background: var(--color-blue);
        color: var(--color-white);
        transform: translateY(-2px);
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Modal Base Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--color-light-gray);
    background: var(--color-light-gray);
    border-radius: 20px 20px 0 0;
}

    .modal-header h3 {
        margin: 0;
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--color-dark-gray);
    }

.modal-close {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.2rem;
}

    .modal-close:hover {
        background: rgba(0, 0, 0, 0.1);
        color: var(--color-dark-gray);
        transform: scale(1.05);
    }

.modal-body {
    padding: 24px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid var(--color-light-gray);
    margin-top: 20px;
}

/* Client Details Modal */
.client-modal {
    background: var(--color-white);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.booking-summary-modal {
    background: #eff6ff;
    border: 2px solid #bfdbfe;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

    .summary-item.total {
        border-top: 2px solid var(--color-blue);
        margin-top: 10px;
        padding-top: 15px;
        font-weight: 700;
    }

.summary-label {
    color: var(--color-blue);
    font-weight: 600;
}

.summary-value {
    color: var(--color-dark-gray);
    font-weight: 600;
    padding-left: 30px;
}

.client-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .form-group label {
        font-weight: 600;
        color: var(--color-dark-gray);
        font-size: 0.95rem;
    }

.form-input {
    padding: 15px;
    border: 2px solid var(--color-light-gray);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--color-white);
}

    .form-input:focus {
        outline: none;
        border-color: var(--color-blue);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

    .form-input.error {
        border-color: #ef4444;
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    }

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .error-message::before {
        content: "⚠";
    }

.map-container {
    position: relative;
}

.btn-cancel {
    background: var(--color-light-gray);
    color: var(--color-gray);
    border: 2px solid var(--color-light-gray);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

    .btn-cancel:hover {
        background: var(--color-gray);
        color: var(--color-white);
        transform: translateY(-2px);
    }

.btn-continue {
    background: var(--color-blue);
    color: var(--color-white);
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

    .btn-continue:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    }

/* Payment Modal */
.payment-modal {
    background: var(--color-white);
    border-radius: 20px;
    max-width: 650px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
}

.payment-header {
    background: var(--color-blue);
    color: var(--color-white);
    border-radius: 20px 20px 0 0;
}

    .payment-header .modal-close {
        background: rgba(255, 255, 255, 0.1);
        color: var(--color-white);
    }

        .payment-header .modal-close:hover {
            background: rgba(255, 255, 255, 0.2);
        }

.payment-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .payment-title h3 {
        color: var(--color-white);
    }

    .payment-title i {
        font-size: 1.5rem;
    }

.payment-info {
    background: var(--color-light-gray);
    border: 2px solid var(--color-light-gray);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
}

.payment-amount {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-light-gray);
}

.amount-label {
    font-size: 1.1rem;
    color: var(--color-gray);
    font-weight: 600;
}

.amount-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-blue);
}

.client-info {
    margin-top: 20px;
}

    .client-info h4 {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--color-dark-gray);
        margin: 0 0 12px 0;
    }

    .client-info p {
        margin: 6px 0;
        color: var(--color-gray);
        font-size: 0.95rem;
    }

        .client-info p strong {
            color: var(--color-dark-gray);
            font-weight: 600;
        }

.payment-simulation {
    background: var(--color-white);
    border: 2px solid var(--color-light-gray);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
}

.simulation-notice {
    background: #fef3c7;
    color: #92400e;
    border: 2px solid var(--color-orange);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 500;
}

.payment-processing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px;
}

    .payment-processing p {
        color: var(--color-gray);
        font-size: 1.1rem;
        font-weight: 500;
        margin: 0;
    }

.processing-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--color-light-gray);
    border-top: 4px solid var(--color-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.payment-result {
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 20px;
}

    .payment-result.success {
        background: #f0fdf4;
        border: 2px solid #22c55e;
        color: #15803d;
    }

    .payment-result.error {
        background: #fef2f2;
        border: 2px solid #ef4444;
        color: #dc2626;
    }

    .payment-result i {
        font-size: 3rem;
        margin-bottom: 15px;
        display: block;
    }

    .payment-result h4 {
        font-size: 1.5rem;
        font-weight: 700;
        margin: 0 0 10px 0;
    }

    .payment-result p {
        font-size: 1rem;
        margin: 0;
        line-height: 1.5;
    }

.payment-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-approve {
    background: #22c55e;
    color: var(--color-white);
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

    .btn-approve:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
    }

.btn-decline {
    background: #ef4444;
    color: var(--color-white);
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

    .btn-decline:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
    }

/* Share Modal */
.share-modal {
    background: var(--color-white);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
}

.share-url-section {
    margin-bottom: 2rem;
}

    .share-url-section label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
        color: var(--color-dark-gray);
    }

.url-input-group {
    display: flex;
    gap: 0.5rem;
}

.url-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--color-light-gray);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: var(--color-light-gray);
}

.btn-copy {
    padding: 0.75rem 1rem;
    background: var(--color-blue);
    color: var(--color-white);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.2s;
}

    .btn-copy:hover {
        background: #1d4ed8;
    }

.copy-success {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #d1fae5;
    color: #065f46;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #a7f3d0;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.share-btn {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .share-btn.whatsapp {
        background: #25d366;
        color: var(--color-white);
    }

        .share-btn.whatsapp:hover {
            background: #20ba5a;
            transform: translateY(-2px);
        }

    .share-btn.facebook {
        background: #1877f2;
        color: var(--color-white);
    }

        .share-btn.facebook:hover {
            background: #166fe5;
            transform: translateY(-2px);
        }

    .share-btn.twitter {
        background: #1da1f2;
        color: var(--color-white);
    }

        .share-btn.twitter:hover {
            background: #1a91da;
            transform: translateY(-2px);
        }

    .share-btn.email {
        background: var(--color-gray);
        color: var(--color-white);
    }

        .share-btn.email:hover {
            background: var(--color-dark-gray);
            transform: translateY(-2px);
        }

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .booking-sidebar {
        position: static;
        order: -1;
    }

    .date-inputs {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .apartment-detail-container {
        padding-top: 60px;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 0px;
    }

    .breadcrumb {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .apartment-title {
        font-size: 1.5rem;
        text-align: center;
        align-self: flex-start;
        margin: 60px 0px 20px 0px;
    }

    .detail-header {
        padding: 15px 15px 0px 15px;
    }

    .detail-content {
        margin: 0 15px 15px;
        padding: 25px;
    }

    .main-image-container {
        max-width: 100%;
        max-height: 300px;
        aspect-ratio: 4 / 3;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .thumbnail-gallery {
        justify-content: center;
    }

    .client-modal,
    .payment-modal,
    .share-modal {
        max-width: 95%;
        margin: 10px;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .payment-actions,
    .modal-actions {
        flex-direction: column;
    }

    .share-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .apartment-title {
        font-size: 1.8rem;
    }

    .detail-header {
        padding: 30px 15px 0px 15px;
    }

    .detail-content {
        padding: 20px;
    }

    .booking-card {
        padding: 20px;
    }

    .main-image-container {
        height: 250px;
    }

    .image-navigation {
        left: 10px;
        right: 10px;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
    }

    .modal-header {
        padding: 16px;
    }

        .modal-header h3 {
            font-size: 1.25rem;
        }

    .modal-body {
        padding: 16px;
    }

    .amount-value {
        font-size: 1.5rem;
    }

    .client-modal,
    .payment-modal,
    .share-modal {
        max-width: 100%;
        margin: 0;
        border-radius: 16px 16px 0 0;
        max-height: 95vh;
    }
}

.btn-show-more {
    margin-top: 10px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--color-light-gray);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--color-gray);
    transition: all 0.3s ease;
}

    .btn-show-more:hover {
        background: var(--color-light-gray);
        border-color: var(--color-gray);
        color: var(--color-dark-gray);
    }

/* Amenities Card */
.amenities-card {
    margin-top: 30px;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: var(--color-light-gray);
    border-radius: 14px;
    border: 2px solid var(--color-light-gray);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

    .amenity-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(37, 99, 235, 0.05);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .amenity-item:hover {
        transform: translateY(-3px);
        border-color: var(--color-blue);
        box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
    }

        .amenity-item:hover::before {
            opacity: 1;
        }

.amenity-icon-wrapper {
    width: 45px;
    height: 45px;
    background: var(--color-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    position: relative;
    z-index: 1;
}

    .amenity-icon-wrapper i {
        color: var(--color-white);
        font-size: 1.2rem;
    }

.amenity-image {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.amenity-name {
    font-size: 1rem;
    color: var(--color-dark-gray);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.section-icon {
    color: var(--color-blue) !important;
}

.btn-show-amenities {
    width: 100%;
    padding: 15px 25px;
    background: var(--color-blue);
    color: var(--color-white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    margin-top: 10px;
}
 
    .btn-show-amenities:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(37, 99, 235, 0.4);
    }

    .btn-show-amenities:active {
        transform: translateY(0);
    }

    .btn-show-amenities i {
        font-size: 0.9rem;
        transition: transform 0.3s ease;
    }

    .btn-show-amenities:hover i {
        transform: translateY(2px);
    }

/* Responsive Design for Amenities */
@media (max-width: 768px) {
    .amenities-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .amenity-item {
        padding: 15px;
        gap: 12px;
    }

    .amenity-icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .amenity-image {
        width: 24px;
        height: 24px;
    }

    .amenity-name {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .amenities-grid {
        grid-template-columns: 1fr;
    }
}

/* Apartment Rules Section */
.rules-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid #f3f4f6;
}

.section-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.025em;
}

    .section-subtitle i {
        color: #3b82f6;
        font-size: 1.4rem;
    }

.rules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

    .rule-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .rule-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(59, 130, 246, 0.12);
        border-color: #3b82f6;
    }

        .rule-item:hover::before {
            opacity: 1;
        }

    .rule-item .rule-icon {
        font-size: 24px;
        color: #3b82f6;
        flex-shrink: 0;
        margin-top: 2px;
        transition: transform 0.3s ease;
    }

    .rule-item:hover .rule-icon {
        transform: scale(1.1);
    }

    .rule-item .rule-text {
        font-size: 15px;
        color: #374151;
        line-height: 1.6;
        font-weight: 500;
    }

/* Tablet - 2 columns */
@media (max-width: 1024px) {
    .rules-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .section-subtitle {
        font-size: 1.35rem;
    }

    .rule-item {
        padding: 18px;
    }
}

/* Mobile - 1 column */
@media (max-width: 640px) {
    .rules-section {
        margin-top: 24px;
        padding-top: 24px;
    }

    .rules-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .section-subtitle {
        font-size: 1.25rem;
        margin-bottom: 20px;
        gap: 10px;
    }

        .section-subtitle i {
            font-size: 1.2rem;
        }

    .rule-item {
        padding: 16px;
        gap: 12px;
    }

        .rule-item .rule-icon {
            font-size: 20px;
        }

        .rule-item .rule-text {
            font-size: 14px;
        }
}

/* Extra small mobile */
@media (max-width: 375px) {
    .rule-item {
        padding: 14px;
    }

        .rule-item .rule-text {
            font-size: 13px;
        }
}

.cancellation-info {
    font-size: 0.9rem;
    color: #155724;
}

    .cancellation-info.warning {
        color: #9a0000;
        font-weight: 600;
    }
.owner-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 14px;
    border: 1px solid #eaeaea;
    background: #fff;
    margin-top: 1.5rem;
    box-shadow: 0 4px 14px rgba(0,0,0,.05);
}

.owner-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.6rem;
    color: #777;
}

.owner-details {
    display: flex;
    flex-direction: column;
}

.owner-name {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: .3rem;
}

.owner-badges {
    display: flex;
    gap: .5rem;
}

.verified-badge,
.superhost-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: #f3f4f6;
    color: #374151;
    padding: .25rem .55rem;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 600;
}

    .verified-badge i {
        color: #10b981;
    }

.superhost-badge {
    background: #fff7ed;
    color: #b45309;
    border: 1px solid #fed7aa;
}
.terms-modal {
    background: #fff;
    width: 650px;
    max-height: 85vh;
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.terms-iframe {
    width: 100%;
    height: 50vh;
    border: none;
    border-radius: 8px;
}
.terms-checkbox {
    display: flex;
    align-items: center;
    gap: .7rem;
    cursor: pointer;
    user-select: none;
}

    .terms-checkbox input {
        display: none;
    }

    .terms-checkbox .checkmark {
        width: 22px;
        height: 22px;
        border: 2px solid #999;
        border-radius: 6px;
        display: flex;
        justify-content: center;
        align-items: center;
        background: white;
        transition: all .2s ease;
    }

    .terms-checkbox input:checked + .checkmark {
        background: #2563eb;
        border-color: #2563eb;
    }

        .terms-checkbox input:checked + .checkmark::after {
            content: "✓";
            color: white;
            font-size: 14px;
        }

    .terms-checkbox input:disabled + .checkmark {
        opacity: .4;
        cursor: not-allowed;
    }

    .terms-checkbox .text {
        font-size: .9rem;
        color: #333;
    }
