:root {
    --bg-color: #FFFFFF;
    --card-bg: #F2F2F7;
    --text-primary: #000000;
    --text-secondary: #3C3C43;
    --spacing-unit: 14px;
    --font-family: 'Outfit', sans-serif;

    /* Font Sizes - Merkezi Kontrol */
    --fs-h1: 32px;
    --fs-base: 16px;
    --fs-small: 16px;
    --divider-color: #E5E5EA;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent font resizing by browser or OS */
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* Disable unwanted touch behaviors */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

input,
button,
textarea,
select,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: inherit;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    background-color: #FFFFFF;
    /* Uygulama ana rengi */
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    /* Önemli: Tarayıcı zıplamasını engellemek için */
    overscroll-behavior-y: none;
}

/* The ONLY Scrollable Container - Now also handles transitions */
#app {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-top: env(safe-area-inset-top, 20px);
    padding-bottom: env(safe-area-inset-bottom, 20px);
    scrollbar-width: none;
    transition: opacity 0.2s ease-in-out, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
}

#app.page-transitioning {
    opacity: 0;
    transform: translateY(10px);
}

/* Specific padding for screens when nav is visible */
#app.explore-screen,
#app.favorites-screen,
#app.map-screen,
#app.messages-screen,
#app.profile-screen {
    padding-bottom: calc(env(safe-area-inset-bottom) + 85px);
}

.app-container {
    max-width: 430px;
    /* iPhone genişliği */
    height: 100dvh;
    margin: 0 auto;
    /* Ortala */
    position: relative;
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
}

/* Transition Overlay */
#transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #FFFFFF;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#transition-overlay.active {
    opacity: 0.5;
}

/* Base Screen Style - Contents of #app */
.explore-screen,
.profile-screen,
.favorites-screen,
.messages-screen,
.welcome-screen,
.auth-screen {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Alt Menü - Tam Yapışık */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;

    height: calc(75px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);

    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);

    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0;

    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    justify-items: center;

    z-index: 1000;
}

/* Navigasyon İkonları */
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #8E8E93;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-item.active {
    color: #007AFF;
    transform: translateY(-2px);
}

.nav-icon {
    width: 24px;
    height: 24px;
}

.nav-label {
    font-size: 10px;
    font-weight: 500;
}

.hero-section {
    margin-top: 0;
    margin-bottom: var(--spacing-unit);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-unit);
}

.title {
    font-size: var(--fs-h1);
    font-weight: 600;
    letter-spacing: -1.5px;
    line-height: 1.1;
    width: 100%;
    margin-bottom: 14px !important;
}

.subtitle {
    font-size: var(--fs-base);
    line-height: 1.4;
    color: var(--text-secondary);
    font-weight: 400;
    width: 100%;
    margin-bottom: 14px !important;
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-unit);
}

.btn {
    width: 100%;
    height: 50px;
    border-radius: 12px;
    border: none;
    font-family: var(--font-family);
    font-size: var(--fs-base);
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 16px;
    background-color: var(--card-bg);
    color: var(--text-primary);
}

.btn:active {
    background-color: #E5E5EA;
}

.btn-secondary {
    justify-content: flex-start;
}

/* Secondary page buttons match first page colors and alignment */
.btn-login,
.btn-register {
    background-color: var(--card-bg);
}

.btn-login:active,
.btn-register:active {
    background-color: #E5E5EA;
}

.btn-icon {
    width: 24px;
    height: 24px;
    margin-right: 16px;
    object-fit: contain;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-unit);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-unit);
}

.form-input {
    width: 100%;
    height: 50px;
    background-color: var(--card-bg);
    border: none;
    border-radius: 12px;
    padding: 0 16px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: var(--fs-base);
    outline: none;
    line-height: 50px;
    /* Perfectly centers text in a 64px height box for input tags */
    box-sizing: border-box;
}

/* Ensure textareas use padding for centering since line-height isn't enough */
textarea.form-input {
    line-height: 1.4;
    padding: 14px 16px;
    height: auto;
}

