
/* ============================================
   RentSK - Warm Contemporary Design
   Color Scheme: Terracotta, Cream, Forest Green
   Typography: Playfair Display (headings) + Nunito (body)
   ============================================ */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {
    --primary: #d97706;
    --primary-dark: #b45309;
    --primary-light: #f59e0b;
    --secondary: #065f46;
    --secondary-light: #10b981;
    --accent: #fef3c7;
    --background: #faf8f6;
    --card-bg: #ffffff;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}


body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--background);
    color: var(--text-dark);
    line-height: 1.6;
}


h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}


a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}


a:hover {
    color: var(--primary-dark);
}


.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}


@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}


@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}


/* ============================================
   Navigation Bar
   ============================================ */


.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}


.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}


.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}


.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
}


.logo:hover {
    opacity: 0.8;
}


.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}


.logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--text-dark);
    display: none;
}


.logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--text-dark);
    display: inline;
}


.nav-links {
    display: none;
    gap: 2rem;
    align-items: center;
}


@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}


.nav-links a {
    font-weight: 500;
    transition: color 0.3s ease;
}


.nav-links a:hover {
    color: var(--primary);
}


.nav-buttons {
    display: none;
    gap: 0.75rem;
}


@media (min-width: 768px) {
    .nav-buttons {
        display: flex;
    }
}


.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}


@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}


.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}


.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}


.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}


.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


.mobile-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--card-bg);
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid var(--border);
    overflow-y: auto;
    display: none;
    z-index: 999;
}


.mobile-menu.active {
    display: flex;
}


.mobile-menu a {
    padding: 1rem 0.5rem;
    font-weight: 500;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}


.mobile-menu a:hover {
    background-color: var(--accent);
}


.mobile-menu button {
    width: 100%;
    margin-top: 0.5rem;
}


/* ============================================
   Main Content & Pages
   ============================================ */


.main-content {
    margin-top: 64px;
    min-height: calc(100vh - 64px);
}


.page {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}


.page.active {
    display: block;
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* ============================================
   Hero Section
   ============================================ */


.hero {
    position: relative;
    height: 384px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
}


.hero-content {
    position: relative;
    text-align: center;
    color: white;
    padding: 0 1rem;
}


.hero-content h1 {
    font-size: 48px;
    margin-bottom: 1rem;
}


.hero-content p {
    font-size: 20px;
    opacity: 0.9;
}


@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 56px;
    }


    .hero-content p {
        font-size: 24px;
    }
}


/* ============================================
   Search Section
   ============================================ */


.search-section {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    margin: 3rem 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}


.search-section h2 {
    font-size: 24px;
    margin-bottom: 1.5rem;
}


.search-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}


@media (min-width: 768px) {
    .search-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}


.search-input-wrapper {
    position: relative;
}


.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    transition: border-color 0.3s ease;
}


.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}


.search-input-wrapper::before {
    content: '🔍';
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}


.filter-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    background-color: var(--card-bg);
    cursor: pointer;
    transition: border-color 0.3s ease;
}


.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}


.results-count {
    font-size: 14px;
    color: var(--text-light);
}


.results-count span {
    font-weight: 600;
    color: var(--text-dark);
}


/* ============================================
   Listings Grid
   ============================================ */


.listings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 4rem;
}


@media (min-width: 768px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (min-width: 1024px) {
    .listings-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


.listing-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
}


.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}


.listing-image {
    width: 100%;
    height: 192px;
    object-fit: cover;
    transition: transform 0.3s ease;
}


.listing-card:hover .listing-image {
    transform: scale(1.05);
}


.listing-price-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
}


.listing-content {
    padding: 1rem;
}


.listing-title {
    font-size: 18px;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.listing-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}


.listing-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 0.75rem;
}


.listing-type-icon {
    color: var(--primary);
}


.listing-description {
    font-size: 14px;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.75rem;
}


.listing-cta {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}


.listing-cta:hover {
    background-color: var(--primary-dark);
}


/* ============================================
   Buttons
   ============================================ */


.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Nunito', sans-serif;
}


.btn-primary:hover {
    background-color: var(--primary-dark);
}


.btn-outline {
    background-color: transparent;
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Nunito', sans-serif;
}


.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}


.btn-google {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background-color: white;
    color: var(--text-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Nunito', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1rem;
}


.btn-google:hover {
    background-color: var(--background);
    box-shadow: var(--shadow);
}


.btn-google svg {
    width: 20px;
    height: 20px;
}


.btn-full {
    width: 100%;
}


/* ============================================
   Forms
   ============================================ */


.form-container {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    max-width: 800px;
    margin: 2rem auto;
}


.form-group {
    margin-bottom: 1.5rem;
}


.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 14px;
}


