/* ================================
   Sidebar Reklama bloklari
   ================================ */
.ad-slot {
    position: fixed;
    top: 120px;
    width: 220px;
    z-index: 10;
}

.ad-left {
    left: 20px;
}

.ad-right {
    right: 20px;
}

.ad-card {
    display: block;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    color: #111;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ad-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.ad-card-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.ad-card-text {
    font-size: 0.9rem;
    color: #555;
}

@media (max-width: 1200px) {
    .ad-slot {
        display: none;
    }
}

:root {
    --primary-color: #ffffff;
    --secondary-color: #f8f9fa;
    --accent-color: #deb671;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --radius: 0.5rem;
    --radius-lg: 1rem;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}


/* Search Icon Button (Mobile only) */
.search-icon-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 999;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Contact FAB */
.contact-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(37, 211, 102, 0.5);
}

@media (min-width: 769px) {
    .contact-fab {
        width: 66px;
        height: 66px;
        font-size: 1.7rem;
    }
}

/* Contact Modal */
.contact-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.contact-modal-content {
    width: 92%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.contact-modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    font-size: 2.2rem;
    cursor: pointer;
    color: #666;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10002;
    line-height: 1;
    padding: 0;
}

.contact-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
    transform: scale(1.1);
}

.contact-modal-close:active {
    transform: scale(0.95);
}