/* Hide spin buttons */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
}

.stepper-container {
    display: flex;
    align-items: center;
    gap: 14px;
}

.stepper-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--card-bg);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s;
}

.stepper-btn:active {
    background-color: #E5E5EA;
}

.stepper-input {
    text-align: center;
    font-weight: 600;
}


/* Fix for browser autocomplete/autofill colors */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px var(--card-bg) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.form-input.invalid {
    border: 1px solid #FF3B30;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 10;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.toggle-password:hover {
    opacity: 1;
}

.form-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    padding: 8px 0;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #C6C6C8;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-container input:checked~.checkmark {
    background-color: #007AFF;
    border-color: #007AFF;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-text {
    font-size: var(--fs-base);
    color: var(--text-primary);
    font-weight: 400;
}

.btn-primary-blue {
    background-color: #007AFF;
    font-weight: 400;
}

.btn-primary-blue:active {
    background-color: #0062CC;
}

.btn-primary-red {
    background-color: #FF3B30;
    font-weight: 400;
}

.btn-primary-red:active {
    background-color: #D73229;
}

.btn-secondary-red {
    background-color: #FF7E77;
    /* Lighter red for 'Forgot Password' */
    font-weight: 400;
}

.btn-secondary-red:active {
    background-color: #E6716B;
}

.profile-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 40px 20px 100px;
    /* 40px top + 20px sides + 100px bottom (80 nav + 20 gap) */
    overflow-y: auto;
    gap: 14px;
    scrollbar-width: none;
    overflow-x: hidden;
}

.profile-screen::-webkit-scrollbar {
    display: none;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #4a4a4a;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.avatar-large svg {
    width: 60px;
    height: 60px;
    color: #888;
}

.change-photo-text {
    font-size: var(--fs-base);
    color: var(--text-primary);
    font-weight: 400;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-label {
    font-size: var(--fs-base);
    font-weight: 400;
    color: var(--text-primary);
}

.managed-places-section {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px !important;
}

.section-title {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 14px !important;
}

.places-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    /* Negative margin to ignore parent's 32px padding */
    margin-left: -20px;
    margin-right: -20px;
    /* Positive padding to keep content aligned with headlines */
    padding-left: 20px;
    padding-right: 20px;
}

.places-scroll::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.places-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    width: 100%;
}

.places-grid .place-card {
    min-width: unset;
    width: 100%;
}

.place-card {
    min-width: 160px;
    height: 200px;
    border-radius: 12px;
    /* Matched with inputs and buttons */
    overflow: hidden;
    position: relative;
    background-color: var(--card-bg);
    text-decoration: none;
}

.place-card.add-place {
    border: 1.5px dashed #4a4a4a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background-color: transparent;
}

.add-place-icon {
    width: 32px;
    height: 32px;
    color: var(--text-primary);
}

.add-place-text {
    font-size: var(--fs-base);
    font-weight: 400;
    color: var(--text-primary);
}

.place-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.place-info-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
    /* Ensures 12px gap on right side too */
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 12px;
    display: block;
    /* Allows natural text wrapping and shrink-wrap width */
    width: fit-content;
}

.place-name {
    font-size: var(--fs-base);
    /* Force standard 16px */
    font-weight: 400;
    color: white;
    line-height: 1.2;
    margin-top: 1px;
}

.rating-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.rating-badge span {
    font-size: var(--fs-base);
    /* Force standard 16px */
    font-weight: 400;
    line-height: 1.2;
    color: white;
    margin-top: 1px;
}

