/* ========================= Grundtypografi & layout ========================= */ body { font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #f5f5f7; margin: 0; padding: 0; color: #222; /* Sticky footer / app-känsla */ min-height: 100vh; display: flex; flex-direction: column; } h1 { font-weight: 600; margin: 0 0 14px; font-size: 32px; letter-spacing: -0.02em; color: #111; } h2 { font-weight: 600; margin: 0 0 8px; font-size: 18px; color: #111; } h3 { font-weight: 600; margin: 0 0 6px; font-size: 16px; color: #111; } @media (max-width: 768px) { h1 { font-size: 26px; margin-bottom: 12px; } } a { color: inherit; } /* Container */ .rb-container { width: 1080px; max-width: 100%; margin: 0 auto; padding: 0 16px; } /* ========================= Header & navigation ========================= */ .rb-header { background: #ffffff; border-bottom: 1px solid #e2e2e2; padding: 10px 0; } .rb-header-inner { display: flex; align-items: center; justify-content: space-between; } .rb-logo { font-weight: 700; font-size: 24px; text-decoration: none; letter-spacing: 0.03em; color: #e53935; } .rb-nav a { margin-left: 18px; text-decoration: none; font-size: 14px; color: #333; font-weight: 500; } .rb-nav a:hover { color: #e53935; } /* Meddelande–badge i headern */ .rb-msg-link { position: relative; display: inline-flex; align-items: center; gap: 4px; } .rb-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; padding: 0 6px; border-radius: 999px; background: #e53935; color: #fff; font-size: 11px; font-weight: 600; } /* ========================= Main & bas-komponenter ========================= */ .rb-main { padding: 24px 0 40px; flex: 1; /* gör att footern hamnar längst ned */ } /* Cards */ .rb-card { background: #ffffff; border-radius: 8px; border: 1px solid #e0e0e0; padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); } .rb-card h2 { margin-bottom: 6px; font-size: 18px; } .rb-card p { margin: 2px 0; font-size: 14px; } /* Buttons */ .rb-btn { display: inline-block; padding: 8px 16px; background: #e53935; color: #fff; text-decoration: none; border-radius: 999px; font-size: 14px; border: none; cursor: pointer; font-weight: 500; } .rb-btn:hover { background: #c62828; } .rb-btn-ghost { background: #ffffff; color: #333; border: 1px solid #d0d0d0; } .rb-btn-ghost:hover { background: #f3f3f3; } /* Forms */ .rb-form-group { margin-bottom: 12px; } .rb-form-group label { display: block; font-size: 13px; margin-bottom: 4px; font-weight: 500; } .rb-form-group input, .rb-form-group select, .rb-form-group textarea { width: 100%; padding: 8px 10px; font-size: 14px; box-sizing: border-box; border-radius: 6px; border: 1px solid #d0d0d0; background: #fcfcfc; } .rb-form-group input:focus, .rb-form-group select:focus, .rb-form-group textarea:focus { outline: none; border-color: #e53935; box-shadow: 0 0 0 1px rgba(229,57,53,0.1); } /* Footer */ .rb-footer { margin-top: 40px; padding: 16px 0; background: #fafafa; font-size: 12px; text-align: center; border-top: 1px solid #e2e2e2; color: #666; } /* ========================= Index: karta + län + kategorier ========================= */ /* Layout */ .rb-region-layout { display: grid; grid-template-columns: minmax(220px, 280px) minmax(260px, 1fr); gap: 20px; margin-bottom: 20px; } @media (max-width: 768px) { .rb-region-layout { grid-template-columns: 1fr; } } /* Län-lista */ .rb-region-list { max-height: 360px; overflow: auto; } .rb-region-list ul { list-style: none; padding: 0; margin: 0; } .rb-region-list li { margin-bottom: 4px; } .rb-region-list a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 6px; text-decoration: none; font-size: 14px; } .rb-region-list a:hover { background: #ffe5e3; } /* Karta */ .rb-map-card { text-align: center; } .rb-map { width: 100%; max-width: 260px; margin: 0 auto; display: block; } .rb-map a:hover rect, .rb-map a:hover path { fill: #ff6f61; } .rb-map-help { margin-top: 10px; font-size: 12px; color: #666; } /* ========================= Kategorier (badges) ========================= */ .rb-category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 8px; } /* Kortet */ .rb-category-tile { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; border-radius: 12px; border: 1px solid #e3e3e3; background: #fff; text-decoration: none; color: #111; box-shadow: 0 1px 3px rgba(15,23,42,0.06); transition: transform 0.05s ease, box-shadow 0.05s ease, border-color 0.05s ease; } .rb-category-tile:hover { transform: translateY(-1px); box-shadow: 0 4px 8px rgba(15,23,42,0.12); border-color: #ff6f61; } .rb-category-label { flex: 1; font-size: 15px; } /* Rund badge för antal annonser */ .rb-category-count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; padding: 2px 8px; border-radius: 999px; background: #e53935; color: #fff; font-size: 12px; font-weight: 600; } /* ========================= Modal ========================= */ .rb-modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.35); display: flex; align-items: center; justify-content: center; z-index: 50; } .rb-modal { background: #ffffff; border-radius: 14px; padding: 20px 22px 18px; max-width: 420px; width: 100%; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25); } .rb-modal h2 { margin: 0 0 6px; font-size: 20px; } .rb-modal p { margin: 0 0 14px; font-size: 14px; color: #555; } .rb-modal-actions { display: flex; flex-wrap: wrap; gap: 8px; } /* ========================= Dashboard / Översikt ========================= */ .rb-dash-grid, .rb-dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 16px; } .rb-dash-card, .rb-dashboard-card { position: relative; display: block; padding: 16px 18px; border-radius: 12px; background: #ffffff; border: 1px solid #e3e3e3; text-decoration: none; color: #111; box-shadow: 0 1px 3px rgba(15,23,42,0.06); transition: transform 0.05s ease, box-shadow 0.05s ease, border-color 0.05s ease; } .rb-dash-card:hover, .rb-dashboard-card:hover { transform: translateY(-1px); box-shadow: 0 4px 8px rgba(15,23,42,0.14); border-color: #e53935; } .rb-dash-icon { font-size: 40px; margin-bottom: 8px; } .rb-dash-badge { position: absolute; top: 10px; right: 12px; } /* ========================= Meddelanden / chatt – kort ========================= */ .rb-message-list { display: flex; flex-direction: column; gap: 10px; } .rb-message-card { padding: 14px 16px; text-decoration: none; color: inherit; } .rb-message-header { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #777; margin-bottom: 4px; } .rb-message-title { margin: 0 0 4px; font-size: 16px; } .rb-message-meta { margin: 0 0 6px; font-size: 13px; color: #555; } .rb-message-body { margin: 0; font-size: 14px; } .rb-message-unread { border-color: #e53935; background: #fff5f5; } /* ========================= Meddelanden / chatt – tråd ========================= */ .rb-conversation { max-width: 720px; margin: 0 auto; } .rb-msg-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; } .rb-msg-row { display: flex; } .rb-msg-row.me { justify-content: flex-end; } .rb-msg-row.them { justify-content: flex-start; } .rb-msg-bubble { max-width: 70%; padding: 8px 10px; border-radius: 12px; font-size: 14px; } .rb-msg-row.me .rb-msg-bubble { background: #e53935; color: #fff; border-bottom-right-radius: 2px; } .rb-msg-row.them .rb-msg-bubble { background: #ffffff; border: 1px solid #e0e0e0; border-bottom-left-radius: 2px; } .rb-msg-meta { font-size: 11px; color: #777; margin-top: 2px; } /* Alternativ chat-layout (conversation.php) */ .rb-conversation-card { display: block; text-decoration: none; color: inherit; margin-bottom: 1rem; } .rb-conversation-card:hover { box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12); transform: translateY(-1px); } .rb-conversation-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: .35rem; gap: .5rem; } .rb-conversation-with, .rb-conversation-ad, .rb-conversation-last { margin-top: .25rem; } .rb-badge-unread { background: #ef4444; color: #fff; } /* Header för en konversation */ .rb-conversation-header p { margin: 0.25rem 0; } /* Själva chattråden */ .rb-conversation-thread { margin-top: 1rem; } .chat-thread { display: flex; flex-direction: column; gap: .6rem; } /* En rad i chatten */ .message-row { display: flex; } .message-row.me { justify-content: flex-end; } .message-row.them { justify-content: flex-start; } /* Bubbla */ .message-row .bubble { max-width: 70%; padding: 10px 14px; border-radius: 18px; box-shadow: 0 2px 4px rgba(15, 23, 42, 0.08); font-size: .95rem; line-height: 1.4; } .message-row.me .bubble { background: #fee2e2; border-bottom-right-radius: 4px; } .message-row.them .bubble { background: #ffffff; border-bottom-left-radius: 4px; } .message-row .sender { font-weight: 600; font-size: .9rem; margin-bottom: 2px; } .message-row .time { margin-top: 4px; font-size: .75rem; opacity: .7; text-align: right; } /* Formulär längst ned */ .rb-conversation-form { margin-top: 1rem; } .message-form label { display: block; font-weight: 500; margin-bottom: .4rem; } .message-form textarea { width: 100%; min-height: 120px; border-radius: 12px; border: 1px solid #e5e7eb; padding: 10px 14px; font-family: inherit; resize: vertical; font-size: .95rem; } .message-form .rb-button { margin-top: .75rem; } /* ========================= Filter-bar över annonser ========================= */ .rb-filter-bar { padding: 12px 14px; } .rb-filter-row { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 8px; } @media (max-width: 768px) { .rb-filter-row { flex-direction: column; } } /* ========================= Favorit-knapp på annonser (gamla text-länken) ========================= */ .rb-fav-toggle { display: inline-block; font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid #ff6f61; background: #ffffff; color: #ff6f61; text-decoration: none; cursor: pointer; line-height: 1.2; transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease; } .rb-fav-toggle:hover { background: #fff5f2; } .rb-fav-toggle--active { background: #ff6f61; color: #fff; border-color: #ff6f61; } /* Inline-form för favorit på rubrik (legacy) */ .favorite-form-inline { display: inline-block; margin: 0; padding: 0; } /* ========================= Favoritpanel (slide-in) ========================= */ .rb-fav-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.35); opacity: 0; pointer-events: none; transition: opacity 0.18s ease; z-index: 40; } .rb-fav-overlay-visible { opacity: 1; pointer-events: auto; } .rb-fav-panel { position: fixed; top: 0; right: 0; height: 100%; width: 360px; max-width: 100%; background: #ffffff; box-shadow: -4px 0 16px rgba(15, 23, 42, 0.2); transform: translateX(100%); transition: transform 0.18s ease; z-index: 50; display: flex; flex-direction: column; } .rb-fav-panel-open { transform: translateX(0); } .rb-fav-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #e5e5e5; } .rb-fav-panel-header h2 { margin: 0; font-size: 16px; } .rb-fav-close-btn { border: none; background: transparent; font-size: 18px; cursor: pointer; } .rb-fav-panel-body { overflow-y: auto; flex: 1; } /* ========================= Logo ========================= */ .rb-logo img { display: block; height: 38px; } /* Hero på startsidan */ .rb-hero { padding: 8px 0 24px; } .rb-hero-text h1 { font-size: 32px; margin-bottom: 6px; } .rb-hero-text p { margin: 0 0 10px; font-size: 14px; color: #555; } .rb-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; } /* ========= Om Bytto ========= */ .rb-about { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; margin-bottom: 24px; } @media (max-width: 900px) { .rb-about { grid-template-columns: 1fr; } } .rb-about-logo img { height: 40px; margin-bottom: 10px; } .rb-about-agent-btn { display: flex; align-items: center; gap: 12px; border: none; background: none; padding: 0; cursor: pointer; text-align: left; } .rb-about-agent-avatar { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; border: 3px solid #e53935; flex-shrink: 0; } .rb-about-agent-avatar img { width: 100%; height: 100%; object-fit: cover; } .rb-about-agent-text span { font-size: 12px; color: #666; } /* ========= Bytto-boten chat ========= */ .rb-chat-launcher { position: fixed; right: 16px; bottom: 16px; width: 52px; height: 52px; border-radius: 50%; background: #e53935; box-shadow: 0 6px 16px rgba(15,23,42,0.35); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 60; } .rb-chat-launcher img { width: 32px; height: 32px; border-radius: 50%; } /* Själva chattfönstret */ .rb-chat-widget { position: fixed; right: 16px; bottom: 80px; width: 320px; max-width: calc(100% - 32px); background: #ffffff; border-radius: 16px; box-shadow: 0 12px 30px rgba(15,23,42,0.35); display: none; flex-direction: column; overflow: hidden; z-index: 70; font-size: 13px; } .rb-chat-header { padding: 10px 12px; background: #e53935; color: #fff; display: flex; align-items: center; justify-content: space-between; font-weight: 600; } .rb-chat-close { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; } .rb-chat-messages { max-height: 260px; padding: 10px 12px; overflow-y: auto; background: #fafafa; } .rb-chat-msg { margin-bottom: 8px; } .rb-chat-msg-sender { font-weight: 600; margin-bottom: 2px; } .rb-chat-msg-text { background: #fff; border-radius: 8px; padding: 6px 8px; border: 1px solid #e5e7eb; } .rb-chat-msg-me .rb-chat-msg-text { background: #fee2e2; border-color: #fecaca; } .rb-chat-form { display: flex; border-top: 1px solid #e5e7eb; } .rb-chat-form input { flex: 1; border: none; padding: 8px 10px; font-size: 13px; } .rb-chat-form input:focus { outline: none; } .rb-chat-form button { border: none; background: #e53935; color: #fff; padding: 0 14px; cursor: pointer; font-size: 13px; } .rb-chat-form button:hover { background: #c62828; } @media (max-width: 480px) { .rb-chat-widget { right: 8px; left: 8px; width: auto; } } /* ===== Om Bytto-layout ===== */ .rb-about-main p { line-height: 1.7; font-size: 15px; } /* Sidokolumn med receptionist + logga */ .rb-about-side { display: flex; flex-direction: column; gap: 12px; } .rb-about-agent-text div { font-weight: 600; } .rb-about-logo-box { margin-top: 20px; text-align: center; } .rb-about-logo-big { width: 190px; max-width: 100%; display: block; margin: 0 auto 8px; } .rb-about-brandtext { font-size: 13px; color: #555; } .rb-about-brandtext a { color: #e53935; text-decoration: none; } .rb-about-brandtext a:hover { text-decoration: underline; } /* Second version of chat/header layout (kept for compatibility) */ .rb-chat-header-main { display: flex; align-items: center; gap: 8px; } .rb-chat-header-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #fff; } .rb-chat-title { font-weight: 600; } .rb-chat-subtitle { font-size: 11px; opacity: 0.85; } /* About & bot variations */ .rb-about-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; } .rb-about-left p { line-height: 1.7; font-size: 16px; } .rb-about-right { text-align: left; } .rb-bot-wrapper { display: flex; justify-content: center; margin: 16px 0; } .rb-bot-image { width: 160px; height: 160px; object-fit: cover; border-radius: 50%; border: 3px solid #ff4d3d; cursor: pointer; transition: 0.2s ease; } .rb-bot-image:hover { transform: scale(1.05); } .rb-bot-button { width: 100%; background: #ff4d3d; color: white; padding: 12px 16px; border-radius: 8px; border: none; cursor: pointer; font-weight: 600; margin-top: 4px; } .rb-bot-sub { font-size: 12px; font-weight: 400; } /* Info-kort */ .rb-info-card { border-left: 3px solid #e53935; } /* ========================= Underkategorier (chips-rad) ========================= */ .rb-subcategory-strip { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; } .rb-subcat-label { font-size: 13px; font-weight: 600; color: #555; margin-top: 4px; flex-shrink: 0; white-space: nowrap; } .rb-subcat-chips { display: flex; flex-wrap: wrap; gap: 8px; } /* Chipsen */ .rb-subcat-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 1px solid #e5e7eb; background: #ffffff; font-size: 13px; text-decoration: none; color: #374151; white-space: nowrap; transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease, transform 0.05s ease; } .rb-subcat-chip:hover { border-color: #f97373; background: #fff5f5; transform: translateY(-1px); box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08); } .rb-subcat-chip--active { border-color: #e53935; background: #fee2e2; color: #b91c1c; font-weight: 500; box-shadow: 0 2px 8px rgba(229, 57, 53, 0.30); } .rb-subcat-chip--active:hover { /* behåll tydlig look även vid hover */ border-color: #e53935; background: #fecaca; color: #991b1b; box-shadow: 0 2px 10px rgba(229, 57, 53, 0.4); } .rb-subcat-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; padding: 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; background: rgba(17, 24, 39, 0.06); color: inherit; } /* Gör count-badge ljus även på aktiv chip */ .rb-subcat-chip--active .rb-subcat-count { background: rgba(255, 255, 255, 0.18); } /* Mobil: chipsen får horisontell scroll istället för wrap */ @media (max-width: 768px) { .rb-subcategory-strip { flex-direction: column; align-items: flex-start; } .rb-subcat-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; } .rb-subcat-chips::-webkit-scrollbar { height: 4px; } .rb-subcat-chips::-webkit-scrollbar-track { background: transparent; } .rb-subcat-chips::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 999px; } } /* =============================== OVERRIDES: LISTINGS & GALLERY (sista vinner → dessa gäller) =============================== */ /* === Annonskort / listing cards === */ /* Grid: 1 kolumn mobil, 2–3 kolumner desktop */ .rb-listing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; } /* Själva kortet */ .rb-listing-card { display: flex; flex-direction: column; border-radius: 12px; background: #fff; border: 1px solid #e0e0e0; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06); overflow: hidden; transition: transform 0.06s ease, box-shadow 0.06s ease, border-color 0.06s ease; } /* gör korten lika höga i grid */ .rb-listing-grid .rb-listing-card { height: 100%; } .rb-listing-card:hover { transform: translateY(-1px); box-shadow: 0 4px 8px rgba(15, 23, 42, 0.14); border-color: #e53935; } /* Bildyta: låst ratio + crop */ .rb-listing-thumb { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #f3f4f6; display: flex; align-items: center; justify-content: center; } .rb-listing-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; } .rb-listing-thumb-placeholder { font-size: 13px; color: #777; } /* Textdelen */ .rb-listing-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; min-height: 92px; /* lite jämnare kort */ } .rb-listing-body h2 { font-size: 16px; font-weight: 600; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; /* max 2 rader titel */ -webkit-box-orient: vertical; overflow: hidden; } .rb-listing-price { font-size: 15px; font-weight: 600; margin: 0 0 4px; color: #e53935; } .rb-listing-meta, .rb-listing-category { font-size: 13px; color: #6b7280; margin: 0; } /* ========================= Galleri-layout: main + galleri ========================= */ /* Desktop: main vänster, galleri-stapel höger */ .rb-gallery-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 320px); gap: 20px; align-items: flex-start; } .rb-gallery-main { min-width: 0; } .rb-gallery-col { min-width: 0; align-self: flex-start; display: flex; flex-direction: column; gap: 8px; } .rb-gallery-col > h2 { font-size: 16px; margin: 0 0 4px; } /* Stapel i galleriet */ .rb-gallery-list { display: flex; flex-direction: column; gap: 10px; } .rb-listing-card-featured { border-color: #ff9800; box-shadow: 0 2px 6px rgba(255, 152, 0, 0.25); } .rb-featured-badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #ff9800; color: #fff; margin-bottom: 4px; } /* Mobil: vanliga annonser först, galleri under */ @media (max-width: 900px) { .rb-gallery-layout { grid-template-columns: 1fr; } .rb-gallery-main { order: 1; } .rb-gallery-col { order: 2; } } /* ====== Anna-delete-modal (Mina annonser) ====== */ .rb-delete-modal { max-width: 520px; padding: 18px 20px 16px; } .rb-delete-header { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; } .rb-delete-avatar-wrap { flex-shrink: 0; display: flex; align-items: center; justify-content: center; } .rb-delete-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid #e53935; display: block; } .rb-delete-header-text h2 { margin: 0 0 4px; font-size: 18px; } .rb-delete-header-text p { margin: 0; font-size: 13px; color: #555; } .rb-delete-reasons { margin-top: 6px; display: flex; flex-direction: column; gap: 6px; } /* Custom radio rows */ .rb-radio-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #333; cursor: pointer; user-select: none; } .rb-radio-row input { position: absolute; opacity: 0; pointer-events: none; } .rb-radio-custom { width: 16px; height: 16px; border-radius: 999px; border: 2px solid #e5e7eb; box-sizing: border-box; display: inline-block; position: relative; background: #fff; } .rb-radio-row input:checked + .rb-radio-custom { border-color: #e53935; } .rb-radio-row input:checked + .rb-radio-custom::after { content: ""; position: absolute; inset: 3px; border-radius: 999px; background: #e53935; } .rb-radio-label { flex: 1; } /* Textarea under "Annan anledning" */ .rb-delete-textarea { width: 100%; margin-top: 2px; font-size: 12px; border-radius: 8px; border: 1px solid #e0e0e0; padding: 6px 8px; resize: vertical; } .rb-delete-textarea:focus { outline: none; border-color: #e53935; box-shadow: 0 0 0 1px rgba(229,57,53,0.15); } /* Felmeddelande i modal */ .rb-delete-error { display: none; font-size: 12px; color: #e53935; margin-top: 6px; } /* ========= Hjärt-knapp för favoriter ========= */ .rb-fav-btn { width: 30px; height: 30px; border-radius: 999px; border: 1px solid #ff6f61; background: #ffffff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; color: #ff6f61; padding: 0; line-height: 1; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.05s ease, box-shadow 0.05s ease; } .rb-fav-btn::before { content: "\2661"; /* tomt hjärta */ } .rb-fav-btn--active { background: #ff6f61; color: #ffffff; border-color: #ff6f61; } .rb-fav-btn--active::before { content: "\2665"; /* ifyllt hjärta */ } .rb-fav-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(15,23,42,0.18); } /* Inline-favoritknapp vid h1 (listing-sida) */ h1 .rb-fav-form { display: inline-flex; align-items: center; margin-left: 8px; } h1 .rb-fav-btn { margin-top: 2px; } /* Footer-räknare */ .rb-footer-main { margin-bottom: 4px; } .rb-visit-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; padding: 4px 12px; border-radius: 999px; border: 1px solid #e0e0e0; background: #ffffff; font-size: 11px; color: #555; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08); } .rb-visit-badge strong { color: #e53935; font-weight: 600; } /* ========================================= STEP 2 – UI-finclir (säkra overrides) ========================================= */ /* Knappar – konsekvent hover / fokus */ .rb-btn { box-shadow: 0 2px 4px rgba(15, 23, 42, 0.09); transition: background 0.12s ease, box-shadow 0.12s ease, transform 0.06s ease; } .rb-btn:hover { background: #c62828; box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15); transform: translateY(-1px); } .rb-btn-ghost { transition: background 0.12s ease, box-shadow 0.12s ease, transform 0.06s ease, border-color 0.12s ease; } .rb-btn-ghost:hover { background: #f5f5f5; border-color: #cfcfcf; box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08); transform: translateY(-1px); } /* Cards i galleri: ingen extra margin nederst */ .rb-gallery-list .rb-listing-card { margin-bottom: 0; } /* ========================= Mobilanpassning – layout ========================= */ /* Tablet / mindre skärmar */ @media (max-width: 768px) { .rb-container { padding: 0 12px; } .rb-header { padding: 8px 0; } .rb-header-inner { align-items: flex-start; gap: 12px; } .rb-nav a { margin-left: 12px; font-size: 13px; } .rb-footer { padding: 12px 0 16px; } } /* Mobil (iPhone-bredd & liknande) */ @media (max-width: 640px) { /* 1 kolumn för annonser på mobil */ .rb-listing-grid { grid-template-columns: 1fr; } /* Filterkort – tajtare och knappen full bredd */ .rb-filter-bar { padding: 10px 12px; } .rb-filter-bar .rb-btn { width: 100%; text-align: center; margin-top: 4px; } /* Favoritpanel: fullscreen slide-in */ .rb-fav-panel { width: 100%; max-width: 100%; border-radius: 0; box-shadow: 0 0 0 rgba(0,0,0,0); } /* Lite mer luft runt korten på mobil */ .rb-card { padding: 14px; border-radius: 10px; } /* Rubriker något mindre + lite tightare */ h1 { font-size: 24px; margin-bottom: 10px; } h2 { font-size: 17px; } } .lang-switcher { display: inline-flex; gap: 6px; align-items: center; margin-left: 12px; } .lang-switcher a { display: inline-flex; align-items: center; justify-content: center; padding: 6px 12px; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-decoration: none; background: #e5e7eb; opacity: 0.9; transition: all 0.15s ease-in-out; color: #111; } .lang-switcher a:hover { opacity: 1; background: #d1d5db; } .lang-switcher a.active { background: #dc2626; color: #fff; opacity: 1; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,0,0,0.15); } .lang-switcher a.active:hover { background: #b91c1c; } /* Mobilanpassning språkchips */ @media (max-width: 640px) { .rb-nav { flex-wrap: wrap; row-gap: 8px; } .lang-switcher { width: 100%; justify-content: center; margin-left: 0; margin-top: 4px; } .lang-switcher a { padding: 8px 14px; /* större klickyta */ font-size: 0.8rem; } } .lang-switcher { display: inline-flex; /* gör den horisontell och "inline" */ gap: 8px; margin-left: 16px; /* lite luft efter 'Skapa konto' */ font-size: 14px; align-items: center; } .lang-switcher a { text-decoration: none; color: inherit; opacity: 0.7; } .lang-switcher a.active { font-weight: 600; opacity: 1; } /* --- Desktop: knapp dold --- */ .rb-nav-toggle { display: none; } /* --- Mobilmeny --- */ @media (max-width: 768px) { .rb-header-inner { align-items: center; } /* Visa hamburgaren */ .rb-nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; width: 40px; height: 40px; border-radius: 999px; border: none; background: #f3f3f5; cursor: pointer; margin-left: auto; /* tryck bort mot höger */ } .rb-nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 999px; background: #222; } /* Dölj vanliga horisontella menyn på mobil */ .rb-nav { position: absolute; top: 64px; /* ungefär höjden på headern */ right: 0; left: 0; margin: 0; padding: 10px 16px 16px; background: #ffffff; box-shadow: 0 10px 25px rgba(0,0,0,0.06); display: none; flex-direction: column; gap: 8px; z-index: 50; } .rb-nav a { padding: 6px 0; } /* Visa menyn när vi klickat på knappen */ .rb-nav.rb-nav-open { display: flex; } /* Se till att språkchipsen lägger sig snyggt i listan */ .rb-nav .lang-switcher { margin-left: 0; margin-top: 8px; } } /* --- Listings cards: premium feel --- */ .rb-listing-card{ border:1px solid #eee; border-radius:18px; background:#fff; overflow:hidden; box-shadow:0 10px 24px rgba(0,0,0,.06); transition:transform .18s ease, box-shadow .18s ease; position:relative; } .rb-listing-card:hover{ transform:translateY(-2px); box-shadow:0 16px 34px rgba(0,0,0,.10); } .rb-listing-thumb{ position:relative; width:100%; aspect-ratio: 16 / 10; background:#f6f6f6; overflow:hidden; } .rb-listing-thumb img{ width:100%; height:100%; object-fit:cover; transform:scale(1.02); transition:transform .22s ease; display:block; } .rb-listing-card:hover .rb-listing-thumb img{ transform:scale(1.06); } .rb-listing-body{ padding:14px 14px 12px; } .rb-listing-body h2{ margin:0 0 8px; font-size:18px; line-height:1.15; letter-spacing:-0.2px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; } .rb-listing-price{ margin:0 0 8px; font-size:18px; font-weight:800; } .rb-listing-meta{ margin:0 0 8px; color:#666; font-size:13px; display:flex; gap:8px; align-items:center; flex-wrap:wrap; } .rb-listing-meta:before{ content:""; width:6px; height:6px; border-radius:999px; background:#ddd; display:inline-block; } .rb-listing-category{ margin:0; display:inline-flex; align-items:center; gap:8px; padding:6px 10px; border-radius:999px; border:1px solid #eee; color:#444; font-size:13px; width:fit-content; } /* Badge uppe på bild (t.ex. "Utvald") */ .rb-img-badge{ position:absolute; left:10px; top:10px; padding:6px 10px; border-radius:999px; background:rgba(0,0,0,.72); color:#fff; font-size:12px; font-weight:700; backdrop-filter: blur(6px); } /* Snygg fav-knapp overlay */ .rb-fav-overlay{ position:absolute; right:10px; top:10px; z-index:2; } .rb-fav-overlay .rb-fav-btn{ width:40px; height:40px; border-radius:999px; border:1px solid rgba(255,255,255,.55); background:rgba(255,255,255,.82); box-shadow:0 10px 20px rgba(0,0,0,.12); } .rb-fav-overlay .rb-fav-btn:hover{ background:#fff; } /* Placeholder */ .rb-listing-thumb-placeholder{ width:100%; height:100%; display:flex; align-items:center; justify-content:center; color:#999; font-size:13px; } /* Featured card variant */ .rb-listing-card-featured{ border-color: rgba(255,165,0,.45); } html, body { overflow-x: hidden; } /* GLOBAL layout-skydd */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

*, *::before, *::after { box-sizing: border-box; }

/* Långa ord/URL:er ska aldrig spränga container */
.rb-break-anywhere,
.prose,
.rb-card,
.rb-container,
.rb-page,
.rb-content {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Flex-child ellipsis fix (den vanligaste missen) */
.rb-card, .rb-content, .rb-row, .rb-col,
.rb-listing-body, .rb-extlink, .rb-extlink-a {
  min-width: 0;
}

/* Bilder ska aldrig kunna spränga bredd */
img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* Inputs/select ska inte spränga på mobil */
input, select, textarea, button {
  max-width: 100%;
}

/* Fixar klippt Bytto-logo i header */
.site-logo, .logo, .navbar-logo { 
  display: flex; 
  align-items: center; 
}

.site-logo img, .logo img, .navbar-logo img {
  height: 34px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Bytto header logo: aldrig klippt */
header .brand img,
header .logo img,
header .navbar-brand img,
header a img[alt*="Bytto"],
header a img[src*="logo"] {
  height: 34px !important;
  width: auto !important;
  display: block !important;
  object-fit: contain !important;
}

/* om wrappern råkar klippa */
header .brand,
header .logo,
header .navbar-brand {
  display: flex;
  align-items: center;
  overflow: visible;
}
.rb-rent-badge{
  position:absolute;
  top:10px;
  right:10px;
  z-index:2;
  background:#16a34a; /* grön */
  color:#fff;
  font-size:12px;
  font-weight:900;
  letter-spacing:.2px;
  padding:6px 10px;
  border-radius:999px;
  box-shadow:0 6px 18px rgba(0,0,0,.18);
}

/* =========================================================
   FIX: Stoppa horisontell scroll på mobil (särskilt bil-listings)
   ========================================================= */
@media (max-width: 768px) {
  /* Viktigt: låt grid-items faktiskt kunna krympa */
  .rb-listing-grid {
    grid-template-columns: 1fr !important;
  }

  .rb-listing-card,
  .rb-listing-thumb,
  .rb-listing-body {
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

/* =========================================================
   FIX: Modaler/overlays ska aldrig skapa sidscroll på mobil
   ========================================================= */
.rb-modal,
.rb-overlay,
#feedbackModal,
#annaFeedbackModal,
.modal,
.modal-overlay {
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
}

.rb-modal .rb-card,
.rb-modal-content,
#feedbackModal .rb-card,
.modal .modal-content {
  width: min(520px, calc(100vw - 24px)) !important;
  max-width: calc(100vw - 24px) !important;
  margin: 12px auto !important;
  box-sizing: border-box !important;
}

/* Om något barn har för långa rader (t.ex. URL) */
.rb-modal *,
.modal * {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* =========================================================
   FIX: Sidscroll i listings (Anna + feedback-modal sticker ut)
   ========================================================= */

/* 1) Hindra horisontell overflow i listings-sidan */
.rb-listings-page,
.rb-listing-grid,
.rb-container,
main {
  max-width: 100%;
  overflow-x: clip;
}

/* Fallback för browsers utan clip */
@supports not (overflow-x: clip) {
  .rb-listings-page,
  .rb-listing-grid,
  .rb-container,
  main {
    overflow-x: hidden;
  }
}

/* 2) Modaler/overlays ska aldrig kunna bli bredare än viewport */
#feedbackModal,
.rb-modal,
.modal,
.modal-overlay,
.rb-overlay {
  inset: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
}

#feedbackModal .rb-card,
.rb-modal .rb-card,
.modal .modal-content {
  width: min(520px, calc(100vw - 24px)) !important;
  max-width: calc(100vw - 24px) !important;
  margin: 12px auto !important;
  box-sizing: border-box !important;
}

/* 3) Anna-launcher får aldrig sticka ut till höger */
.rb-anna-launcher,
#annaLauncher,
.anna-launcher,
.chat-launcher {
  position: fixed !important;
  right: 12px !important;
  left: auto !important;
  bottom: 12px !important;
  transform: none !important;
  max-width: calc(100vw - 24px) !important;
  z-index: 9999 !important;
}


/* FIX: Anna får aldrig sticka ut utanför viewport */
.rb-anna-launcher,
#annaLauncher,
#rb-anna-launcher,
.anna-launcher,
.chat-launcher,
.rb-chat-launcher {
  position: fixed !important;
  right: 12px !important;
  left: auto !important;
  bottom: 12px !important;
  transform: none !important;
  margin-right: 0 !important;
  max-width: calc(100vw - 24px) !important;
  z-index: 999999 !important;
}

/* =========================================
   FIX: Mobil – INGEN crop i listing-kort (underkategorier/listnings)
   Behåll fast kort-höjd men visa hela bilden
   ========================================= */
@media (max-width: 900px) {

  .rb-listing-thumb{
    aspect-ratio: 16 / 10 !important;   /* behåll layouten */
    overflow: hidden !important;
    background: #f5f5f5 !important;     /* snygga “bars” om stående bild */
  }

  .rb-listing-thumb img{
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;     /* <-- detta stoppar crop */
    transform: none !important;         /* tar bort zoom som kan kännas som crop */
  }
}

/* =========================================================
   FINAL OVERRIDES (lägg LÄNGST NER i CSS)
   Mål:
   1) Desktop: landskap = cover (snyggt), porträtt = contain (ingen brutal crop)
   2) Mobil: inga konstiga crops (contain för alla)
   3) Underkategorichips: ska aldrig klippas i höjd
   ========================================================= */

/* --- Underkategorier: klipp inte i höjd --- */
.rb-subcategory-strip{
  overflow: visible !important;     /* du hade overflow:hidden på vissa ställen */
  padding-top: 6px;                /* lite luft så inget “kapas” visuellt */
}

.rb-subcat-chips{
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 768px){
  .rb-subcat-chips{
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }
  .rb-subcat-chip{
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* --- Listing-bilder (kort / grid) --- */
.rb-listing-thumb{
  width: 100%;
  overflow: hidden;
  background: #f3f4f6;             /* “bars” ser ok ut */
}

/* Default: desktop kör cover (snyggt för landskap) */
.rb-listing-thumb img{
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  transform: none !important;      /* dödar zoom-crop */
}

/* Porträtt på desktop: visa hela bilden (ingen brutal crop) */
.rb-listing-thumb img.rb-img-portrait{
  object-fit: contain !important;
  background: #f3f4f6 !important;
}

/* Mobil: visa hela bilden (sluta croppa på små skärmar) */
@media (max-width: 900px){
  .rb-listing-thumb img{
    object-fit: contain !important;
    background: #f3f4f6 !important;
  }
}

/* ===============================
   LISTNINGS (grid) – CROPPED
================================ */
.rb-listing-card img,
.rb-listing-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* ===============================
   LISTING (detaljsida) – UNCROPPED
================================ */
.rb-listing-page img,
.rb-gallery img,
.rb-main-image img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  background: #f3f3f3;
}

/* ===============================
   MOBIL: stående bilder får luft
================================ */
@media (max-width: 768px) {
  .rb-listing-page img {
    max-height: 65vh;
  }
}

/* ===============================
   ANNA – FAST & LÅST
================================ */
#rb-chat-launcher {
  position: fixed !important;
  right: 12px !important;
  bottom: 12px !important;
  width: 56px !important;
  height: 56px !important;
  max-width: 56px !important;
  max-height: 56px !important;
  transform: none !important;
  z-index: 99999 !important;
}