.contact-modal-header h3 {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-submit {
    width: 100%;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-hint {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
}

.contact-error {
    min-height: 16px;
    font-size: 0.75rem;
    color: #d9534f;
}

.search-icon-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
}

.search-icon-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* Search Modal Overlay */
.search-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

/* Search Form */
.search-form {
    background: var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    position: relative;
}

.search-form-close {
    display: none;
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(222, 182, 113, 0.2);
    color: #000;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.search-form-close:hover {
    background: rgba(222, 182, 113, 0.4);
    transform: rotate(180deg);
}

/* Search Modal Active State (Mobile) */
.search-form.search-modal-active {
    position: fixed;
    top: 10%;
    left: 0;
    right: 0;
    bottom: auto;
    margin: 0;
    border-radius: 20px;
    max-height: 100vh;
    overflow-y: auto;
    z-index: 1001;
    animation: slideDownModal 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

@keyframes slideDownModal {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}


.form-group select,
.form-group input {
    padding: 1rem 1.25rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: var(--text-primary);
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23deb671' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #deb671;
    box-shadow: 0 0 0 4px rgba(222, 182, 113, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    background: #ffffff;
}

.form-group select:hover,
.form-group input:hover {
    border-color: #deb671;
    box-shadow: 0 2px 8px rgba(222, 182, 113, 0.2);
}

.form-buttons {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.search-btn,
.announce-btn {
    border: none;
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-btn {
    background: linear-gradient(135deg, #deb671 0%, #f4d03f 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(222, 182, 113, 0.4);
}

.announce-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.announce-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.announce-btn:hover::before {
    left: 100%;
}

.announce-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
}

.announce-btn:active {
    transform: translateY(-1px);
}

.announce-btn i {
    margin-right: 0.5rem;
}

.search-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(222, 182, 113, 0.5);
    background: linear-gradient(135deg, #f4d03f 0%, #deb671 100%);
}

.search-btn:active {
    transform: translateY(-1px);
}

.search-btn i {
    margin-right: 0.5rem;
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.property-card {
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    height: 420px;
    width: 100%;
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.property-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s ease;
    background: #000;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-image.no-image {
    background: #000;
    color: white;
    font-size: 3rem;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #deb671, #f4d03f);
    color: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.property-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9), #000);
    padding: 25px 20px 20px;
    z-index: 2;
    color: white;
}

.property-name {
    display: none;
}

.property-card:hover .property-name {
    display: none;
    /* Hoverda ko'rsatmaymiz */
}

.property-meta {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 15px;
}

.location-boxes {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 10px;
}

.meta-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 0;
    border-top: none;
}

.location-boxes,
.contact-boxes {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 0;
    border-top: none;
}

.location-boxes {
    margin-top: 10px;
}

.meta-box {
    background: transparent;
    border-right: 1px solid rgba(222, 182, 113, 0.3);
    border-top: 1px solid rgba(222, 182, 113, 0.3);
    padding: 8px 4px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.location-boxes .meta-box {
    border-top: 1px solid rgba(222, 182, 113, 0.3);
}

.meta-boxes:not(.location-boxes):not(.contact-boxes) .meta-box:nth-child(3) {
    border-right: none;
}

.location-boxes .meta-box:last-child,
.contact-boxes .meta-box:last-child {
    border-right: none;
}

.meta-box:hover {
    background: rgba(255, 255, 255, 0.1);
}

.location-boxes .meta-box-value,
.contact-boxes .meta-box-value {
    font-size: 13px;
}

.meta-box-icon {
    color: #deb671;
    font-size: 11px;
    flex-shrink: 0;
}

.meta-box-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3px;
}

.meta-box-value {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    line-height: 1;
    white-space: nowrap;
}

.meta-box-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.2px;
    font-weight: 500;
    white-space: nowrap;
}

.info-section {
    display: none;
}

.property-actions {
    margin-top: auto;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    padding: 12px 18px;
    border: 2px solid rgba(222, 182, 113, 0.35);
    background: #0f0f0f;
    color: #f4d03f;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover {
    background: #191919;
    border-color: rgba(222, 182, 113, 0.55);
    transform: translateY(-2px);
}

.page-btn.active {
    background: linear-gradient(135deg, #deb671, #f4d03f);
    border-color: #deb671;
    box-shadow: 0 5px 15px rgba(222, 182, 113, 0.4);
    color: #000;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    padding: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: #000;
    color: #deb671;
    border-radius: 50%;
    font-size: 1.4rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a i {
    color: #deb671;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: #1a1a1a;
}

/* Loading */
.loading {
    text-align: center;
    padding: 4rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid #deb671;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #deb671;
    opacity: 0.7;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.empty-state p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .properties-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 1024px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    /* Show search icon button on mobile */
    .search-icon-btn {
        display: flex;
        width: 84px;
        height: 84px;
        font-size: 2.1rem;
        bottom: 15px;
        right: 15px;
    }

    .contact-fab {
        left: 15px;
        bottom: 15px;
        right: auto;
    }

    .contact-modal-close {
        top: 6px;
        right: 8px;
        width: 44px;
        height: 44px;
        font-size: 2.4rem;
    }

    /* Hide search form by default on mobile */
    .search-form:not(.search-modal-active) {
        display: none;
    }

    /* Show search form when modal is active */
    .search-form.search-modal-active {
        display: block;
        padding: 2rem 1.5rem;
    }

    .search-form.search-modal-active .search-form-close {
        display: flex;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .search-btn,
    .announce-btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        min-height: 48px;
    }

    .search-btn {
        order: 1;
    }

    .announce-btn {
        order: 2;
    }

    .properties-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        justify-items: center;
        margin-top: 2rem;
    }

    .property-card {
        margin: 0;
        height: 420px;
        max-width: 350px;
        width: 100%;
    }

    .property-image {
        height: 100%;
    }

    .property-content {
        padding: 20px;
    }

    .property-meta {
        gap: 8px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 5px;
    }

    .search-form {
        padding: 1rem;
    }

    .properties-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        justify-items: center;
    }

    .property-card {
        margin: 0;
        border-radius: 15px;
        height: 399px;
        max-width: 320px;
        width: 100%;
    }

    .property-image {
        height: 100%;
    }

    .property-content {
        padding: 15px;
    }

    .property-name {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .property-meta {
        gap: 8px;
        margin-bottom: 12px;
    }

    .pagination {
        gap: 5px;
        margin-top: 30px;
        flex-wrap: wrap;
    }

    .page-btn {
        padding: 8px 12px;
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group select {
        font-size: 14px;
        padding: 10px 12px;
    }

    .search-btn,
    .announce-btn {
        padding: 12px 18px;
        font-size: 0.875rem;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px 5px;
    }

    .search-icon-btn {
        width: 78px;
        height: 78px;
        font-size: 1.95rem;
        bottom: 12px;
        right: 12px;
    }

    .search-form.search-modal-active {
        padding: 1.5rem 1rem;
        max-height: 90vh;
    }

    .form-group input,
    .form-group select {
        font-size: 14px;
        padding: 10px 12px;
    }

    .search-btn,
    .announce-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .properties-grid {
        gap: 20px;
    }

    .property-card {
        height: 357px;
        margin: 0;
        border-radius: 12px;
        max-width: 300px;
        width: 100%;
    }

    .property-image {
        height: 100%;
    }

    .property-content {
        padding: 12px;
    }

    .property-name {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .property-meta {
        gap: 0;
        margin-bottom: 10px;
    }

    .meta-boxes {
        grid-template-columns: repeat(3, 1fr);
    }

    .location-boxes,
    .contact-boxes {
        grid-template-columns: repeat(2, 1fr);
    }

    .meta-box {
        padding: 6px 2px;
    }

    .meta-box-value {
        font-size: 10px;
    }

    .meta-box-label {
        font-size: 8px;
    }

    .location-boxes .meta-box-value,
    .contact-boxes .meta-box-value {
        font-size: 12px;
    }

    .pagination {
        gap: 4px;
        margin-top: 25px;
        flex-wrap: wrap;
    }

    .page-btn {
        padding: 8px 10px;
        min-width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }

    .form-group input,
    .form-group select {
        font-size: 13px;
        padding: 9px 11px;
    }

    .search-btn,
    .announce-btn {
        padding: 11px 16px;
        font-size: 0.8125rem;
        min-height: 42px;
    }
}

/* Social Links Responsive */
@media (max-width: 768px) {
    .social-links {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .social-links a {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .social-links {
        padding: 1rem;
        margin-top: 1.5rem;
        gap: 1rem;
    }

    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Photo Modal */
.photo-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.photo-modal-content {
    position: relative;
    width: 88vw;
    max-width: 990px;
    height: 88vh;
    margin: 6vh auto 0 auto;
    display: flex;
    flex-direction: column;
    background: #0c0c0c;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.photo-modal-close {
    position: absolute;
    top: 3px;
    right: 10px;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    z-index: 10005;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    transition: all 0.2s ease;
}

.photo-modal-close:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: rotate(90deg) scale(1.05);
}

.photo-modal-header {
    padding: 14px 22px;
    text-align: center;
    z-index: 10004;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.2));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.photo-modal-header h3 {
    color: #fff;
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.photo-modal-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.6));
}

.photo-gallery {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
}

.photo-gallery:active {
    cursor: grabbing;
}

.photo-nav-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    border: 2px solid rgba(0, 0, 0, 0.25);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10002;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.photo-nav-icon:hover {
    background: #deb671;
    color: #000;
    transform: translateY(-50%) scale(1.1);
}

.photo-nav-prev {
    left: 30px;
}

.photo-nav-next {
    right: 30px;
}

.photo-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    pointer-events: none;
}

.photo-counter.floating {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    z-index: 10003;
    border: 1px solid rgba(222, 182, 113, 0.3);
}

.photo-modal-footer {
    flex: 0 0 auto;
    padding: 10px 18px 12px;
    text-align: left;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.75));
    z-index: 10004;
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.photo-footer-info {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    line-height: 1.55;
    letter-spacing: 0.2px;
}

.photo-footer-info-line {
    display: flex;
    gap: 8px;
    align-items: baseline;
    padding: 4px 0;
}

.photo-footer-label {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
    min-width: 76px;
}

.photo-footer-value {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

/* Photo Modal Responsive */
@media (max-width: 768px) {
    .photo-modal-content {
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
    }

    .photo-modal-body {
        flex: 1;
    }

    .photo-nav-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        background: rgba(255, 255, 255, 0.95);
        color: #111;
        border: 2px solid rgba(0, 0, 0, 0.25);
    }

    .photo-nav-prev {
        left: 10px;
    }

    .photo-nav-next {
        right: 10px;
    }

    .photo-image {
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .photo-modal-close {
        top: 6px;
        right: 8px;
    }

    .photo-modal-header {
        padding: 10px 14px;
    }

    .photo-modal-header h3 {
        font-size: 0.92rem;
    }

    .photo-modal-footer {
        padding: 10px 12px 12px;
    }

    .photo-footer-info {
        font-size: 0.82rem;
        line-height: 1.45;
    }

    .photo-footer-label {
        min-width: 64px;
    }
}

/* Donate Modal */
.donate-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.donate-modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 460px;
    width: 90%;
    position: relative;
    animation: slideDown 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.donate-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.donate-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
    color: #000;
}

.donate-modal-body {
    padding: 2.25rem 2rem 2rem;
    text-align: center;
}

.donate-icon {
    font-size: 2.5rem;
    color: #25D366;
    margin-bottom: 1.25rem;
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    10%,
    30% {
        transform: scale(1.1);
    }

    20%,
    40% {
        transform: scale(1);
    }
}

.donate-message-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #25D366;
    margin-bottom: 1.5rem;
    position: relative;
    text-align: left;
}

.quote-icon {
    position: absolute;
    top: -10px;
    left: 20px;
    background: #fff;
    color: #25D366;
    font-size: 1.2rem;
    padding: 0 5px;
}

.donate-message-card p {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.donate-message-card p:last-child {
    margin-bottom: 0;
}

.donate-message-card p strong {
    color: #128C7E;
    font-weight: 700;
}

.donate-btn-support {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    width: 100%;
    margin-top: 1.5rem;
}

.donate-btn-support:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
}


@media (max-width: 480px) {
    .donate-modal-content {
        width: 92%;
        max-width: none;
    }

    .donate-modal-body {
        padding: 1.75rem 1.25rem 1.5rem;
    }

    .donate-modal-body h2 {
        font-size: 1.3rem;
    }

    .donate-modal-body p {
        font-size: 0.875rem;
    }

    .donate-btn-support {
        padding: 0.85rem 1.25rem;
        font-size: 0.95rem;
    }

    .donate-icon {
        font-size: 2.25rem;
    }
}

/* Announcement Modal */
.announcement-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    overflow-y: auto;
    padding: 20px;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.announcement-modal::-webkit-scrollbar {
    width: 8px;
}

.announcement-modal::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.announcement-modal::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.announcement-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.announcement-modal-content {
    width: 92%;
    max-width: 900px;
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin: auto;
    box-sizing: border-box;
    overflow-x: hidden;
    animation: zoomIn 0.3s ease;
}

.announcement-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #000;
    border: 2px solid #000;
    font-size: 2rem;
    cursor: pointer;
    color: #fff;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.2s ease;
    z-index: 10002;
    line-height: 1;
    padding: 0;
}

.announcement-modal-close:hover {
    background: #fff;
    border-color: #000;
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.announcement-modal-close:active {
    transform: translateY(0);
}

.announcement-modal-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e8e8e8;
}

.announcement-modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #111;
    display: flex;
    align-items: center;
    gap: 12px;
}