.rating-star {
    width: 16px;
    height: 16px;
    color: white;
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.settings-item {
    width: 100%;
    height: 50px;
    background-color: var(--card-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: var(--fs-base);
    font-weight: 400;
    color: var(--text-primary);
    cursor: pointer;
}

.logout-item {
    color: #FF3B30;
}

/* Top Status Bar Blur Effect */
.status-bar-blur {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: calc(env(safe-area-inset-top) + 20px);
    /* Covers status bar + a bit more */
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    pointer-events: none;
    /* Let clicks pass through */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Base Screen Style for Scrolling Pages */
/* Adjusted padding for Floating Nav */
#app.explore-screen,
#app.profile-screen,
#app.favorites-screen,
#app.messages-screen,
#app.welcome-screen,
#app.auth-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;

    /* CRITICAL: Space for Top Status Bar + Header Breathing Room */
    padding-top: calc(50px + env(safe-area-inset-top, 20px));

    /* Space for Floating Bottom Nav (Height 70 + Margin 20 + Safe Area) */
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 20px));

    /* Enable Scrolling */
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;

    /* Smooth Scroll */
    -webkit-overflow-scrolling: touch;

    /* Hide scrollbar */
    scrollbar-width: none;
}

.explore-screen::-webkit-scrollbar,
.profile-screen::-webkit-scrollbar {
    display: none;
}

/* Consolidated Bottom Nav items */

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #8E8E93;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    height: 100%;
    /* Fill the grid cell */
    border-radius: 50%;
    /* Click effect shape */
}

.nav-item:active {
    transform: scale(0.9);
}

.nav-item.active {
    color: #007AFF;
}

.nav-icon {
    width: 24px;
    height: 24px;
}

.nav-label {
    font-size: 10px;
    /* Smaller label for compact bar */
    font-weight: 500;
}

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    padding-bottom: 20px;
}

.logo-wrapper {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.6;

}

/* Base Screen Style for Scrolling Pages */
.explore-screen,
.profile-screen,
.favorites-screen,
.messages-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* Basic padding */
    padding: 20px;

    /* CRITICAL: Space for Top Status Bar */
    padding-top: calc(50px + env(safe-area-inset-top));

    /* CRITICAL: Space for Bottom Nav */
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
    /* 85px nav + extra space */

    /* Enable Scrolling */
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;

    /* Smooth Scroll */
    -webkit-overflow-scrolling: touch;

    /* Hide scrollbar */
    scrollbar-width: none;
}

.explore-screen::-webkit-scrollbar,
.profile-screen::-webkit-scrollbar {
    display: none;
}

/* Place Detail Styles */
.place-detail-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    background-color: var(--bg-color);
}

.place-detail-screen::-webkit-scrollbar {
    display: none;
}

.detail-hero {
    width: 100%;
    height: 380px;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.hero-scroll {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory !important;
    height: 100%;
    width: 100%;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    /* Ensures reliable horizontal swiping */
    scroll-behavior: auto;
    /* mandatory snap works better with auto */
    scroll-padding: 0;
}

.hero-scroll::-webkit-scrollbar {
    display: none;
}

.hero-slide {
    flex: 0 0 100%;
    min-width: 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
    position: relative;
}

.hero-slide video,
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    /* Prevents media from stealing swipe gestures */
}

