@font-face {
    font-family: 'ScriptinaRegular';
    src: url('../../fonts/scriptina-webfont.eot');
    src: url('../../fonts/scriptina-webfont.eot?#iefix') format('embedded-opentype'),
         url('../../fonts/scriptina-webfont.woff') format('woff'),
         url('../../fonts/scriptina-webfont.ttf') format('truetype'),
         url('../../fonts/scriptina-webfont.svg#ScriptinaRegular') format('svg');
    font-weight: normal;
    font-style: normal;
}

/* --- RESET (matches old site) --- */
html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
a { text-decoration: none; }
a.readmore { text-decoration: underline; }
img { max-width: 100%; }

/* --- BASE --- */
body.dm-site {
    font-family: "Helvetica Neue", sans-serif;
    font-weight: 200;
    background: #fff;
    color: #000;
}

p {
    padding: 5px 0;
    line-height: 1.2em;
    font-size: 14px;
}

p strong { font-weight: 900; }

/* --- WRAPPER --- */
#wrapper {
    width: 904px;
    margin: 0 auto;
    min-height: 400px;
}

/* --- HEADER --- */
#header {
    height: 210px;
    z-index: 1;
    background: url('../../images/header-cottage-graphic.jpg') right no-repeat;
    position: relative;
}

#header h1 {
    font-family: 'ScriptinaRegular';
    font-size: 70px;
    color: #959595;
    top: 10px;
    position: relative;
    background: url('../../images/header-bird-graphic.jpg') center top no-repeat;
    line-height: 120px;
    float: left;
    padding: 50px 0 0 0;
}

#header h1 a {
    text-decoration: none;
    color: #959595;
    display: block;
    margin-bottom: 20px;
    padding: 0 20px 0 0;
}

#header p {
    float: left;
    position: absolute;
    top: 175px;
    color: #959595;
    font-size: 0.9em;
    font-weight: 200;
}

/* --- NAV --- */
#nav {
    height: 30px;
    border-top: 1px solid #959595;
    border-bottom: 1px solid #959595;
    z-index: 2;
    margin: 0 0 15px 0;
    position: relative;
}

#nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#nav li {
    display: inline-block;
    margin: 0 0 0 99px;
    text-align: left;
    line-height: 30px;
    float: left;
}

#nav li:first-child {
    margin: 0;
}

#nav li a {
    text-decoration: none;
    text-transform: lowercase;
    color: #717171;
    font-weight: 200;
}

#nav li a:hover {
    color: #ACACAC;
}

#nav li.current a,
#nav li.active a {
    color: #ACACAC;
}

/* --- TWO COLUMN LAYOUT --- */
#main {
    width: 555px;
    float: left;
    margin: 0 20px 0 0;
}

#right {
    width: 325px;
    float: left;
}

/* --- MAIN CONTENT --- */
#main a {
    text-decoration: underline;
}
#main a.dm-section-edit {
    text-decoration: none;
}

#main h1, #main h3 {
    color: #8DB4D8;
    margin: 20px 0 10px;
    font-size: 1.5em;
    font-weight: 200;
}

#main .full {
    width: 100%;
}

.full {
    height: auto;
}

/* --- RIGHT SIDEBAR --- */
.moduletable_topbox {
    background: #8DB4D8;
    color: #ffffff;
    padding: 10px;
    margin: 15px 0 0 0;
}

.moduletable_topbox:first-child {
    margin: 0;
}

.custom_topbox p {
    font-size: 16px;
}

#right h3 {
    font-size: 1.4em;
    font-weight: 400;
}

/* --- PRICE TABLE --- */
.moduletable_topbox h1 {
    font-size: 16px;
    font-weight: 700;
}

.price-table {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
}

.price-table th {
    font-size: 0.96em;
    font-weight: 700;
    text-align: left;
    padding: 8px 0;
}

.price-table td {
    font-size: 1.2em;
    font-weight: 200;
    text-align: left;
    padding: 8px 0;
}

