* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.container {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

@media (min-width: 768px) {
    .container {
        flex-direction: row;
        overflow: hidden;
    }
}

#map {
    flex: 1;
    min-height: 300px;
    height: 40vh;
    border-radius: 10px;
    margin: 10px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    #map {
        position: sticky;
        top: 0;
        height: calc(100vh - 60px);
        width: 50%;
        margin: 5px 5px 5px 10px;
        align-self: flex-start;
    }
}

.properties-container {
    overflow-y: auto;
    padding: 10px;
    background: #f5f5f5;
    height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 10px;
    border-radius: 10px;
}

@media (min-width: 768px) {
    .properties-container {
        width: 50%;
        height: auto;
        margin: 10px 10px 10px 5px;
    }
}

.property-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    order: 1;
    padding: 15px;
}

.property-card.active {
    border-color: #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
    order: 0 !important;
}

.property-content {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    height: 100%;
}

.property-image-container {
    position: relative;
    margin-bottom: 10px;
}

.property-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.listing-number {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.property-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    flex: 1;
}

.property-price {
    font-size: 16px;
    color: #e74c3c;
    font-weight: bold;
    margin-left: 10px;
    white-space: nowrap;
}

.property-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px; /* Butonlar arası boşluk */
    flex-wrap: wrap; /* Küçük ekranlarda satır atlaması için */
}

.action-btn {
    flex: 1; /* Eşit genişlikte ve esnek olmaları için */
    min-width: 80px; /* Minimum genişlik */
    max-width: 120px; /* Maksimum genişlik */
    justify-content: center;
    padding: 8px 10px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-size: 12px; /* Daha küçük font boyutu */
    white-space: nowrap; /* Metnin tek satırda kalması */
    overflow: hidden; /* Taşan metni gizle */
    text-overflow: ellipsis; /* Taşan metni ... ile göster */
}

.action-btn:hover {
    opacity: 0.9;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.sms-btn {
    background-color: #2ecc71;
    color: white;
}

.calendar-btn {
    background-color: #4285f4;
    color: white;
}

.video-btn {
    background-color: #3498db;
    color: white;
}

.icon {
    color: #3498db;
    width: 16px;
    text-align: center;
}


.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-size: 18px;
    color: #666;
}

.country-selector {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 999;
    padding: 10px;
    background: rgba(255, 255, 255, 0.75);
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    border-radius: 10px;
    backdrop-filter: blur(4px);
    scrollbar-width: thin;
}

.country-selector::-webkit-scrollbar {
    height: 6px;
}

.country-selector::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.country-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    background-color: #3498db;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.country-btn:hover {
    background-color: #2980b9;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.country-btn.active {
    background-color: #e74c3c;
}

.video-btn {
    text-transform: capitalize;
    font-weight: bold;
}

/* Tüm SVG ikonlar için ortak stil */
.icon svg {
  width: 16px;
  height: 16px;
  vertical-align: middle; /* Metinle hizalamak için */
  margin-right: 5px;
}

.action-btn .icon svg {
    width: 16px;
    height: 16px;
    filter: brightness(0) saturate(100%) invert(100%); /* Beyaz yap */
}

/* Özel renkler */
.detail-item svg {
  fill: #3498db; /* Mavi renk */
}

.action-btn .icon img {
    width: 16px;
    height: 16px;
    filter: brightness(0) saturate(100%) invert(100%); /* Beyaz yap */
}

.country-selector {
    scroll-behavior: smooth; /* Animasyon için */
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-size: 18px;
    color: #666;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Video Player Stilleri */
.video-player-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-player-container.show {
    opacity: 1;
    visibility: visible;
}

.video-player-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-video-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}