.hero-actions {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.right-actions {
    display: flex;
    gap: 14px;
}

.hero-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    border: none;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.hero-btn svg {
    width: 24px;
    height: 24px;
}

.hero-dots {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 5;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
}

.dot.active {
    background-color: white;
    width: 24px;
    border-radius: 4px;
}

.detail-content {
    background-color: var(--bg-color);
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    margin-top: -40px;
    position: relative;
    z-index: 2;
    padding: 32px 20px 100px;
    /* 80px bar height + 20px gap */
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.detail-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.detail-header .separator-line {
    width: 100%;
}

.place-title {
    font-size: var(--fs-h1);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.place-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: var(--fs-base);
    color: var(--text-primary);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-primary);
    font-size: var(--fs-base);
}

.meta-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.meta-text {
    font-size: var(--fs-base);
}

.place-description {
    font-size: var(--fs-base);
    line-height: 1.5;
    color: var(--text-secondary);
    text-align: center;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.contact-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--card-bg);
    border: none;
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.contact-btn svg {
    width: 24px;
    height: 24px;
}

.info-table {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: var(--fs-base);
    color: var(--text-primary);
}

.info-label svg {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
}

.info-value {
    font-size: var(--fs-base);
    color: var(--text-primary);
    text-align: right;
}

.amenities-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.amenities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.amenity-badge {
    padding: 10px 20px;
    background-color: var(--card-bg);
    border-radius: 12px;
    font-size: var(--fs-base);
    color: var(--text-secondary);
}

.chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.chip {
    padding: 10px 18px;
    background-color: var(--card-bg);
    border-radius: 20px;
    font-size: var(--fs-base);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.chip:active {
    transform: scale(0.95);
}

.chip.active {
    background-color: var(--text-primary);
    color: white;
}

.separator-line {
    width: 100%;
    height: 1px;
    background-color: var(--divider-color);
    display: block !important;
    flex-shrink: 0;
}

.vertical-divider {
    width: 1px;
    height: 24px;
    background-color: var(--divider-color);
}

.accordion-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}


.menu-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--card-bg);
    padding: 16px;
    border-radius: 12px;
    cursor: pointer;
}

.menu-header .section-title {
    font-size: var(--fs-base);
    font-weight: 400;
    color: var(--text-primary);
    margin: 0;
}

.menu-header svg {
    color: var(--text-primary);
    transition: transform 0.3s ease;
}