.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    transition: border-color 0.3s ease;
}


.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}


.form-group textarea {
    resize: vertical;
}


.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}


.form-buttons button {
    flex: 1;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}


.form-note {
    background-color: var(--accent);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #fcd34d;
}


.form-note p {
    font-size: 14px;
    color: var(--text-dark);
}


.form-remember {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 1.5rem;
}


.form-remember label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    cursor: pointer;
}


.form-remember input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}


.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-light);
    font-size: 14px;
}


.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--border);
}


/* ============================================
   Photo Upload Styles
   ============================================ */


.photo-upload-wrapper {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background-color: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
}


.photo-upload-wrapper:hover {
    border-color: var(--primary);
    background-color: #f5f5f5;
}


.photo-input {
    display: none;
}


.photo-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}


.photo-upload-icon {
    font-size: 48px;
    margin-bottom: 0.5rem;
}


.photo-upload-text {
    pointer-events: none;
}


.upload-main-text {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}


.upload-sub-text {
    font-size: 12px;
    color: var(--text-light);
}


.photo-counter {
    margin-top: 0.75rem;
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}


.photo-counter span {
    color: var(--primary);
    font-weight: 600;
}


/* ============================================
   Image Preview Gallery
   ============================================ */


.image-preview-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}


.image-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    background-color: var(--background);
    border: 1px solid var(--border);
}


.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.remove-image-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    background-color: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}


.image-preview-item:hover .remove-image-btn {
    opacity: 1;
    top: 4px;
    right: 4px;
}


.remove-image-btn:hover {
    background-color: #dc2626;
    transform: scale(1.1);
}


.image-count {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}


/* ============================================
   Pages
   ============================================ */


.page-header {
    text-align: center;
    padding: 3rem 1rem;
}


.page-header h1 {
    font-size: 48px;
    margin-bottom: 0.5rem;
}


.page-header p {
    font-size: 18px;
    color: var(--text-light);
}


.about-content {
    padding: 2rem 0;
}


.about-section {
    margin-bottom: 3rem;
}


.about-section h2 {
    font-size: 32px;
    margin-bottom: 1rem;
}


.about-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
}


.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 3rem 0;
}


@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


.feature-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: box-shadow 0.3s ease;
}


.feature-card:hover {
    box-shadow: var(--shadow-lg);
}


.feature-card h3 {
    font-size: 20px;
    margin-bottom: 0.5rem;
}


.feature-card p {
    color: var(--text-light);
    font-size: 14px;
}


.cta-section {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border);
    margin-top: 3rem;
}


.cta-section h2 {
    font-size: 32px;
    margin-bottom: 0.5rem;
}


.cta-section p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}


.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}


.tips-section {
    background-color: var(--accent);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid #fcd34d;
    margin-top: 2rem;
    margin-bottom: 2rem;
}


.tips-section h3 {
    font-size: 18px;
    margin-bottom: 1rem;
}


.tips-section ul {
    list-style: none;
    padding: 0;
}


.tips-section li {
    padding: 0.5rem 0;
    font-size: 14px;
    color: var(--text-dark);
}


.tips-section li::before {
    content: '• ';
    color: var(--primary);
    font-weight: bold;
    margin-right: 0.5rem;
}


/* ============================================
   Authentication Pages
   ============================================ */


.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 64px);
    padding: 2rem 1rem;
}


.auth-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    width: 100%;
    max-width: 400px;
}


.auth-card h1 {
    font-size: 32px;
    margin-bottom: 0.5rem;
}


.auth-card > p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}


.auth-card form {
    margin-bottom: 1.5rem;
}


.auth-link {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
}


.auth-link a {
    font-weight: 600;
}


.demo-note {
    background-color: var(--accent);
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
    border: 1px solid #fcd34d;
}


.demo-note p {
    font-size: 12px;
    color: var(--text-dark);
}


/* ============================================
   Modal
   ============================================ */


.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-in-out;
}


.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}


.modal-content {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
}


.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--text-light);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}


.modal-close:hover {
    background-color: var(--background);
}


.modal-image {
    width: 100%;
    height: 256px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}


.modal-gallery {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.modal-gallery::-webkit-scrollbar {
    height: 6px;
}

.modal-gallery::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 10px;
}

.modal-gallery img {
    width: 100px;
    height: 70px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.modal-gallery img:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.modal-gallery img.active-thumbnail {
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(217, 119, 6, 0.3);
}

.modal-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    background-color: #f3f4f6;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}


.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
}