#right h4 {
    margin: 10px 0 5px;
    font-size: 1.5em;
    font-weight: 200;
}

#right a {
    color: #ffffff;
}

#right li {
    margin: 5px;
    font-size: 1.2em;
}

#right li:before {
    display: inline-block;
    width: 12px;
    height: 12px;
    content: '\00a0';
    background: #ffffff;
    border-radius: 70px;
    margin: 2px 10px 0 0;
}

.latedeals {
    min-height: 120px;
}

.latedeals h3 {
    margin: 0 0 15px 0;
}

/* --- SLIDESHOW --- */
.dm-slideshow {
    position: relative;
    width: 100%;
}
.dm-slide {
    width: 100%;
    display: block;
    opacity: 0;
    transition: opacity 1s ease;
}
.dm-slide:first-child {
    position: relative;
}
.dm-slide:not(:first-child) {
    position: absolute;
    top: 0;
    left: 0;
}
.dm-slide.is-active {
    opacity: 1;
}

/* --- GALLERY GRID --- */
.gallery-grid {
    margin: 0;
}

.gallery-row {
    display: flex;
    justify-content: space-between;
    padding: 0;
}

.gallery-thumb {
    width: calc(33% - 10px);
    margin-top: 15px;
}

.gallery-thumb a {
    display: block;
}

.gallery-thumb img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

/* --- CONTACT FORM (matches old site: browser-default fields, 260px wide) --- */
.dm-contact-form p {
    margin: 0;
}
.dm-contact-form label {
    display: block;
    margin: 4px 0;
}
.dm-contact-form .text,
.dm-contact-form .textarea,
.dm-contact-form .button {
    margin: 0 0 10px 0;
}
.dm-contact-form .button {
    height: 30px;
    font-size: 1.1em;
    text-transform: uppercase;
    background: #8DB4D8;
    cursor: pointer;
}
.dm-contact .dm-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.dm-contact-success {
    background: #e6f3e6;
    border: 1px solid #8bc48b;
    padding: 12px;
    color: #2a662a;
}
.dm-contact-errors {
    background: #fbeaea;
    border: 1px solid #d99;
    padding: 8px 12px;
    color: #a33;
    margin-bottom: 12px;
}
.dm-contact-errors p { margin: 2px 0; }

/* --- BADGES ROW (wifi + EV charger) --- */
.badges-row {
    overflow: hidden;
    padding: 10px 0;
}
.badges-row img {
    float: right;
    margin-left: 20px;
}

/* --- FOOTER --- */
#footer {
    height: auto;
    min-height: 70px;
    margin-top: 20px;
    border-top: 1px solid #959595;
    width: 100%;
    float: left;
    font-size: 0.8em;
    font-weight: bold;
    color: #959595;
    text-align: center;
}

#footer p {
    display: inline-block;
    margin: 10px 20px 0 20px;
    position: relative;
}

/* --- LOGIN FORM --- */
.login form {
    margin: 20px 0;
}
.login-fields label {
    display: block;
}
.login-fields input {
    margin: 0 0 20px 0;
}
.login .button {
    width: 150px;
    height: 30px;
    font-size: 1.1em;
    text-transform: uppercase;
    background: #8DB4D8;
    border: 0;
    color: #000;
    cursor: pointer;
}

/* --- CLEARFIX --- */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* --- HIDE CASSIOPEIA DEFAULTS --- */
.com-content-article__aside,
.item-page > .page-header,
.container-header,
.container-banner,
.container-nav,
#system-message-container:empty {
    display: none;
}

/* --- SECTION EDIT BUTTON (frontend editing) --- */
.dm-section-editable {
    position: relative;
}

.dm-section-edit {
    position: absolute;
    top: 5px;
    right: 5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    background: #8DB4D8;
    border-radius: 3px;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 50;
}

.dm-section-editable:hover .dm-section-edit {
    opacity: 1;
}

.dm-section-edit:hover {
    background: #6a9ac0;
    color: #fff;
}

