/* ==========================================================================
   TimeZoneOrganizer — moderne tidslinje-overrides (modern.css)
   Indlæses SIDST efter main.css. Ændrer KUN udseende — funktionalitet,
   JS, data-attributter og drag/interaktion røres ikke.
   Rollback: fjern <link>-tagget til denne fil i layout.php.
   ========================================================================== */

/* ---------- Rækker: luftigere, blødere adskillelse ---------- */
.zone_row{
    border: none !important;
    border-bottom: 1px solid #edf1f7 !important;
    padding: 14px 2px !important;
    transition: background .2s ease;
}
.zone_row:hover{
    background: #fafbfe;
}
.zone_row:first-of-type{
    border-top: 1px solid #edf1f7 !important;
}

/* ---------- Zone-label: fra firkantet kasse til pill-badge ---------- */
.zone_name{
    background: linear-gradient(135deg, #4a76c4 0%, #3e6aab 100%) !important;
    color: #fff !important;
    border-radius: 999px;
    padding: 2px 12px !important;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .4px;
    box-shadow: 0 1px 3px rgba(62, 106, 171, .35);
}

/* Dato/klokkeslæt-accent pænere */
.zone_date,
.zone_time{
    font-weight: 600;
    letter-spacing: .2px;
}

/* ---------- Tidslinje-wrapper: blødt kort ---------- */
.zone_hour_wrapper{
    border: 1px solid #dde4ee !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(30, 50, 80, .08);
    margin: 6px 0 !important;
}

/* ---------- Time-celler: lyst og moderne ---------- */
.zone_hours{
    border-bottom: 1px solid #e4e9f2;
    font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.zone_hours > div{
    background-color: #f5f7fb !important;   /* døgn-timer: blød lys grå */
    color: #7a889e !important;              /* afdæmpet tekst */
    border: none !important;
    border-right: 1px solid #e8edf5 !important;
    transition: background .15s ease, color .15s ease;
}
.zone_hours > div:last-of-type{
    border-right: none !important;
}

/* Arbejdstimer: frisk lys blå accent */
.zone_hours > div.working_hour{
    background: #e2edfb !important;
    color: #2c4a7c !important;
    font-weight: 700;
}

/* Hover-feedback */
.zone_hours > div:hover{
    background: #d5e3f8 !important;
    color: #22344d !important;
}

/* "Nu"-cellen: tydelig orange accent */
.zone_hours > div.curr_moment{
    background: #f15a29 !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5);
}

/* ---------- Solbånd: blødere, moderne gradient ---------- */
.zone_suns{
    background: linear-gradient(90deg,
        #ccd2dd 0%,
        #ffd9b8 14%,
        #fff3b0 28%,
        #ffe0b0 40%,
        #d4dcea 52%,
        #ffd9b8 66%,
        #fff3b0 80%,
        #ffe0b0 90%,
        #ccd2dd 100%) !important;
}

/* ---------- "Nu"-linjen (#graph): fra stiplede kasse til elegant streg ---------- */
#graph{
    border: 2px solid #f15a29 !important;
    border-radius: 4px;
    box-shadow: 0 0 0 3px rgba(241, 90, 41, .15);
}

/* ---------- SEO: skjult h1 (Bootstrap .sr-only som sikkerhed) ---------- */
.sr-only{
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Annonce-placeringer: diskrete, luftige slots ---------- */
.tzo-ad-sidebar{
    padding-left: 15px;
}
.tzo-ad-slot{
    margin: 0 auto 20px;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
}
#ad-leaderboard-bottom{
    margin: 25px auto 10px;
    text-align: center;
    min-height: 0;
}
/* Tom plads vises som diskret stiplet placeholder; fyldt plads som rent kort */
.tzo-house-ad:empty{
    border: 1px dashed #dde4ee;
    border-radius: 10px;
    min-height: 90px;
    background: #fafbfe;
}

/* ---------- Eget banner: StudioVoices.ai (vandret kort under værktøjet) ---------- */
.tzo-house-banner-row{
    margin: 18px auto 4px;
}
.tzo-sv-banner{
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    text-decoration: none !important;
    border-radius: 14px;
    padding: 16px 24px;
    background: linear-gradient(120deg, #22344d 0%, #2c4a7c 45%, #3e6aab 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(44, 74, 124, .30);
    transition: transform .18s ease, box-shadow .18s ease;
}
.tzo-sv-banner:hover{
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(44, 74, 124, .40);
    color: #fff;
}
.tzo-sv-tag{
    position: absolute;
    top: 7px;
    right: 14px;
    font-size: 9px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
}
.tzo-sv-logo{
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .3px;
    color: #fff;
    line-height: 1.15;
    white-space: nowrap;
}
.tzo-sv-logo strong{
    color: #ffb98a;
    font-weight: 800;
}
.tzo-sv-text{
    flex: 1 1 300px;
    min-width: 240px;
}
.tzo-sv-headline{
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}
.tzo-sv-sub{
    display: block;
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, .82);
}
.tzo-sv-cta{
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 999px;
    background: #f15a29;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .2px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(241, 90, 41, .45);
}
.tzo-sv-banner:hover .tzo-sv-cta{
    background: #ff6a3a;
}
@media(max-width: 767px){
    body.tzo-home .tzo-ad-sidebar{
        padding-left: 0;
        margin-top: 25px;
    }
    body.tzo-home .tzo-house-banner-row{
        padding: 0 2px;
    }
    body.tzo-home .tzo-sv-banner{
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        max-width: 360px;
        padding: 18px 16px 16px;
    }
    body.tzo-home .tzo-sv-text{
        flex: 1 1 auto;
        min-width: 0;
    }
    body.tzo-home .tzo-sv-cta{
        margin-top: 4px;
    }
}

/* ==========================================================================
   MOBILVENLIGHED (≤767px, portrait) — scope: KUN forsiden (body.tzo-home).
   Zone-detaljer stackes OVER tidslinjen; alle 24 timer vises (intet vindue);
   markør/drag måles fra DOM (moveGraph i indexSuccess.php).
   Desktop og tablet (≥768px) er uændret.
   ========================================================================== */
@media(max-width: 767px){
    /* --- Zone-rækker: detaljer ovenover, tidslinje under, begge fuld bredde --- */
    body.tzo-home .zone_details,
    body.tzo-home .zone_timers{
        width: 100% !important;
        float: none !important;
    }
    body.tzo-home .zone_details{
        height: auto !important;
        min-height: 0 !important;
        padding-top: 6px !important;
        padding-bottom: 2px;
    }
    body.tzo-home .zone_details > div{
        float: left;
    }

    /* --- Time-celler: 24 across på fuld bredde, kompakt typografi --- */
    body.tzo-home .zone_hours > div{
        font-size: 9px !important;
        line-height: 1.1 !important;
        padding: 3px 0 !important;
        height: 22px;
    }
    /* Sol/måne-ikoner: mindre, stadig centreret under cellen */
    body.tzo-home .zone_hours > div:before{
        background-size: 18px !important;
        width: 18px !important;
        height: 18px !important;
        bottom: -13px !important;
        font-size: 15px !important;
        line-height: 18px !important;
        /* inline-CSS sætter left: calc(X% - 20px) for 40px-ikoner;
           skub 9px til højre = centrering for 18px-ikoner */
        transform: translateX(9px);
    }
    body.tzo-home .zone_suns{
        height: 18px;
    }

    /* --- "Nu"-markør (#graph): fuld rækkebredde (JS styrer left) --- */
    body.tzo-home #graph{
        width: calc(100% / 24) !important;
    }

    /* --- Tidsvælger: spænder hele den stakkede tidslinje --- */
    body.tzo-home #select_area_wrapper{
        left: 0 !important;
        width: 100% !important;
    }
    body.tzo-home .custom_calendar{
        width: calc(100% / 24 + 9px) !important;
    }

    /* --- Søgeresultater: fast under søgefeltet, ikke forskudt 58% --- */
    body.tzo-home #result_list{
        left: 4px !important;
        right: 4px;
        width: auto !important;
        max-width: none !important;
        top: auto !important;
    }

    /* --- Top-menu: 2 elementer pr. række i stedet for 5 stablede --- */
    body.tzo-home #top_menu > a.col-xs-12,
    body.tzo-home #top_menu > div.col-xs-12{
        width: 50% !important;
        float: left !important;
        font-size: 12px;
        padding: 4px 2px;
    }
    body.tzo-home #top_menu > a img,
    body.tzo-home #top_menu > div img{
        height: 22px !important;
    }

    /* --- Logoområde: søgefelt og "Selected time area" fuld bredde --- */
    body.tzo-home #add_timezone_wrapper,
    body.tzo-home #selected_timezone_area_wrapper{
        width: 100% !important;
        margin-left: 0 !important;
        float: none !important;
        padding-top: 6px !important;
    }
    body.tzo-home #add_timezone_wrapper > span,
    body.tzo-home #selected_timezone_area_wrapper > p{
        font-size: 12px !important;
    }

    /* --- Del-knappens række: luft under når den stacker --- */
    body.tzo-home #copy_curr_view,
    body.tzo-home #copy_curr_view_range{
        display: inline-block;
        margin-bottom: 8px;
    }

    /* --- Undgå horisontal scroll pga. lange bynavne --- */
    body.tzo-home .zone_city_name{
        max-width: 100%;
    }
}