.menu-grid {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.menu-grid::-webkit-scrollbar {
    display: none;
}

.menu-card {
    min-width: 160px;
    height: 200px;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.pink-card {
    background-color: #FF8FA3;
}

.yellow-card {
    background-color: #FFF59D;
}

.green-card {
    background-color: #A5D6A7;
}

.blue-card {
    background-color: #90CAF9;
}

.menu-pill {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: var(--fs-base);
    font-weight: 400;
    max-width: 100%;
    width: fit-content;
    line-height: 1.2;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.price-pill {
    align-self: flex-end;
}

.name-pill {
    align-self: flex-start;
}

.address-section {
    background-color: var(--card-bg);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 0;
}

.address-text {
    font-size: var(--fs-base);
    line-height: 1.5;
    color: var(--text-primary);
    margin: 0;
}

.map-placeholder {
    width: 100%;
    height: 300px;
    background-color: #FFCDD2;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.map-text {
    font-size: var(--fs-base);
    color: #000000;
    font-weight: 400;
    line-height: 1.5;
}

.map-actions {
    display: flex;
    gap: 14px;
}

.map-btn {
    flex: 1;
    height: 50px;
    border-radius: 12px;
    border: none;
    font-size: var(--fs-base);
    font-weight: 400;
    cursor: pointer;
    background-color: var(--card-bg);
    color: var(--text-secondary);
}

.reviews-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.reviews-header {
    background-color: var(--card-bg);
    padding: 16px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.reviews-header .section-title {
    font-size: var(--fs-base);
    color: var(--text-primary);
    margin: 0;
}

.reviews-header .place-meta {
    font-size: var(--fs-base);
    gap: 14px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.review-card {
    background-color: var(--card-bg);
    padding: 16px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-shrink: 0;
    width: 280px;
    /* Sabit genişlik veya konteynere oranla yüzdelik */
    max-width: 85%;
}

.reviews-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 0;
    scrollbar-width: none;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.reviews-scroll::-webkit-scrollbar {
    display: none;
}

.reviews-scroll .review-card {
    min-width: 280px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #E5E5EA;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-name {
    font-size: var(--fs-base);
    color: var(--text-primary);
    font-weight: 400;
}

.review-date {
    font-size: var(--fs-small);
    color: var(--text-primary);
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-primary);
    font-size: var(--fs-base);
}

.review-text {
    font-size: var(--fs-base);
    line-height: 1.5;
    color: var(--text-secondary);
    white-space: normal;
    overflow-wrap: break-word;
}

.add-review-section {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.add-review-section .section-title {
    font-size: var(--fs-base);
    color: var(--text-primary);
    margin: 0;
}

.star-rating {
    display: flex;
    gap: 14px;
}

.star-rating svg {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
    fill: none;
    stroke: var(--text-primary);
    stroke-width: 2px;
}

.review-input-container {
    border: 1px solid #E5E5EA;
    border-radius: 12px;
    padding: 16px;
}

.review-input {
    width: 100%;
    min-height: 100px;
    background-color: transparent;
    border: none;
    color: var(--text-primary);
    font-size: var(--fs-base);
    resize: none;
    outline: none;
}

.review-input::placeholder {
    color: #6B7280;
}

.submit-btn {
    width: 100%;
    height: 50px;
    background-color: transparent;
    border: 1px solid #E5E5EA;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: var(--fs-base);
    cursor: pointer;
}

/* Messages Styles */
.messages-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background-color: var(--card-bg);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.message-item:active {
    transform: scale(0.98);
    background-color: #E5E5EA;
}

.msg-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.msg-info {
    flex: 1;
    min-width: 0;
}

.msg-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
}

.msg-sender {
    font-weight: 400;
    font-size: var(--fs-small);
    color: var(--text-primary);
}

.msg-time {
    font-size: 13px;
    color: var(--text-secondary);
    opacity: 0.7;
}

.msg-snippet {
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.msg-sender-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.unread-badge {
    width: 8px;
    height: 8px;
    background-color: #007AFF;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Chat Detail Styles */
.chat-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-x: hidden;
}

.chat-header {
    padding: 20px;
    padding-top: calc(20px + env(safe-area-inset-top));
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--divider-color);
    background-color: var(--bg-color);
}

.back-btn {
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    color: white;
    font-size: 14px;
}

.chat-user-details {
    display: flex;
    flex-direction: column;
}

.chat-user-name {
    font-size: var(--fs-base);
    font-weight: 400;
    color: var(--text-primary);
}

.chat-status {
    font-size: var(--fs-small);
    color: #34C759;
}

.chat-messages {
    flex: 1;
    min-height: 0;
    /* Flexbox içinde daralabilmesi için kritik */
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    scrollbar-width: none;
}

.chat-messages::-webkit-scrollbar {
    display: none;
}

.message-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: var(--fs-base);
    line-height: 1.4;
    position: relative;
}

.message-bubble.received {
    align-self: flex-start;
    background-color: var(--card-bg);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.message-bubble.sent {
    align-self: flex-end;
    background-color: #007AFF;
    color: white;
    border-bottom-right-radius: 4px;
}

.message-info-meta {
    font-size: var(--fs-small);
    margin-top: 4px;
    opacity: 0.7;
    display: block;
}

.chat-input-area {
    padding: 16px 20px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    background-color: var(--bg-color);
    border-top: 1px solid var(--divider-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-input-wrapper {
    flex: 1;
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    height: 50px;
}

.chat-input {
    flex: 1;
    background: none;
    border: none;
    font-family: inherit;
    font-size: var(--fs-base);
    outline: none;
    color: var(--text-primary);
}

.send-btn {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: #007AFF;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
}

/* Google Maps Styles */

/* Map Container */
#map {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
}

/* Search Bar on Map */
.map-search-container {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 1000;
}

.map-search-bar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.map-search-input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 16px;
    font-family: 'Outfit', sans-serif;
    background: transparent;
}

/* Hide Google UI - Premium Look */
.gm-style-cc,
.gm-svpc,
.gm-style-mtc,
.gm-fullscreen-control {
    display: none !important;
}

/* Make Google branding nearly invisible */
a[href^="https://maps.google.com/maps"],
.gm-style a[href^="https://maps.google.com/maps"],
.gmnoprint,
.gm-style-cc,
.gm-style .gm-style-cc,
div[style*="background-color: rgb(245, 245, 245)"] {
    opacity: 0.01 !important;
}