/* --- EDIT PAGE --- */
.dm-edit-page {
    min-height: 100vh;
    background: #f5f5f5;
}
.dm-edit-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #333;
    padding: 0.75rem 1.5rem;
}
.dm-edit-back {
    color: #fff;
    font-size: 0.85rem;
    text-decoration: none;
}
.dm-edit-back:hover { color: #8DB4D8; }
.dm-edit-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Restore Bootstrap defaults inside edit form */
.dm-editing .dm-edit-body *,
.dm-editing .dm-edit-body *::before,
.dm-editing .dm-edit-body *::after {
    margin: revert;
    padding: revert;
}
.dm-editing .dm-edit-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #212529;
}
.dm-editing .dm-edit-body h1,
.dm-editing .dm-edit-body h2,
.dm-editing .dm-edit-body h3,
.dm-editing .dm-edit-body h4,
.dm-editing .dm-edit-body h5,
.dm-editing .dm-edit-body h6 {
    font-family: inherit;
    color: inherit;
}
.dm-editing .dm-edit-body a { color: #0d6efd; }
.dm-editing .dm-edit-body img { max-width: 100%; height: auto; }

/* Subform row buttons */
.dm-editing .btn-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
    padding: 0.75rem 0 0.25rem;
    border-top: 1px solid #e9ecef;
    margin-top: 0.75rem;
}
.dm-editing .btn-group {
    display: inline-flex;
    gap: 0.25rem;
}
.dm-editing .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.5;
}
.dm-editing .btn-sm { padding: 0.3rem 0.6rem; font-size: 0.75rem; }
.dm-editing .btn-success { color: #fff; background: #198754; border-color: #198754; }
.dm-editing .btn-success:hover { background: #157347; }
.dm-editing .btn-danger { color: #fff; background: #dc3545; border-color: #dc3545; }
.dm-editing .btn-danger:hover { background: #bb2d3b; }
.dm-editing .btn-primary { color: #fff; background: #0d6efd; border-color: #0d6efd; }
.dm-editing .btn-primary:hover { background: #0b5ed7; }

.dm-editing .group-add .icon-plus::after { content: " Add section"; }
.dm-editing .group-remove .icon-minus::after { content: " Remove"; }
.dm-editing .group-move .icon-arrows-alt::after { content: " Drag"; }

.dm-editing .subform-repeatable-group {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #fff;
    position: relative;
}
.dm-editing .subform-repeatable-group .control-group { margin-bottom: 0.75rem; }
.dm-editing .subform-repeatable-group .control-label {
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.8rem;
    color: #495057;
}
.dm-editing .subform-repeatable-group .form-control,
.dm-editing .subform-repeatable-group select,
.dm-editing .subform-repeatable-group input[type="text"],
.dm-editing .subform-repeatable-group input[type="url"] {
    display: block;
    width: 100%;
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff;
}
.dm-editing .subform-repeatable-group .form-control:focus,
.dm-editing .subform-repeatable-group select:focus,
.dm-editing .subform-repeatable-group input:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    outline: none;
}

.dm-editing .nav-tabs {
    display: flex;
    list-style: none;
    border-bottom: 2px solid #dee2e6;
    gap: 0;
}
.dm-editing .nav-tabs .nav-link {
    padding: 0.6rem 1rem;
    border: 1px solid transparent;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    color: #495057;
    cursor: pointer;
    font-size: 0.85rem;
}
.dm-editing .nav-tabs .nav-link.active {
    color: #0d6efd;
    background: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}
.dm-editing .hidden { display: none !important; }

/* --- MOBILE --- */
@media screen and (max-width: 480px) {
    #wrapper { width: 300px; }
    #header { background: none; height: 100px; }
    #header h1 { font-size: 35px; padding: 0; margin-bottom: -25px; }
    #header p { display: none; }
    #nav { height: auto; float: left; }
    #nav li { margin: 0; width: 97px; text-align: center; display: inline-block; }
    #main { width: 100%; float: left; margin: 0 0 20px 0; }
    #right { width: 100%; }
}
