:root{--kh-green:#234334;--kh-green-dark:#172f24;--kh-sand:#f4f1e8;--kh-line:#e1e5df;--kh-text:#24302a;--kh-muted:#68736c;--kh-white:#fff}
.kh-form{max-width:760px;padding:24px;border:1px solid var(--kh-line);border-radius:16px;background:#fff;box-shadow:0 10px 30px rgba(20,45,32,.07)}.kh-field{margin-bottom:18px}.kh-field label{display:block;font-weight:700;margin-bottom:6px}.kh-field input[type=text],.kh-field input[type=email],.kh-field input[type=tel],.kh-field input[type=file],.kh-field textarea{width:100%;box-sizing:border-box;padding:12px;border:1px solid #bdc8c0;border-radius:9px;background:#fff}.kh-field input:focus,.kh-field textarea:focus{outline:2px solid var(--kh-green);outline-offset:1px}.kh-field small{display:block;margin-top:6px;color:#666}.kh-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.kh-hp{position:absolute!important;left:-9999px!important}.kh-button,.kh-contact-button{display:inline-block;padding:12px 20px;border:0;border-radius:9px;cursor:pointer;text-decoration:none;font-weight:750}.kh-button{background:var(--kh-green);color:#fff}.kh-notice{max-width:760px;padding:13px 16px;margin-bottom:15px;border-radius:8px}.kh-success{background:#edf8ee}.kh-error{background:#fff0f0}
.kh-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.kh-card{border:1px solid var(--kh-line);border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 8px 24px rgba(20,45,32,.06);transition:transform .18s ease,box-shadow .18s ease}.kh-card:hover{transform:translateY(-4px);box-shadow:0 14px 35px rgba(20,45,32,.12)}.kh-card-image{display:flex;aspect-ratio:4/3;align-items:center;justify-content:center;background:#eef1ee;overflow:hidden}.kh-card-image img{width:100%;height:100%;object-fit:cover}.kh-card-body{padding:18px}.kh-card-body h3{margin:0 0 9px;font-size:1.15rem}.kh-card-body h3 a{text-decoration:none;color:var(--kh-text)}.kh-price{font-size:1.3em;font-weight:850;margin-bottom:5px;color:var(--kh-green)}.kh-garden{color:var(--kh-muted);font-weight:650}
.kh-property{max-width:1180px;margin:28px auto 60px;color:var(--kh-text)}.kh-property *{box-sizing:border-box}.kh-property-header{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin:0 0 24px}.kh-eyebrow{display:inline-block;margin-bottom:7px;color:var(--kh-green);font-size:.78rem;font-weight:850;letter-spacing:.11em;text-transform:uppercase}.kh-property-title{margin:0 0 8px!important;font-size:clamp(2rem,4vw,3.4rem)!important;line-height:1.04!important;color:var(--kh-text)}.kh-property-garden{display:flex;align-items:center;gap:7px;color:var(--kh-muted);font-weight:700}.kh-property-pricebox{min-width:220px;padding:17px 20px;border-radius:16px;background:var(--kh-green);color:#fff;text-align:right;box-shadow:0 12px 28px rgba(35,67,52,.2)}.kh-property-pricebox small{display:block;margin-bottom:2px;opacity:.78;font-size:.78rem;text-transform:uppercase;letter-spacing:.06em}.kh-property-pricebox strong{font-size:clamp(1.35rem,2.5vw,2rem);line-height:1}
.kh-property-gallery{display:grid;grid-template-columns:2fr 1fr 1fr;grid-template-rows:230px 230px;gap:10px;overflow:hidden;border-radius:22px;background:#e9ede9;box-shadow:0 14px 36px rgba(20,45,32,.1)}.kh-property-photo{position:relative;display:block;overflow:hidden;background:#e8ece8}.kh-property-photo-main{grid-row:1/3}.kh-property-photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}.kh-property-photo:hover img{transform:scale(1.025)}.kh-photo-count{position:absolute;right:18px;bottom:18px;padding:9px 13px;border-radius:999px;background:rgba(255,255,255,.94);color:var(--kh-text);font-size:.84rem;font-weight:800;box-shadow:0 4px 16px rgba(0,0,0,.12)}.kh-property-no-photo{padding:70px 25px;border-radius:20px;background:#eef1ee;text-align:center;color:var(--kh-muted)}
.kh-property-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:30px;margin-top:32px;align-items:start}.kh-property-main{display:grid;gap:22px}.kh-property-card,.kh-contact-card{border:1px solid var(--kh-line);border-radius:19px;background:#fff;box-shadow:0 8px 26px rgba(20,45,32,.055)}.kh-property-card{padding:28px}.kh-section-heading{display:flex;align-items:center;gap:11px;margin-bottom:20px}.kh-section-heading h2{margin:0!important;font-size:1.35rem!important}.kh-section-icon{display:grid!important;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--kh-sand);color:var(--kh-green)}.kh-property-description{font-size:1.04rem;line-height:1.75;color:#39433e}.kh-property-description>:first-child{margin-top:0}.kh-property-description>:last-child{margin-bottom:0}.kh-facts-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.kh-fact{padding:17px;border-radius:13px;background:#f7f8f6}.kh-fact span{display:block;margin-bottom:4px;color:var(--kh-muted);font-size:.8rem}.kh-fact strong{font-size:1rem}.kh-property-sidebar{position:sticky;top:30px}.kh-contact-card{padding:28px;text-align:center;background:linear-gradient(180deg,#fff 0%,#f8faf8 100%)}.kh-contact-label{display:inline-block;padding:6px 10px;border-radius:999px;background:var(--kh-sand);color:var(--kh-green);font-size:.73rem;font-weight:850;letter-spacing:.06em;text-transform:uppercase}.kh-contact-avatar{display:grid;place-items:center;width:72px;height:72px;margin:20px auto 12px;border-radius:50%;background:var(--kh-green);color:#fff;font-size:1.8rem;font-weight:850}.kh-contact-card h2{margin:0 0 8px!important;font-size:1.35rem!important}.kh-contact-card p{margin:0 0 20px;color:var(--kh-muted);font-size:.93rem;line-height:1.55}.kh-contact-phone{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:10px;padding:12px;border:1px solid var(--kh-line);border-radius:10px;color:var(--kh-text);font-weight:800;text-decoration:none;background:#fff}.kh-contact-primary{display:block;padding:13px 16px;border-radius:10px;background:var(--kh-green);color:#fff!important;font-weight:850;text-decoration:none;transition:background .18s ease}.kh-contact-primary:hover{background:var(--kh-green-dark)}.kh-contact-missing{padding:12px;border-radius:10px;background:#f1f2ef;color:var(--kh-muted)}
@media(max-width:900px){.kh-list{grid-template-columns:repeat(2,minmax(0,1fr))}.kh-property-gallery{grid-template-columns:2fr 1fr;grid-template-rows:210px 210px}.kh-property-photo:nth-child(n+4){display:none}.kh-property-layout{grid-template-columns:1fr}.kh-property-sidebar{position:static}.kh-contact-card{max-width:none}.kh-facts-grid{grid-template-columns:1fr 1fr}.kh-property-header{align-items:flex-start}.kh-property-pricebox{min-width:190px}}
@media(max-width:600px){.kh-grid,.kh-list{grid-template-columns:1fr}.kh-form{padding:16px}.kh-property{margin-top:14px}.kh-property-header{display:block}.kh-property-pricebox{margin-top:18px;text-align:left;min-width:0}.kh-property-gallery{display:block;border-radius:15px}.kh-property-photo{display:none}.kh-property-photo-main{display:block;height:300px}.kh-photo-count{right:12px;bottom:12px}.kh-property-layout{margin-top:20px;gap:18px}.kh-property-card,.kh-contact-card{padding:20px;border-radius:15px}.kh-facts-grid{grid-template-columns:1fr}.kh-property-title{font-size:2rem!important}}
\n\n/* Version 1.3: beskyttet e-mail */\n.kh-contact-email {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    gap: 8px;\n    margin-top: 10px;\n    padding: 12px 14px;\n    border: 1px solid #d9e1dc;\n    border-radius: 10px;\n    background: #fff;\n    color: inherit;\n    text-decoration: none;\n    overflow-wrap: anywhere;\n}\n.kh-contact-email:hover {\n    background: #f5f8f6;\n}\n.kh-facts-grid {\n    grid-template-columns: repeat(2, minmax(0, 1fr));\n}\n@media (max-width: 640px) {\n    .kh-facts-grid {\n        grid-template-columns: 1fr;\n    }\n}\n

/* Version 1.4: liggetid på oversigten og ens kontaktknapper */
.kh-card-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.kh-days-online{color:var(--kh-muted);font-size:.85rem;font-weight:700}
.kh-contact-email{margin-top:10px;margin-bottom:0;overflow-wrap:anywhere}
@media(max-width:600px){.kh-card-meta{align-items:flex-start;flex-direction:column;gap:4px}}

/* Version 2.1: smartere upload, liggetidsbadge og forsideshortcode */
.kh-card-image{position:relative}
.kh-days-overlay{position:absolute;right:12px;top:12px;padding:7px 10px;border-radius:999px;background:rgba(24,39,31,.86);color:#fff;font-size:.78rem;font-weight:800;line-height:1;backdrop-filter:blur(5px);box-shadow:0 4px 14px rgba(0,0,0,.18)}
.kh-upload-box{position:relative;border:2px dashed #aebdb3;border-radius:14px;background:#f8faf8;transition:.18s ease;overflow:hidden}
.kh-upload-box:hover,.kh-upload-box.is-dragging{border-color:var(--kh-green);background:#f0f5f1}
.kh-upload-input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none}
.kh-upload-label{display:flex!important;min-height:150px;margin:0!important;padding:24px;align-items:center;justify-content:center;flex-direction:column;text-align:center;cursor:pointer}
.kh-upload-label small{margin-top:4px!important}.kh-upload-icon{display:grid;place-items:center;width:42px;height:42px;margin-bottom:10px;border-radius:50%;background:var(--kh-green);color:#fff;font-size:1.55rem;line-height:1}
.kh-upload-summary{margin-top:8px;color:var(--kh-muted);font-size:.86rem}.kh-upload-error{display:none;margin-top:9px;padding:10px 12px;border-radius:8px;background:#fff0f0;color:#9f2323;font-weight:700}.kh-upload-error:not(:empty){display:block}
.kh-image-preview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:14px}.kh-preview-item{position:relative;min-width:0;padding:5px;border:1px solid var(--kh-line);border-radius:10px;background:#fff}.kh-preview-item img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:7px}.kh-preview-item span{display:block;padding:5px 2px 1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--kh-muted);font-size:.72rem}.kh-preview-remove{position:absolute;right:9px;top:9px;width:26px;height:26px;border:0;border-radius:50%;background:rgba(20,30,24,.84);color:#fff;font-size:20px;line-height:22px;cursor:pointer}
@media(max-width:600px){.kh-image-preview{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Version 2.2: swipe-galleri på mobil */
.kh-gallery-nav,.kh-gallery-dots{display:none}
@media(max-width:600px){
  .kh-property-gallery{position:relative;overflow:hidden;touch-action:pan-y;background:#e9ede9}
  .kh-property-photo,.kh-property-photo-main{display:none!important;height:300px;grid-row:auto}
  .kh-property-photo.is-active{display:block!important}
  .kh-property-photo img{height:300px}
  .kh-gallery-nav{display:grid;place-items:center;position:absolute;top:50%;z-index:4;width:42px;height:42px;padding:0;border:0;border-radius:50%;transform:translateY(-50%);background:rgba(255,255,255,.92);color:var(--kh-text);font-size:34px;line-height:1;box-shadow:0 4px 16px rgba(0,0,0,.18);cursor:pointer}
  .kh-gallery-prev{left:12px}.kh-gallery-next{right:12px}
  .kh-gallery-dots{display:flex;position:absolute;left:50%;bottom:13px;z-index:4;gap:7px;transform:translateX(-50%);padding:6px 9px;border-radius:999px;background:rgba(20,30,24,.42)}
  .kh-gallery-dot{width:8px;height:8px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.55);cursor:pointer}
  .kh-gallery-dot.is-active{background:#fff;transform:scale(1.25)}
  .kh-photo-count{display:none}
}
