/* =====================================================================
   Golf Empire â€” feature colours   /css/ge-feature-colours.css   v1.0.0

   One colour per feature, used the same way everywhere, so a colour
   always means the same thing across the site:

     Search tools (Search+, Wizard, listings)  navy    #254e71
     Calendar, dates                           red     #b91c1c
     Map View, maps                            blue    #2a7fa3
     My Favourites (and Premium)               wine    #a3003f
     Email Alerts                              amber   #B8860B
     My Courses (played)                       green   #1f8b3b
     My Reviews                                purple  #6b46c1
     Trip Builder                              teal    #0f766e
     Golf Weeks                                orange  #c2410c
     Partner Finder                            indigo  #4338ca

   The header's quick links already use red / wine / amber / green the
   same way. Members area tiles pick their colour up from their link
   (no class needed): a tinted icon square, the border on hover, and the
   "Open …" link in that colour.
   ===================================================================== */

:root {
  --gef-search: #254e71;    --gef-search-tint: #eaf0f6;
  --gef-calendar: #b91c1c;  --gef-calendar-tint: #fdecec;
  --gef-map: #2a7fa3;       --gef-map-tint: #e5f2f8;
  --gef-favs: #a3003f;      --gef-favs-tint: #fbe8ef;
  --gef-alerts: #B8860B;    --gef-alerts-tint: #fbf3df;
  --gef-courses: #1f8b3b;   --gef-courses-tint: #e7f5ec;
  --gef-reviews: #6b46c1;   --gef-reviews-tint: #f0ebfa;
  --gef-trips: #0f766e;     --gef-trips-tint: #e2f3f1;
  --gef-weeks: #c2410c;     --gef-weeks-tint: #fdeee5;
  --gef-partners: #4338ca;  --gef-partners-tint: #ebeafb;
  --gef-perks: var(--c-success);
}

/* ---- Members area tiles --------------------------------------------- */
.gem-tile { --gt: var(--gef-search); --gt-tint: var(--gef-search-tint); }   /* no coloured strip along the top (Nov 2026): the colour is on the icon */
.gem-tile:hover { border-color: var(--gt); }
.gem-tile .gem-tile__icon { background: var(--gt-tint); color: var(--gt); }
.gem-tile .gem-tile__cta { color: var(--gt); }

.gem-tile[href*="view=calendar"]    { --gt: var(--gef-calendar); --gt-tint: var(--gef-calendar-tint); }
.gem-tile[href*="view=map"]         { --gt: var(--gef-map);      --gt-tint: var(--gef-map-tint); }
.gem-tile[href*="favourites-list"]  { --gt: var(--gef-favs);     --gt-tint: var(--gef-favs-tint); }
.gem-tile[href*="saved-searches"]   { --gt: var(--gef-alerts);   --gt-tint: var(--gef-alerts-tint); }
.gem-tile[href*="my-courses"]       { --gt: var(--gef-courses);  --gt-tint: var(--gef-courses-tint); }
.gem-tile[href*="my-reviews"]       { --gt: var(--gef-reviews);  --gt-tint: var(--gef-reviews-tint); }
.gem-tile[href*="trip-builder"]     { --gt: var(--gef-trips);    --gt-tint: var(--gef-trips-tint); }
.gem-tile[href*="open-weeks"]       { --gt: var(--gef-weeks);    --gt-tint: var(--gef-weeks-tint); }
.gem-tile[href*="partner-finder"]   { --gt: var(--gef-partners); --gt-tint: var(--gef-partners-tint); }

/* Utility classes, used by the icon map (/includes/php/ge-icons.php) and anywhere else.
   !important so they beat the menu rules in nav.css (.nav-dropdown a i, .account-menu__item > i) */
.gef-search { color: var(--gef-search) !important; }     .gef-calendar { color: var(--gef-calendar) !important; }
.gef-map { color: var(--gef-map) !important; }           .gef-favs { color: var(--gef-favs) !important; }
.gef-alerts { color: var(--gef-alerts) !important; }     .gef-courses { color: var(--gef-courses) !important; }
.gef-reviews { color: var(--gef-reviews) !important; }   .gef-trips { color: var(--gef-trips) !important; }
.gef-weeks { color: var(--gef-weeks) !important; }       .gef-partners { color: var(--gef-partners) !important; }
.gef-perks { color: var(--gef-perks) !important; }

/* On navy (the current sub-nav pill, the hero, coloured buttons) a feature icon turns white,
   so it stays readable. On white it keeps its feature colour. */
.page-subnav .pivot.is-current i[class*="gef-"],
.page-subnav__mobile-grid a.is-current i[class*="gef-"] { color: #fff !important; }