.modal-title {
    flex: 1;
}


.modal-title h2 {
    font-size: 28px;
    margin-bottom: 0.5rem;
}


.modal-price {
    font-size: 14px;
    color: var(--text-light);
}


.modal-price-amount {
    font-size: 32px;
    color: var(--primary);
    font-weight: bold;
}


.modal-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}


.modal-info-item {
    background-color: var(--background);
    padding: 1rem;
    border-radius: 8px;
}


.modal-info-label {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.25rem;
}


.modal-info-value {
    font-size: 16px;
    font-weight: 600;
}


.modal-description {
    margin-bottom: 1.5rem;
}


.modal-description h3 {
    font-size: 18px;
    margin-bottom: 0.5rem;
}


.modal-description p {
    color: var(--text-light);
    line-height: 1.8;
}


.modal-contact {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}


.modal-contact h3 {
    font-size: 18px;
    margin-bottom: 1rem;
}


.modal-contact-buttons {
    display: flex;
    gap: 1rem;
}


.modal-contact-buttons button {
    flex: 1;
    padding: 0.75rem 1rem;
}


/* ============================================
   Toast Notification
   ============================================ */


.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 3000;
    animation: slideIn 0.3s ease-in-out;
}


.toast.show {
    display: block;
}


.toast.error {
    background-color: #ef4444;
}


.toast.success {
    background-color: #10b981;
}


@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* ============================================
   Responsive Design
   ============================================ */


@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 36px;
    }


    .hero-content p {
        font-size: 16px;
    }


    .page-header h1 {
        font-size: 32px;
    }


    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }


    .modal-info {
        grid-template-columns: 1fr;
    }


    .modal-contact-buttons {
        flex-direction: column;
    }


    .toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }


    .btn-google {
        font-size: 0.9rem;
    }


    .image-preview-gallery {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}


.launch {
    text-align: center;
    position: relative;
    display: flex;
    font-weight: bold;
    font-size: calc(12px);
    position: relative;
    height: 384px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


/* ============================================
   Inquiry Cards
   ============================================ */


.inquiry-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}


.inquiry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}


.inquiry-listing-title {
    font-size: 20px;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}


.inquiry-date {
    font-size: 13px;
    color: var(--text-light);
}


.inquiry-preference-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}


.inquiry-preference-badge.email {
    background-color: #dbeafe;
    color: #1e40af;
}


.inquiry-preference-badge.call {
    background-color: #dcfce7;
    color: #166534;
}


.inquiry-preference-badge.both {
    background-color: #fce7f3;
    color: #831843;
}


.inquiry-tenant-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}


.inquiry-info-item {
    background-color: var(--background);
    padding: 1rem;
    border-radius: 8px;
}


.inquiry-info-item label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
}


.inquiry-info-item p {
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 500;
}


.inquiry-message {
    margin-bottom: 1.5rem;
}


.inquiry-message label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
}


.inquiry-message p {
    background-color: var(--background);
    padding: 1rem;
    border-radius: 8px;
    color: var(--text-dark);
    line-height: 1.6;
}


.inquiry-actions {
    display: flex;
    gap: 0.75rem;
}


@media (max-width: 768px) {
    .inquiry-header {
        flex-direction: column;
    }
   
    .inquiry-preference-badge {
        margin-top: 0.5rem;
    }
   
    .inquiry-tenant-info {
        grid-template-columns: 1fr;
    }
   
    .inquiry-actions {
        flex-direction: column;
    }
   
    .inquiry-actions a {
        width: 100%;
        text-align: center;
    }
}




/* ============================================
   Landlord Dashboard Grid Fixes
   ============================================ */

#myListingsContainer, #inquiriesContainer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    #myListingsContainer, #inquiriesContainer {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Checkbox specific styling */
input[type="checkbox"] {
    cursor: pointer;
    accent-color: var(--primary);
}

/* ============================================
   Loading Overlay
   ============================================ */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    text-align: center;
}

.loading-overlay.active {
    display: flex;
}

.loading-content {
    max-width: 400px;
    padding: 2rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.loading-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ============================================
   Photo Lightbox
   ============================================ */

.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    width: 75%;
    height: 75%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 20px 15px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s ease;
    z-index: 10001;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev { left: 5%; }
.lightbox-next { right: 5%; }

@media (max-width: 768px) {
    .lightbox-content {
        width: 90%;
        height: 60%;
    }
    .lightbox-prev, .lightbox-next {
        padding: 15px 10px;
        font-size: 18px;
    }
}
