.favorite-heart { position: absolute; z-index: 2; top: 12px; right: 12px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #d1d5db; border-radius: 50%; background: #fff; color: #374151; box-shadow: 0 2px 8px #0002; cursor: pointer; transition: transform .15s, color .15s; }
.favorite-heart:hover { transform: scale(1.08); }
.favorite-heart svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.favorite-heart[aria-pressed="true"] { color: #be185d; }
.favorite-heart[aria-pressed="true"] svg { fill: currentColor; }
.favorite-heart:focus-visible, .favorite-action:focus-visible, .favorite-list-choice:focus-visible, .favorite-dialog-close:focus-visible, .favorite-remove:focus-visible { outline: 3px solid #10b981; outline-offset: 3px; }
.gite-social-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.gite-social-actions .favorite-heart { position: static; flex-shrink: 0; }
.favorite-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; gap: 8px; padding: 10px 17px; border: 1px solid #d1d5db; border-radius: 999px; background: #fff; color: #006a4e; font-size: 14px; font-weight: 700; cursor: pointer; text-align: center; }
.favorite-action:hover { background: #ecfdf5; }
.favorite-action--primary { border-color: #006a4e; background: #006a4e; color: #fff; }
.favorite-action--primary:hover { background: #00533d; }
.favorite-action--danger { color: #be123c; }
.favorite-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.favorite-dialog { width: min(560px, calc(100% - 28px)); max-height: calc(100dvh - 40px); padding: 0; margin: auto; overflow: auto; border: 0; border-radius: 24px; color: #1f2937; background: #fff; box-shadow: 0 24px 70px #0004; }
.favorite-dialog::backdrop { background: #102c24a6; }
.favorite-dialog-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid #e5e7eb; background: #fff; }
.favorite-dialog-header h2 { font-size: 21px; font-weight: 800; overflow-wrap: anywhere; }
.favorite-dialog-close { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: #f3f4f6; font-size: 28px; line-height: 1; }
.favorite-dialog-body { padding: 24px; }
.favorite-dialog button:disabled, .favorite-dialog input:disabled { opacity: .6; cursor: wait; }
.favorite-help { margin-bottom: 20px; color: #5b6661; line-height: 1.6; }
.favorite-error { padding: 12px 16px; margin-bottom: 16px; border: 1px solid #fecdd3; border-radius: 12px; background: #fff1f2; color: #9f1239; }
.favorite-dialog-notice { padding: 12px 16px; margin-bottom: 16px; border-radius: 12px; background: #ecfdf5; color: #006a4e; }
.favorite-error[hidden], .favorite-notice[hidden], .favorite-dialog-notice[hidden] { display: none; }
.favorite-list-choices { display: grid; gap: 10px; max-height: 300px; overflow-y: auto; padding: 3px; }
.favorite-list-choice { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 14px 16px; border: 1px solid #d1d5db; border-radius: 16px; text-align: left; }
.favorite-list-choice strong { display: block; overflow-wrap: anywhere; }
.favorite-list-choice small { color: #6b7280; }
.favorite-list-choice[aria-pressed="true"] { border-color: #006a4e; background: #ecfdf5; color: #006a4e; }
.favorite-list-check { flex-shrink: 0; font-size: 23px; }
.favorite-form-heading { margin: 24px 0 12px; font-weight: 800; }
.favorite-name-form { display: grid; gap: 14px; }
.favorite-name-form label, .favorite-share-label { display: grid; gap: 8px; font-size: 14px; font-weight: 700; }
.favorite-name-form input, .favorite-share-label input { display: block; width: 100%; min-width: 0; height: 46px; padding: 10px 14px; border: 1px solid #c6d5cd; border-radius: 12px; background: #fff; font-size: 16px; font-weight: 400; }
.favorite-name-form input:focus, .favorite-share-label input:focus { outline: 2px solid #006a4e; outline-offset: 2px; }
.favorite-dialog-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.favorite-text-link { color: #006a4e; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.favorite-share-controls { display: grid; gap: 16px; margin-bottom: 24px; }
.favorite-notice { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 10000; width: max-content; max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 14px; background: #064e3b; color: #fff; box-shadow: 0 8px 24px #0003; text-align: center; }
.favorites-page { max-width: 1200px; margin: 20px auto; }
.favorites-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; margin-bottom: 36px; }
.favorites-heading h1 { margin: 6px 0 10px; font-size: clamp(28px, 5vw, 40px); line-height: 1.2; font-weight: 800; overflow-wrap: anywhere; }
.favorites-heading p { color: #5b6661; }
.favorites-heading .favorites-eyebrow { color: #006a4e; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.favorites-empty { display: grid; justify-items: center; gap: 18px; padding: 56px 24px; border: 1px solid #d8e5dc; border-radius: 24px; background: #f4faf6; text-align: center; }
.favorites-empty > span { font-size: 64px; color: #006a4e; line-height: 1; }
.favorites-empty h1, .favorites-empty h2 { font-size: 24px; font-weight: 800; }
.favorites-empty p { max-width: 510px; color: #5b6661; }
.favorite-list { padding: 24px 0; border-top: 1px solid #e5e7eb; }
.favorite-list-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; margin-bottom: 20px; }
.favorite-list-heading h2 { font-size: 24px; font-weight: 800; overflow-wrap: anywhere; }
.favorite-list-heading p { font-size: 14px; color: #6b7280; margin-top: 4px; }
.favorite-list-empty { padding: 32px; border-radius: 18px; background: #f6f8f6; color: #5b6661; }
.favorite-list-empty a { display: inline-block; margin-top: 12px; color: #006a4e; font-weight: 700; }
.favorite-gite-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 24px; }
.favorite-gite { overflow: hidden; height: 100%; border: 1px solid #e5e7eb; border-radius: 20px; background: #fff; box-shadow: 0 3px 10px #00000008; }
.favorite-gite-grid > div { display: flex; flex-direction: column; align-items: stretch; }
.favorite-gite-image { position: relative; }
.favorite-gite-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.favorite-gite-content { padding: 18px; }
.favorite-gite-content h3 { margin-bottom: 8px; color: #006a4e; font-size: 18px; font-weight: 800; overflow-wrap: anywhere; }
.favorite-gite-content h3 a:hover { text-decoration: underline; }
.favorite-gite-content p { margin-top: 4px; color: #6b7280; font-size: 14px; }
.favorite-gite-content .favorite-gite-price { margin-top: 14px; color: #111827; font-size: 16px; font-weight: 800; }
.favorite-gite-price span { font-weight: 400; }
.favorite-remove { align-self: flex-start; min-height: 44px; margin-top: 4px; padding: 8px 2px; color: #6b7280; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 480px) { .favorite-dialog-body, .favorite-dialog-header { padding: 18px; } .favorite-list-heading .favorite-actions { gap: 6px; } .favorite-list-heading .favorite-action { padding: 9px 12px; font-size: 13px; } }
