/* ========================================
   PREMIUM EMLAK İLANI - World-Class UI/UX
   ======================================== */

/* Custom Properties */
:root {
    /* Premium Color Palette */
    --primary: #10b981;
    --primary-light: #34d399;
    --primary-dark: #059669;
    --secondary: #3b82f6;
    --secondary-light: #60a5fa;
    --accent: #f59e0b;
    --accent-light: #fbbf24;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-dark: linear-gradient(135deg, #1f2937 0%, #111827 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.3);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --container: 1000px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s var(--ease);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
    transition: all 0.3s var(--ease);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s var(--ease);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-de {
    color: var(--gray-800);
}

.logo-pazar {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 15px;
    box-shadow: var(--shadow-md), var(--shadow-glow);
    transform: translateY(0);
}

.header-phone:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.header-phone:active {
    transform: translateY(0);
}

.header-phone i {
    font-size: 18px;
    animation: ring 2s ease-in-out infinite;
}

@keyframes ring {

    0%,
    100% {
        transform: rotate(0);
    }

    5%,
    15% {
        transform: rotate(-15deg);
    }

    10%,
    20% {
        transform: rotate(15deg);
    }

    25% {
        transform: rotate(0);
    }
}

/* ==================== MAIN ==================== */
.main {
    padding-top: 90px;
    padding-bottom: 120px;
}

/* ==================== GALLERY ==================== */
.gallery-section {
    margin-bottom: 32px;
}

.main-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--gray-200);
    aspect-ratio: 16/9;
    cursor: zoom-in;
    box-shadow: var(--shadow-2xl);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease), opacity 0.3s ease;
}

.main-image:hover img {
    transform: scale(1.02);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(1);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--gray-800);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    transition: all 0.4s var(--ease);
    z-index: 10;
}

.main-image:hover .nav-btn {
    opacity: 1;
}

.nav-btn:hover {
    transform: translateY(-50%) scale(1.1);
    background: white;
}

.nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.nav-btn.prev {
    left: 20px;
}

.nav-btn.next {
    right: 20px;
}

.image-counter {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    z-index: 5;
}

.image-counter i {
    font-size: 16px;
}

.thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding: 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.thumbnails::-webkit-scrollbar {
    height: 6px;
}

.thumbnails::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 10px;
}

.thumbnails::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 10px;
}

.thumb {
    flex-shrink: 0;
    width: 100px;
    height: 70px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
    position: relative;
    transition: all 0.3s var(--ease);
}

.thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid transparent;
    border-radius: var(--radius);
    transition: all 0.3s var(--ease);
}

.thumb:hover {
    transform: translateY(-4px);
}

.thumb.active::after {
    border-color: var(--primary);
}

.thumb.active {
    box-shadow: var(--shadow-lg), 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s var(--ease);
}

.thumb:hover img {
    transform: scale(1.1);
}

/* ==================== DETAILS SECTION ==================== */
.details-section {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.details-header {
    padding: 32px;
    background: var(--gradient-dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.details-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
}

.property-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.property-location i {
    color: var(--primary-light);
    font-size: 20px;
}

.property-price {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-size: 40px;
    font-weight: 800;
    color: var(--accent-light);
    text-shadow: 0 2px 20px rgba(245, 158, 11, 0.3);
}

.property-price small {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.8;
}

/* Details Grid */
.details-content {
    padding: 32px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.detail-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    transition: all 0.3s var(--ease);
    border: 1px solid transparent;
}

.detail-card:hover {
    background: white;
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.detail-card i {
    font-size: 32px;
    color: var(--primary);
    transition: transform 0.3s var(--ease-bounce);
}

.detail-card:hover i {
    transform: scale(1.2);
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
}

/* Highlight Box */
.highlight-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    border-left: 5px solid var(--accent);
}

.highlight-box i {
    font-size: 36px;
    color: var(--accent);
    flex-shrink: 0;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.highlight-box strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.highlight-box p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Description */
.description {
    margin-bottom: 32px;
}

.description h2,
.features h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-100);
}

.description h2 i,
.features h2 i {
    color: var(--primary);
    font-size: 24px;
}

.description p {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 16px;
}

.description strong {
    color: var(--gray-800);
}

.description em {
    color: var(--primary-dark);
    font-style: normal;
    font-weight: 600;
}

.price-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: var(--radius-lg);
    color: var(--secondary);
    font-weight: 600;
    margin-top: 20px;
}