/* ==========================================================================
   BLOG (modul blog) — liste og artikelvisning
   ========================================================================== */
.tzo-blog{
    max-width: 820px;
    margin: 0 auto;
    padding: 10px 15px 40px;
    float: none;
}
.tzo-blog-title{
    font-size: 30px;
    font-weight: 800;
    color: #22344d;
    margin: 18px 0 6px;
    letter-spacing: .2px;
}
.tzo-blog-sub{
    color: #7a889e;
    font-size: 15px;
    margin-bottom: 26px;
}
.tzo-blog-card{
    border: 1px solid #e4e9f2;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 18px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(30, 50, 80, .06);
    transition: transform .15s ease, box-shadow .15s ease;
}
.tzo-blog-card:hover{
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(30, 50, 80, .10);
}
.tzo-blog-card h2{
    margin: 6px 0 8px;
    font-size: 21px;
    font-weight: 700;
}
.tzo-blog-card h2 a{
    color: #2c4a7c;
    text-decoration: none;
}
.tzo-blog-card h2 a:hover{
    color: #f15a29;
}
.tzo-blog-card p{
    color: #4a5a70;
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 10px;
}
.tzo-blog-card-meta{
    font-size: 12.5px;
    color: #9aa7ba;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.tzo-blog-tags{
    color: #b07a5a;
}
.tzo-blog-readmore{
    font-weight: 700;
    font-size: 14px;
    color: #f15a29;
    text-decoration: none;
}
.tzo-blog-readmore:hover{
    text-decoration: underline;
}
.tzo-blog-cta{
    text-align: center;
    margin: 34px 0 10px;
    padding: 24px 16px;
    border-radius: 14px;
    background: linear-gradient(120deg, #f5f7fb 0%, #eef2f9 100%);
    border: 1px solid #e4e9f2;
}
.tzo-blog-cta p{
    font-size: 15px;
    color: #4a5a70;
    margin-bottom: 12px;
}
.tzo-blog-back{
    display: inline-block;
    margin-top: 14px;
    color: #7a889e;
    font-size: 14px;
    text-decoration: none;
}
.tzo-blog-back:hover{
    color: #f15a29;
}
.tzo-blog-article .tzo-blog-title{
    font-size: 32px;
    line-height: 1.2;
    margin-top: 10px;
}
.tzo-blog-body p{
    font-size: 16.5px;
    line-height: 1.75;
    color: #33445c;
    margin: 0 0 18px;
}
.tzo-blog-fact{
    display: block;
    border-left: 4px solid #f15a29;
    background: #fff6f2;
    border-radius: 0 10px 10px 0;
    padding: 14px 18px;
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.6;
    color: #4a5a70;
}
.tzo-blog-fact strong{
    color: #f15a29;
}
.tzo-blog-prev{
    margin: 26px 0 0;
    padding-top: 18px;
    border-top: 1px solid #e4e9f2;
    font-size: 14px;
    color: #9aa7ba;
}
.tzo-blog-prev a{
    display: inline-block;
    margin-left: 6px;
    color: #2c4a7c;
    font-weight: 600;
    text-decoration: none;
}
.tzo-blog-prev a:hover{
    color: #f15a29;
}
.tzo-blog-empty{
    color: #9aa7ba;
    font-size: 15px;
    padding: 30px 0;
}

/* --- Footer --- */
.tzo-footer{
    margin-top: 30px;
    border-top: 1px solid #e4e9f2;
    padding: 18px 0 26px;
}
.tzo-footer-inner{
    text-align: center;
    font-size: 13.5px;
    color: #9aa7ba;
}
.tzo-footer-inner a{
    color: #7a889e;
    text-decoration: none;
}
.tzo-footer-inner a:hover{
    color: #f15a29;
}
.tzo-footer-sep{
    margin: 0 8px;
    color: #d5dce8;
}

/* ==========================================================================
   HEBRAISK KALENDER — visning i zone-rækker
   ========================================================================== */
.tzo-hebrew-date{
    color: #8a6d3b;
}

/* Guided tour: paa smaa skaerme maa boblen ikke fylde hele bredden og blokere indhold */
@media (max-width: 767px){
  .hopscotch-bubble, .hopscotch-bubble-container{
    max-width: 94vw !important;
  }
  .hopscotch-bubble .hopscotch-bubble-container{
    width: auto !important;
  }
}


/* ==========================================================================
   ANALOGT UR I TOPPEN — paa mobil overlapper det indholdet (fast 180px-container)
   ========================================================================== */
@media (max-width: 767px){
    body.tzo-home > div.col-xs-12[style*="height: 180px"]{
        height: auto !important;
    }
    body.tzo-home #clock1_{
        display: block;
        margin: 0 auto 1em;
    }
}