.announcement-modal-header h3 i {
    color: #deb671;
    font-size: 1.2em;
}

.announcement-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.announcement-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.announcement-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.announcement-field label .required {
    color: #d9534f;
}

.announcement-form input,
.announcement-form select,
.announcement-form textarea {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    color: #111;
}

.announcement-form input::placeholder,
.announcement-form select::placeholder,
.announcement-form textarea::placeholder {
    color: #999;
}

.announcement-form input:hover,
.announcement-form select:hover,
.announcement-form textarea:hover {
    border-color: #bbb;
}

.announcement-form input:focus,
.announcement-form select:focus,
.announcement-form textarea:focus {
    outline: none;
    border-color: #deb671;
    box-shadow: 0 0 0 4px rgba(222, 182, 113, 0.15);
    background: #fff;
}

/* Golden border for Phone and Price fields */
#announcePhone,
#announcePrice {
    border-color: #deb671;
    background: rgba(222, 182, 113, 0.05);
}

#announcePhone:hover,
#announcePrice:hover {
    border-color: #d4a853;
}

#announcePhone:focus,
#announcePrice:focus {
    border-color: #deb671;
    box-shadow: 0 0 0 4px rgba(222, 182, 113, 0.2);
    background: #fff;
}

.announcement-form textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.announcement-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0;
}