.price-note i {
    font-size: 24px;
}

/* Features */
.features {
    margin-bottom: 0;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.feature {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: var(--primary-dark);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s var(--ease);
}

.feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feature i {
    color: var(--primary);
    font-size: 16px;
}

/* ==================== CONTACT SECTION ==================== */
.contact-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 16px 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-section .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-name {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact-avatar {
    width: 52px;
    height: 52px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: var(--shadow-md);
}

.contact-name strong {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-800);
}

.contact-name span {
    font-size: 13px;
    color: var(--gray-500);
}

.contact-buttons {
    display: flex;
    gap: 14px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s var(--ease);
}

.btn-call {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--shadow-md), 0 0 20px rgba(59, 130, 246, 0.3);
}

.btn-call:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(59, 130, 246, 0.4);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    box-shadow: var(--shadow-md), 0 0 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(37, 211, 102, 0.4);
}

.btn i {
    font-size: 20px;
}

.btn:active {
    transform: translateY(0);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--gradient-dark);
    color: var(--gray-400);
    padding: 32px 0;
    text-align: center;
    margin-bottom: 80px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer .logo {
    font-size: 24px;
}

.footer .logo-de {
    color: white;
}

.footer p {
    font-size: 13px;
}

/* ==================== LIGHTBOX ==================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    animation: zoomIn 0.4s var(--ease);
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    color: white;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: 24px;
}

.lightbox-nav.next {
    right: 24px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header .container {
        height: 64px;
    }

    .logo {
        font-size: 24px;
    }

    .header-phone span {
        display: none;
    }

    .header-phone {
        width: 48px;
        height: 48px;
        padding: 0;
        justify-content: center;
    }

    .header-phone i {
        margin: 0;
    }

    .main {
        padding-top: 80px;
        padding-bottom: 100px;
    }

    .main-image {
        border-radius: var(--radius-lg);
        aspect-ratio: 4/3;
    }

    .nav-btn {
        width: 44px;
        height: 44px;
        font-size: 20px;
        opacity: 1;
    }

    .nav-btn.prev {
        left: 12px;
    }

    .nav-btn.next {
        right: 12px;
    }

    .thumb {
        width: 80px;
        height: 56px;
    }

    .details-header {
        padding: 24px;
    }

    .property-title {
        font-size: 24px;
    }

    .property-price {
        font-size: 32px;
    }

    .details-content {
        padding: 24px;
    }

    .details-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .detail-card {
        padding: 16px;
    }

    .detail-card i {
        font-size: 26px;
    }

    .detail-value {
        font-size: 14px;
    }

    .highlight-box {
        padding: 20px;
        gap: 16px;
    }

    .highlight-box i {
        font-size: 28px;
    }

    .highlight-box strong {
        font-size: 16px;
    }

    .contact-section .container {
        flex-direction: column;
        gap: 16px;
    }

    .contact-info {
        display: none;
    }

    .contact-buttons {
        width: 100%;
        gap: 12px;
    }

    .btn {
        flex: 1;
        padding: 16px 20px;
    }

    .footer {
        margin-bottom: 100px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .gallery-section {
        margin-bottom: 24px;
    }

    .image-counter {
        padding: 8px 14px;
        font-size: 12px;
        bottom: 12px;
        left: 12px;
    }

    .thumbnails {
        gap: 8px;
        margin-top: 12px;
    }

    .thumb {
        width: 70px;
        height: 50px;
    }

    .details-header {
        padding: 20px;
    }

    .badge {
        font-size: 11px;
        padding: 6px 12px;
    }

    .property-title {
        font-size: 20px;
    }

    .property-location {
        font-size: 14px;
    }

    .property-price {
        font-size: 28px;
    }

    .details-content {
        padding: 20px;
    }

    .detail-card {
        padding: 14px;
        gap: 10px;
    }

    .detail-card i {
        font-size: 22px;
    }

    .detail-label {
        font-size: 10px;
    }

    .detail-value {
        font-size: 13px;
    }

    .description h2,
    .features h2 {
        font-size: 18px;
    }

    .description p {
        font-size: 15px;
    }

    .feature {
        padding: 10px 14px;
        font-size: 13px;
    }

    .btn span {
        display: none;
    }

    .btn {
        padding: 16px 20px;
    }

    .btn i {
        font-size: 24px;
        margin: 0;
    }
}