.announcement-row-price {
    grid-template-columns: 2fr 2fr 1fr;
}

.announcement-row-region {
    grid-template-columns: 1fr 1fr;
}

.announcement-row-type {
    grid-template-columns: 1fr 2fr;
    /* Tur, Mo'ljal by default */
}

.announcement-row-type .announcement-field[style*="display: none"] {
    display: none !important;
}

.announcement-row .announcement-field {
    min-width: 0;
    overflow: hidden;
}

.announcement-error {
    min-height: 16px;
    font-size: 0.75rem;
    color: #d9534f;
}

.announcement-hint {
    font-size: 0.75rem;
    color: #666;
    margin-top: -4px;
}

.announcement-image-upload {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.announcement-image-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    background: #f8f8f8;
    border: 2px dashed #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-weight: 600;
    color: #666;
    width: 100%;
    margin-bottom: 10px;
}

.announcement-image-upload-label:hover {
    background: #f0f0f0;
    border-color: #bbb;
    color: #333;
}

.announcement-image-upload-label i {
    font-size: 1.1rem;
    color: #25D366;
}

.announcement-image-upload-label-in-grid {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    margin-bottom: 0;
    height: 0;
    border: 3px dashed #25D366;
    background: #f0fff4;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.announcement-image-upload-label-in-grid>* {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: #25D366;
}

.announcement-image-upload-label-in-grid:hover {
    background: #e6fffa;
    border-color: #20b858;
    transform: scale(0.98);
}

.announcement-image-upload-label-in-grid i {
    font-size: 1.1rem;
    color: #25D366;
}

.announcement-image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.announcement-image-preview-item {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    background: #f5f5f5;
}

.announcement-image-preview-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.announcement-image-preview-item .remove-image {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.announcement-image-preview-item .remove-image:hover {
    background: rgba(220, 53, 69, 0.9);
    transform: scale(1.1);
}

.announcement-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid #e8e8e8;
}

.announcement-btn-cancel {
    flex: 1;
    padding: 12px 20px;
    background: #000;
    border: 2px solid #000;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.announcement-btn-cancel:hover {
    background: #000;
    border-color: #000;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.announcement-btn-cancel:active {
    transform: translateY(0);
}

.announcement-btn-submit {
    flex: 2;
    border-radius: 8px;
    padding: 12px 20px !important;
    font-size: 0.9rem !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: none;
    letter-spacing: normal;
}

@media (max-width: 768px) {
    .announcement-modal {
        padding: 8px;
        align-items: flex-start;
        padding-top: 20px;
    }

    .announcement-modal-content {
        width: 100%;
        max-width: 100%;
        padding: 12px;
        margin: 0;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
        border-radius: 12px 12px 0 0;
    }

    .announcement-modal-close {
        top: 4px;
        right: 8px;
        width: 36px;
        height: 36px;
        font-size: 1.8rem;
        border-radius: 6px;
    }

    .announcement-modal-header {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    .announcement-modal-header h3 {
        font-size: 0.95rem;
        padding-right: 45px;
        line-height: 1.3;
    }

    .announcement-form {
        gap: 10px;
    }

    .announcement-field {
        gap: 4px;
    }

    .announcement-form input,
    .announcement-form select,
    .announcement-form textarea {
        padding: 10px 12px;
        font-size: 14px;
        border-width: 2px;
    }

    .announcement-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .announcement-row-region,
    .announcement-row-price,
    .announcement-row-type {
        grid-template-columns: 1fr;
    }

    .announcement-form-actions {
        flex-direction: column;
        gap: 8px;
        margin-top: 6px;
        padding-top: 10px;
        position: sticky;
        bottom: 0;
        background: #fff;
        padding-bottom: 6px;
    }

    .announcement-btn-cancel,
    .announcement-btn-submit {
        width: 100%;
        padding: 12px 18px;
        font-size: 0.85rem;
    }

    .announcement-image-preview {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 8px;
    }

    .announcement-image-upload-label {
        padding: 14px 18px;
        font-size: 0.9rem;
    }

    .announcement-image-upload-label-in-grid {
        padding-bottom: 100%;
    }

    .announcement-error {
        font-size: 0.75rem;
    }

    .announcement-form textarea {
        min-height: 100px;
        resize: vertical;
    }
}